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/themeoptions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

	private static $_options = null;

	private static function _init(){
		if( ! empty( ffOpt::$_options ) ){
			return;
		}

		$structure = ffStructureFactory::get('to_options')->getSection();
		$salOptions = new ffSalOptions();
		ffOpt::$_options = $salOptions->getData( $structure );
	}

	static function Get( $ID ){
		ffOpt::_init();
		return ffOpt::$_options->Get($ID);
	}

	static function GetBR( $ID ){
		return str_replace("\n", '<br />', trim( ffOpt::Get( $ID ) ));
	}
	
	static function DeleteDBDirect( $namespace, $name ) {
		$opt = get_option( ffSalOptionsDB::getName( $namespace ), null );
		if( ! is_array( $opt ) ){
			$opt = array();
		}
		if( isSet( $opt[ $name ] ) ){
			unset( $opt[ $name ] );
		}
		update_option( ffSalOptionsDB::getName( $namespace ), $opt );
	}

	static function SetDBDirect( $namespace, $name, $value ){
		$opt = get_option( ffSalOptionsDB::getName( $namespace ), null );
		if( ! is_array( $opt ) ){
			$opt = array();
		}
		$opt[ $name ] = $value;
		update_option( ffSalOptionsDB::getName( $namespace ), $opt );
	}

	static function GetDBDirect( $namespace, $name ){
		$opt = get_option( ffSalOptionsDB::getName( $namespace ), null );
		if( ! is_array( $opt ) ){
			return null;
		}
		return isSet( $opt[ $name ] ) ? $opt[ $name ] : null ;
	}
	
	static function GetWithHTMLEntities( $ID ){
		$val = "".ffOpt::Get( $ID );
		if( ! is_string($val) ){
			return "NOT STRING";
		}
		
		$val = str_replace( "&", "&amp;", $val);

		$replace =      array( "<"    , ">"    , '"'      , "'"     );
		$replace_with = array( "&lt;" , "&gt;" , '&quot;' , "&#39;" );
		
		$val = str_replace($replace, $replace_with, $val);

		return $val;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit