public function __construct()
 {
     parent::__construct();
     if (!C('register_is_enable')) {
         $this->error('注册已关闭');
     }
 }
 function __construct()
 {
     parent::__construct();
     $this->uid = is_login();
     if (!$this->uid && ACTION_NAME != 'profile') {
         $this->redirect('User/login');
     }
     $this->pageTitle = "用户中心";
 }
 public function __construct()
 {
     parent::__construct();
     if (!C('register_is_enable')) {
         $this->error('注册已关闭');
     }
     if (!UID) {
         session('error', '您还没有登陆');
         $this->redirect(U('User/login'));
     }
 }
Beispiel #4
0
 public function __construct()
 {
     parent::__construct();
     $this->topicModel = M("topic");
     $this->imageModel = M("image");
     $this->noticeModel = M("notice");
     $this->vipModel = M("privilege");
     $this->questionModel = M("question");
     $this->classifiModel = M("classifi");
     $this->bannelModel = M("bannel");
     //流量记录
     $this->flowModel = D("flow");
 }
 public function __construct()
 {
     parent::__construct();
 }