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; } } } }
public function _initialize() { parent::_initialize(); $this->display(); }
public function _initialize() { parent::_initialize(); $this->dbname = 'org'; }