Beispiel #1
0
 function __construct()
 {
     parent::__construct();
     if (!$this->user_model->isUserAuth()) {
         show_error('This is for authorise users.');
         redirect('/', 'refresh');
     }
 }
 function __construct()
 {
     parent::__construct();
     if (!$this->author_model->isUserAuthorize()) {
         show_error('Страница не доступна для не авторизированого автора.');
         redirect('/', 'refresh');
     }
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct();
     $this->uploader = $this->get('core.file.upload');
     $this->uploader->setUser($this->c_user);
 }
Beispiel #4
0
 public function __construct()
 {
     parent::__construct();
 }