SILENT KILLERPanel

Current Path: > home > transcarter > > www > wp-content > plugins > wp-optimize > includes


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter//www/wp-content/plugins/wp-optimize/includes

NameTypeSizeLast ModifiedActions
blockui Directory - -
fragments Directory - -
list-tables Directory - -
tables Directory - -
backward-compatibility-functions.php File 3311 bytes July 17 2025 21:05:49.
class-re-smush-it-task.php File 5606 bytes July 17 2025 21:05:49.
class-updraft-abstract-logger.php File 3510 bytes July 17 2025 21:05:49.
class-updraft-email-logger.php File 4209 bytes July 17 2025 21:05:49.
class-updraft-file-logger.php File 4362 bytes July 17 2025 21:05:49.
class-updraft-log-levels.php File 911 bytes July 17 2025 21:05:49.
class-updraft-logger-interface.php File 2851 bytes July 17 2025 21:05:49.
class-updraft-logger.php File 4960 bytes July 17 2025 21:05:49.
class-updraft-php-logger.php File 2875 bytes July 17 2025 21:05:49.
class-updraft-ring-logger.php File 4148 bytes July 17 2025 21:05:49.
class-updraft-smush-manager-commands.php File 29110 bytes July 17 2025 21:05:49.
class-updraft-smush-manager.php File 58419 bytes July 17 2025 21:05:49.
class-updraft-smush-task.php File 13294 bytes July 17 2025 21:05:49.
class-updraftcentral-wp-optimize-commands.php File 1193 bytes July 17 2025 21:05:49.
class-wp-optimization.php File 13173 bytes July 17 2025 21:05:49.
class-wp-optimize-404-detector-cron.php File 1058 bytes July 17 2025 21:05:49.
class-wp-optimize-404-detector.php File 11259 bytes July 17 2025 21:05:49.
class-wp-optimize-admin.php File 33078 bytes July 17 2025 21:05:49.
class-wp-optimize-browser-cache.php File 9429 bytes July 17 2025 21:05:49.
class-wp-optimize-commands.php File 37345 bytes July 17 2025 21:05:49.
class-wp-optimize-database-information.php File 17133 bytes July 17 2025 21:05:49.
class-wp-optimize-delay-js.php File 11215 bytes July 17 2025 21:05:49.
class-wp-optimize-gzip-compression.php File 11036 bytes July 17 2025 21:05:49.
class-wp-optimize-heartbeat.php File 4044 bytes July 17 2025 21:05:49.
class-wp-optimize-htaccess.php File 9012 bytes July 17 2025 21:05:49.
class-wp-optimize-http-error-codes-trait.php File 9045 bytes July 17 2025 21:05:49.
class-wp-optimize-install-or-update-notice.php File 3344 bytes July 17 2025 21:05:49.
class-wp-optimize-notices.php File 18660 bytes July 17 2025 21:05:49.
class-wp-optimize-options.php File 16430 bytes July 17 2025 21:05:49.
class-wp-optimize-performance.php File 3555 bytes July 17 2025 21:05:49.
class-wp-optimize-preloader.php File 18543 bytes July 17 2025 21:05:49.
class-wp-optimize-server-information.php File 4941 bytes July 17 2025 21:05:49.
class-wp-optimize-system-status-report.php File 11189 bytes July 17 2025 21:05:49.
class-wp-optimize-table-management.php File 3762 bytes July 17 2025 21:05:49.
class-wp-optimize-transients-cache.php File 3434 bytes July 17 2025 21:05:49.
class-wp-optimize-updates.php File 11273 bytes July 17 2025 21:05:49.
class-wp-optimize-utils.php File 7010 bytes July 17 2025 21:05:49.
class-wp-optimizer.php File 20933 bytes July 17 2025 21:05:49.
class-wpo-activation.php File 2748 bytes July 17 2025 21:05:49.
class-wpo-ajax.php File 12418 bytes July 17 2025 21:05:49.
class-wpo-deactivation.php File 533 bytes July 17 2025 21:05:49.
class-wpo-image-utils.php File 1738 bytes July 17 2025 21:05:49.
class-wpo-page-optimizer.php File 1628 bytes July 17 2025 21:05:49.
class-wpo-uninstall.php File 2654 bytes July 17 2025 21:05:49.
updraftcentral.php File 1704 bytes July 17 2025 21:05:49.

Reading File: /home/transcarter//www/wp-content/plugins/wp-optimize/includes/class-updraft-logger.php

<?php

if (!defined('ABSPATH')) die('No direct access allowed');

require_once('class-updraft-logger-interface.php');
require_once('class-updraft-log-levels.php');
require_once('class-updraft-abstract-logger.php');
require_once('class-updraft-logger.php');

if (class_exists('Updraft_Logger')) return;

/**
 * Class Updraft_Logger
 */
