function __construct()
 {
     parent::__construct();
     $isLogin = parent::_isLoginRoot();
     if (!$isLogin) {
         $this->responseAjaxEroor('请登录');
         exit;
     }
 }
Exemple #2
0
 /**
  * (non-PHPdoc)
  * @see MAdminControllerBase::_isLogin()
  */
 public function isLogin()
 {
     $isLogin = parent::_isLogin();
     if (!$isLogin) {
         $this->responseAjaxEroor('请登录');
     } else {
         //如果登录,打印出菜单信息
         $navData = array();
         $usertype = '普通会员';
         if ($this->getIsRootUser()) {
             $usertype = '超级管理员';
             $navData = $this->getConfig('rootUserAdminMenu');
         } else {
             $navData = $this->getConfig('userAdminMenu');
         }
         $this->responseAjaxSucess(array('user' => $this->getSessionValuse('user'), 'usertype' => $usertype, 'nav' => $navData));
     }
 }