public function __construct()
 {
     parent::__construct();
     // 判断是否开启调试
     if (C("xhprof.switch")) {
         start_xhprof();
     }
     $this->load->library(array('UserAuth', 'Http'));
     $this->post = json_decode(file_get_contents("php://input"), TRUE);
     // 从post中json字符串中解析出变量并合并到$_POST
     if (!empty($this->post)) {
         $this->post = xss_clean($this->post);
         $_POST = array_merge($_POST, $this->post);
     }
     $this->_sites = array(C('app_sites.chu'), C('app_sites.guo'));
     // $this->output->enable_profiler(TRUE);
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->library(array('UserAuth'));
     // 判断是否开启调试
     if (C("xhprof.switch")) {
         start_xhprof();
     }
     $this->load->library(array('UserAuth', 'Http'));
     $this->post = json_decode(file_get_contents("php://input"), TRUE);
     // 从post中json字符串中解析出变量并合并到$_POST
     if (!empty($this->post)) {
         $this->post = xss_clean($this->post);
         $_POST = array_merge($_POST, $this->post);
     }
     $this->_sites = array(C('app_sites.chu'), C('app_sites.guo'));
     $this->_service_url = C('service.s');
     // $this->output->enable_profiler(TRUE);
     // 增加支持命名空间加载,辅助方法在shared/helpers/spl_autoload_helper.php
     register_autoloader();
 }
 public function __construct()
 {
     parent::__construct();
     // 判断是否开启调试
     if (C("xhprof.switch")) {
         start_xhprof();
     }
     $this->load->model(['MLog']);
     $this->load->library(array('UserAuth', 'Http'));
     $this->post = json_decode(file_get_contents("php://input"), TRUE);
     // 从post中json字符串中解析出变量并合并到$_POST
     if (!empty($this->post)) {
         $this->post = xss_clean($this->post);
         $_POST = array_merge($_POST, $this->post);
     }
     $this->_service_url = C('service.s');
     // 记录系统日志
     $this->MLog->record($this->userauth->current(FALSE));
     // 激活分析器以调试程序
     // $this->output->enable_profiler(TRUE);
 }