コード例 #1
0
ファイル: Admin.php プロジェクト: vikasrana1987/ci_cms
 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'));
     }
 }
コード例 #2
0
ファイル: Admin.php プロジェクト: vikasrana1987/ci_cms
 public function __construct()
 {
     parent::__construct();
     $this->load->library('parser');
     if (Sentry::check()) {
         if ($this->uri->segment(3) != 'logout') {
             redirect(website_url('dashboard'));
         }
     }
 }
コード例 #3
0
ファイル: Admin.php プロジェクト: vikasrana1987/ci_cms
 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'));
     }
 }