| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/repository/wp-content/plugins/exec-php/includes/ |
Upload File : |
<?php
require_once(dirname(__FILE__).'/option.php');
require_once(dirname(__FILE__).'/usermeta.php');
// -----------------------------------------------------------------------------
// the ExecPhp_Cache serves as a cache for the option and usermeta
// -----------------------------------------------------------------------------
if (!class_exists('ExecPhp_Cache')) :
class ExecPhp_Cache
{
var $m_option = NULL;
var $m_usermetas = array();
// ---------------------------------------------------------------------------
// init
// ---------------------------------------------------------------------------
function ExecPhp_Cache()
{
$this->m_option =& new ExecPhp_Option();
}
// ---------------------------------------------------------------------------
// access
// ---------------------------------------------------------------------------
function &get_option()
{
return $this->m_option;
}
function &get_usermeta($user_id)
{
if (!isset($this->m_usermetas[$user_id]))
// this will generate warnings with error_reporting(E_STRICT) using PHP5
// see http://www.php.net/manual/en/language.references.whatdo.php
$this->m_usermetas[$user_id] =& new ExecPhp_UserMeta($user_id);
return $this->m_usermetas[$user_id];
}
}
endif;
?>