Beispiel #1
0
 public function __construct()
 {
     parent::__construct();
     //$js=array_push($this->js, 'register', 'bootstrap-select.min', 'main');
     $this->data['js'] = javaScript($this->js);
     $this->data['class'] = $this->class . ' ' . $this->dropdown;
 }
 public function __construct()
 {
     parent::__construct();
     $user_role = $this->session->userdata('user_role');
     $controller = $this->router->fetch_class();
     $method = $this->router->fetch_method();
     if ($user_role == 3 && ($controller == 'auth' && ($method == 'user_list' || $method == 'add' || $method == 'delete') || $controller == 'department' && ($method == 'index' || $method == 'add' || $method == 'delete')) || $controller == 'employee' && ($method == 'index' || $method == 'add' || $method == 'delete')) {
         redirect(base_url('site'));
     }
     if ($user_role == 2 && ($controller == 'auth' && ($method == 'user_list' || $method == 'add' || $method == 'delete') || $controller == 'employee' && ($method == 'index' || $method == 'add' || $method == 'delete'))) {
         redirect(base_url('site'));
     }
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct();
 }