Server IP : 192.64.118.117 / Your IP : 18.191.171.58 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/tcrgfinancesuite.com/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php namespace W3TC; class Cdnfsd_Limelight_Popup { static public function w3tc_ajax() { $o = new Cdnfsd_Limelight_Popup(); add_action( 'w3tc_ajax_cdnfsd_limelight_intro', array( $o, 'w3tc_ajax_cdnfsd_limelight_intro' ) ); add_action( 'w3tc_ajax_cdnfsd_limelight_save', array( $o, 'w3tc_ajax_cdnfsd_limelight_save' ) ); } public function w3tc_ajax_cdnfsd_limelight_intro() { $this->render_intro( array() ); } private function render_intro( $details ) { $config = Dispatcher::config(); include W3TC_DIR . '/Cdnfsd_Limelight_Popup_View_Intro.php'; exit(); } public function w3tc_ajax_cdnfsd_limelight_save() { $short_name = $_REQUEST['short_name']; $username = $_REQUEST['username']; $api_key = $_REQUEST['api_key']; try { $api = new Cdnfsd_Limelight_Api( $short_name, $username, $api_key ); $url = Util_Environment::home_domain_root_url() . '/'; $items = array( array( 'pattern' => $url, 'exact' => true, 'evict' => false, 'incqs' => false ) ); $api->purge( $items ); } catch ( \Exception $ex ) { $this->render_intro( array( 'error_message' => 'Failed to make test purge request: ' . $ex->getMessage() ) ); exit(); } $c = Dispatcher::config(); $c->set( 'cdnfsd.limelight.short_name', $short_name ); $c->set( 'cdnfsd.limelight.username', $username ); $c->set( 'cdnfsd.limelight.api_key', $api_key ); $c->save(); include W3TC_DIR . '/Cdnfsd_Limelight_Popup_View_Success.php'; exit(); } }