403Webshell
Server IP : 93.184.69.11  /  Your IP : 216.73.217.131
Web Server : Apache
System : Linux wa01 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : web673 ( 1054)
PHP Version : 7.0.33-84+0~20251218.106+debian11~1.gbpe01fd8
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/clients/client310/web673/web/wp-content/plugins/really-simple-ssl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/clients/client310/web673/web/wp-content/plugins/really-simple-ssl/class-cache.php
<?php

defined('ABSPATH') or die("you do not have access to this page!");
if ( ! class_exists( 'rsssl_cache' ) ) {
  class rsssl_cache {
    private $capability  = 'manage_options';
    private static $_this;

  function __construct() {
    if ( isset( self::$_this ) )
        wp_die( sprintf( __( '%s is a singleton class and you cannot create a second instance.','really-simple-ssl' ), get_class( $this ) ) );

    self::$_this = $this;
  }

  static function this() {
    return self::$_this;
  }

  /**
   * Flushes the cache for popular caching plugins to prevent mixed content errors
   * When .htaccess is changed, all traffic should flow over https, so clear cache when possible.
   * supported: W3TC, WP fastest Cache, Zen Cache, wp_rocket
   *
   * @since  2.0
   *
   * @access public
   *
   */

  public function flush() {
    if (!current_user_can($this->capability)) return;

    add_action( 'admin_head', array($this,'maybe_flush_w3tc_cache'));
    add_action( 'admin_head', array($this,'maybe_flush_wp_optimize_cache'));
	add_action( 'admin_head', array($this,'maybe_flush_litespeed_cache'));
	add_action( 'admin_head', array($this,'maybe_flush_hummingbird_cache'));
    add_action( 'admin_head', array($this,'maybe_flush_fastest_cache'));
	add_action( 'admin_head', array($this,'maybe_flush_autoptimize_cache'));
    add_action( 'admin_head', array($this,'maybe_flush_wp_rocket'));
	add_action( 'admin_head', array($this,'maybe_flush_cache_enabler'));
	add_action( 'admin_head', array($this,'maybe_flush_wp_super_cache'));
  }

  public function maybe_flush_w3tc_cache() {
	  if (!current_user_can($this->capability)) return;

	  if ( function_exists('w3tc_flush_all') ) {
        w3tc_flush_all();
      }
  }

  public function maybe_flush_wp_optimize_cache() {
	  if (!current_user_can($this->capability)) return;

	  if ( function_exists('wpo_cache_flush') ) {
		  wpo_cache_flush();
	  }
  }

  public function maybe_flush_litespeed_cache() {
	  if (!current_user_can($this->capability)) return;

	  if ( class_exists('LiteSpeed') ) {
		  Litespeed\Purge::purge_all();
	  }
  }

  public function maybe_flush_hummingbird_cache() {
	  if (!current_user_can($this->capability)) return;

	  if ( is_callable( array('Hummingbird\WP_Hummingbird', 'flush_cache') ) ) {
		  Hummingbird\WP_Hummingbird::flush_cache();
	  }
  }

  public function maybe_flush_fastest_cache() {
	  if (!current_user_can($this->capability)) return;

	  if( class_exists('WpFastestCache') ) {
		  // Non-static cannot be called statically ::
	      (new WpFastestCache)->deleteCache();
      }
  }

  public function maybe_flush_autoptimize_cache() {
	  if (!current_user_can($this->capability)) return;

	  if ( class_exists('autoptimizeCache') ) {
		  autoptimizeCache::clearall();
	  }
  }

  public function maybe_flush_wp_rocket() {
	  if (!current_user_can($this->capability)) return;

	  if ( function_exists('rocket_clean_domain') ) {
		  rocket_clean_domain();
	  }
  }

  public function maybe_flush_cache_enabler() {
	  if (!current_user_can($this->capability)) return;

	  if ( class_exists('Cache_Enabler') ) {
	    Cache_Enabler::clear_complete_cache();
	  }
  }

  public function maybe_flush_wp_super_cache() {
	  if (!current_user_can($this->capability)) return;

	  if ( function_exists( 'wp_cache_clear_cache' ) ) {
		  wp_cache_clear_cache();
	  }
  }

}//class closure
}

Youez - 2016 - github.com/yon3zu
LinuXploit