Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     if (!Sentry::check()) {
         $this->message->set('danger', 'You must login to access this module', TRUE, 'message');
         redirect(website_url('auth'));
     }
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('parser');
     if (Sentry::check()) {
         if ($this->uri->segment(3) != 'logout') {
             redirect(website_url('dashboard'));
         }
     }
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library("security");
     $this->load->library("timezone");
     $this->load->library("parser");
     $this->load->model('client_model');
     if (!Sentry::check()) {
         $this->message->set('danger', 'You must login to access this module', TRUE, 'message');
         redirect(website_url('auth'));
     }
 }