Server IP : 49.212.180.16 / Your IP : 3.12.160.196 Web Server : Apache System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 User : utannto ( 1076) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/utannto/www/hironaka.biz/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; ?>