class Updraft_Logger implements Updraft_Logger_Interface {
	
	protected $_loggers = array();

	/**
	 * Constructor method
	 *
	 * @param Updraft_Logger_Interface|null $logger
	 */
	public function __construct(?Updraft_Logger_Interface $logger = null) {
		if (!empty($logger)) $this->_loggers = array($logger);
	}

	/**
	 * Returns singleton instance object
	 *
	 * @return Updraft_Logger Returns `Updraft_Logger` object
	 */
	public static function instance() {
		static $_instance = null;
		if (null === $_instance) {
			$_instance = new self();
		}
		return $_instance;
	}

	/**
	 * Add logger to loggers list
	 *
	 * @param Updraft_Logger_Interface $logger
	 */
	public function add_logger(Updraft_Logger_Interface $logger) {
		$logger_id = $logger_class = get_class($logger);

		// don't add logger if it doesn't support multiple loggers.
		if (!empty($this->_loggers) && array_key_exists($logger_id, $this->_loggers) && false == $logger->is_allow_multiple()) return false;

		$index = 0;

		// get free id key.
		while (array_key_exists($logger_id, $this->_loggers)) {
			$index++;
			$logger_id = $logger_class.'_'.$index;
		}

		$this->_loggers[$logger_id] = $logger;
	}

	/**
	 * Return list of loggers
	 *
	 * @return array
	 */
	public function get_loggers() {
		return $this->_loggers;
	}

	/**
	 * System is unusable.
	 *
	 * @param  string $message
	 * @param  array  $context
	 * @return null
	 */
	public function emergency($message, array $context = array()) {

		if (empty($this->_loggers)) return false;

		foreach ($this->_loggers as $logger) {
			$logger->emergency($message, $context);
		}

	}

	/**
	 * Action must be taken immediately.
	 *
	 * Example: Entire website down, database unavailable, etc. This should
	 * trigger the SMS alerts and wake you up.
	 *
	 * @param  string $message
	 * @param  array  $context
	 * @return null
	 */
	public function alert($message, array $context = array()) {

		if (empty($this->_loggers)) return false;

		foreach ($this->_loggers as $logger) {
			$logger->alert($message, $context);
		}

	}

	/**
	 * Critical conditions.
	 *
	 * Example: Application component unavailable, unexpected exception.
	 *
	 * @param  string $message
	 * @param  array  $context
	 * @return null
	 */
	public function critical($message, array $context = array()) {

		if (empty($this->_loggers)) return false;

		foreach ($this->_loggers as $logger) {
			$logger->critical($message, $context);
		}

	}

	/**
	 * Runtime errors that do not require immediate action but should typically
	 * be logged and monitored.
	 *
	 * @param  string $message
	 * @param  array  $context
	 * @return null
	 */
	public function error($message, array $context = array()) {

		if (empty($this->_loggers)) return false;

		foreach ($this->_loggers as $logger) {
			$logger->error($message, $context);
		}

	}

	/**
	 * Exceptional occurrences that are not errors.
	 *
	 * Example: Use of deprecated APIs, poor use of an API, undesirable things
	 * that are not necessarily wrong.
	 *
	 * @param  string $message
	 * @param  array  $context
	 * @return null
	 */
	public function warning($message, array $context = array()) {

		if (empty($this->_loggers)) return false;

		foreach ($this->_loggers as $logger) {
			$logger->warning($message, $context);
		}

	}

	/**
	 * Normal but significant events.
	 *
	 * @param  string $message
	 * @param  array  $context
	 * @return null
	 */
	public function notice($message, array $context = array()) {

		if (empty($this->_loggers)) return false;

		foreach ($this->_loggers as $logger) {
			$logger->notice($message, $context);
		}

	}

	/**
	 * Interesting events.
	 *
	 * Example: User logs in, SQL logs.
	 *
	 * @param  string $message
	 * @param  array  $context
	 * @return null
	 */
	public function info($message, array $context = array()) {

		if (empty($this->_loggers)) return false;

		foreach ($this->_loggers as $logger) {
			$logger->info($message, $context);
		}

	}

	/**
	 * Detailed debug information.
	 *
	 * @param  string $message
	 * @param  array  $context
	 * @return null
	 */
	public function debug($message, array $context = array()) {

		if (empty($this->_loggers)) return false;

		foreach ($this->_loggers as &$logger) {
			$logger->debug($message, $context);
		}

	}

	/**
	 * Logs with an arbitrary level.
	 *
	 * @param  mixed  $level
	 * @param  string $message
	 * @param  array  $context
	 * @return null
	 */
	public function log($level, $message, array $context = array()) {

		if (empty($this->_loggers)) return false;

		foreach ($this->_loggers as $logger) {
			$logger->log($message, $level, $context);
		}

	}
}

SILENT KILLER Tool