403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/baberankings.com/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/baberankings.com/wp-content/plugins/w3-total-cache/Cdn_RackSpaceCdn_Page.php
<?php
/**
 * File: Cdn_RackSpaceCdn_Page.php
 *
 * @package W3TC
 */

namespace W3TC;

/**
 * Class Cdn_RackSpaceCdn_Page
 */
class Cdn_RackSpaceCdn_Page {
	/**
	 * Adds Rackspace CDN-specific admin action handlers.
	 *
	 * This method integrates the Rackspace CDN admin action handlers into the W3 Total Cache admin framework,
	 * enabling the handling of actions specific to the Rackspace CDN configuration.
	 *
	 * @param array $handlers An array of existing admin action handlers.
	 *
	 * @return array The updated array of admin action handlers, including the Rackspace CDN handler.
	 */
	public static function w3tc_admin_actions( $handlers ) {
		$handlers['cdn_rackspace_cdn'] = 'Cdn_RackSpaceCdn_AdminActions';

		return $handlers;
	}

	/**
	 * Enqueues Rackspace CDN-specific JavaScript for the admin area.
	 *
	 * This method loads the JavaScript file necessary for the Rackspace CDN admin page in W3 Total Cache.
	 * It ensures the script is added to the admin area when needed.
	 *
	 * @return void
	 */
	public static function admin_print_scripts_w3tc_cdn() {
		wp_enqueue_script( 'w3tc_cdn_rackspace', plugins_url( 'Cdn_RackSpaceCdn_Page_View.js', W3TC_FILE ), array( 'jquery', 'w3tc-nonce', 'w3tc-lightbox' ), '1.0', false );
	}

	/**
	 * Renders the Rackspace CDN configuration box area in the settings.
	 *
	 * This method outputs the HTML for the Rackspace CDN configuration box in the W3 Total Cache settings.
	 * It retrieves the necessary configuration values, checks authorization, and prepares access URLs
	 * before including the view file.
	 *
	 * @return void
	 */
	public static function w3tc_settings_cdn_boxarea_configuration() {
		$w3tc_config     = Dispatcher::config();
		$api_key         = $w3tc_config->get_string( 'cdn.rackspace_cdn.api_key' );
		$w3tc_authorized = ! empty( $api_key );

		$access_url_full = '';
		if ( $w3tc_authorized ) {
			$w3tc_p          = $w3tc_config->get_string( 'cdn.rackspace_cdn.service.protocol' );
			$access_url_full = ( 'https' === $w3tc_p ? 'https://' : 'http://' ) . $w3tc_config->get_string( 'cdn.rackspace_cdn.service.access_url' );
		}

		include W3TC_DIR . '/Cdn_RackSpaceCdn_Page_View.php';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit