| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/ict/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
namespace W3TC;
class Extension_NewRelic_AdminActions {
private $_config = null;
function __construct() {
$this->_config = Dispatcher::config();
}
function w3tc_save_new_relic() {
$service = Dispatcher::component( 'Extension_NewRelic_Service' );
$application = Util_Request::get_array( 'application' );
$application['alerts_enabled'] = $application['alerts_enabled'] == 1 ? 'true' : 'false';
$application['rum_enabled'] = $application['rum_enabled'] == 1 ? 'true' : 'false';
$result=$service->update_application_settings( $application );
Util_Admin::redirect( array(
'w3tc_note' => 'new_relic_save'
), true );
}
}