public function _initialize()
 {
     parent::_initialize();
     $username = I('post.username');
     $user = explode(session('round'), base64_decode($username));
     if (ACTION_NAME != 'show') {
         if (session('USER_AUTH_KEY') == '') {
             $data = array('status' => 50099, 'title' => '登录已经失效', 'mess' => '对不起,登录信息已失效,请重新登录');
             $this->ajaxReturn($data);
             exit;
         } else {
             if (session('user') != $user[0]) {
                 $data = array('status' => 50099, 'title' => '非法登录', 'mess' => '对不起,检测到您的登录信息不合法,请重新登录');
                 $this->ajaxReturn($data);
                 exit;
             }
         }
     }
 }
Exemplo n.º 2
0
 public function _initialize()
 {
     parent::_initialize();
     $this->display();
 }
Exemplo n.º 3
0
 public function _initialize()
 {
     parent::_initialize();
     $this->dbname = 'org';
 }