コード例 #1
0
ファイル: catch.php プロジェクト: vyouzhis/phpdbi
 function init()
 {
     if (function_exists("session_status")) {
         if (@session_status() != PHP_SESSION_ACTIVE) {
             @session_start();
         }
     } else {
         @session_start();
     }
     $uuid = $this->CheckFlag();
     $this->document = array();
     if (preg_match('/\\/404/i', $_SERVER['REQUEST_URI']) == 1) {
         return;
     }
     if (preg_match('/\\/injax/i', $_SERVER['REQUEST_URI']) == 1) {
         return;
     }
     $this->document['ctime'] = time();
     // 处理生成时间顺序
     $this->document['PorG'] = PorG();
     $this->document['SERVER'] = $_SERVER;
     $this->document['SESSION'] = $_SESSION;
     $this->document['COOKIE'] = $_COOKIE;
     $this->document['uuid'] = $uuid;
     //$this->mcol = date("Yz", time());
     $this->mcol = 'ok';
     $this->Insert();
 }
コード例 #2
0
ファイル: BaseTheme.php プロジェクト: vyouzhis/phpdbi
 public function __construct($stdClass = null)
 {
     $this->stdClass = $stdClass;
     parent::__construct($stdClass);
     $this->porg = PorG();
     $this->ParentCookie();
 }