コード例 #1
0
ファイル: Private_Controller.php プロジェクト: NaN1984/task
 function __construct()
 {
     parent::__construct();
     if (!$this->user_model->isUserAuth()) {
         show_error('This is for authorise users.');
         redirect('/', 'refresh');
     }
 }
コード例 #2
0
 function __construct()
 {
     parent::__construct();
     if (!$this->author_model->isUserAuthorize()) {
         show_error('Страница не доступна для не авторизированого автора.');
         redirect('/', 'refresh');
     }
 }
コード例 #3
0
ファイル: upload.php プロジェクト: andrewkrug/repucaution
 public function __construct()
 {
     parent::__construct();
     $this->uploader = $this->get('core.file.upload');
     $this->uploader->setUser($this->c_user);
 }
コード例 #4
0
ファイル: software.php プロジェクト: magiclake/chaowei
 public function __construct()
 {
     parent::__construct();
 }