예제 #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
 public function __construct($stdClass = null)
 {
     $this->stdClass = $stdClass;
     parent::__construct($stdClass);
     $this->porg = PorG();
     $this->ParentCookie();
 }