Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $segment = $this->uri->rsegment(2);
     if ($this->session->userdata('exam_uid') && $segment != 'check_login') {
         redirect('exam/test/index/');
     }
     $this->load->model('exam/exam_model');
     // $this->output->enable_profiler(TRUE);
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     // 后台登录验证处理
     $segment = $this->uri->rsegment(2);
     if ($segment !== 'login' && $segment !== 'check_login') {
         /**
          * 检查登陆
          */
         $exam_session = $this->session->userdata('exam_uid');
         if (!$exam_session) {
             redirect('exam/index/login');
         }
     }
     // $this->output->enable_profiler(TRUE);
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     require_once APPPATH . 'config/app/exam/log_type_desc.php';
 }