application/manage/controller/Base.php
protected function verifyLogin()
    {
        $user = LoginLogic::getLoginUser();
        if (empty($user)) {
            responseRedirect('start/login');
        } else {
            // 用户ID
            $this->user_id = $user['user_id'];
            
            // 用户信息
            if (! Request::instance()->isAjax()) {
                $manage_user = LoginLogic::gteLoginUserInfo();
                $this->assign('manage_user', $manage_user);
                
                // 管理首页
                $this->assign('manage_url', $user['manage_url']);
            }
        }
    }
protected function verifyLogin()
    {
        $user = LoginLogic::getLoginUser();
        if (empty($user)) {
            responseRedirect('start/login');
        } else {
            // 用户ID
            $this->user_id = $user['user_id'];
            
            // 用户信息
            if (! Request::instance()->isAjax()) {
                $manage_user = LoginLogic::gteLoginUserInfo();
                $this->assign('manage_user', $manage_user);
                
                // 管理首页
                $this->assign('manage_url', $user['manage_url']);
            }
        }
    }
protected function verifyLogin ( ) { $ user = LoginLogic :: getLoginUser ( ) ; if ( empty ( $ user ) ) { responseRedirect ( 'start/login' ) ; } else { // 用户ID $ this -> user_id = $ user [ 'user_id' ] ; // 用户信息 if ( ! Request :: instance ( ) -> isAjax ( ) ) { $ manage_user = LoginLogic :: gteLoginUserInfo ( ) ; $ this -> assign ( 'manage_user' , $ manage_user ) ; // 管理首页 $ this -> assign ( 'manage_url' , $ user [ 'manage_url' ] ) ; } } }
验证登录
验证登录