hello 404 Not Found
Al-HUWAITI Shell
Al-huwaiti


Server : Apache/2.4.52 (Ubuntu)
System : Linux HAN2 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64
User : servadmin ( 1000)
PHP Version : 8.1.2-1ubuntu2.25
Disable Function : NONE
Directory :  /www/docs/home.obu.edu.bak/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /www/docs/home.obu.edu.bak/wp-content/plugins/w3-total-cache/UsageStatistics_Widget.php
<?php
namespace W3TC;

/**
 * widget with stats
 */
class UsageStatistics_Widget {
	private $enabled = false;



	public function init() {
		$c = Dispatcher::config();
		$this->enabled = ( $c->get_boolean( 'stats.enabled' ) &&
			Util_Environment::is_w3tc_pro( $c ) );

		add_action( 'w3tc_widget_setup', array(
				$this,
				'w3tc_widget_setup'
			), 1000 );
	}



	public function w3tc_widget_setup() {
		Util_Widget::add( 'w3tc_usage_statistics',
			'<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() {
		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() {
		$c = Dispatcher::config();
		$enabled = ( $c->get_boolean( 'stats.enabled' ) &&
			Util_Environment::is_w3tc_pro( $c ) );
		if ( $enabled ) {
			include  W3TC_DIR . '/UsageStatistics_Widget_View.php';
		} else {
			include  W3TC_DIR . '/UsageStatistics_Widget_View_Disabled.php';
		}
	}
}

Al-HUWAITI Shell