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')); } }
public function __construct() { parent::__construct(); }
Header_Controller::process($_REQUEST); include_once 'controllers/TestCodeJS.php'; TestCodeJS_Controller::process($_REQUEST); Footer_Controller::process($_REQUEST); break; case 'execCode': include_once 'controllers/TestCode.php'; TestCode_Controller::doExecCode(); break; case 'execCodeDirect': include_once 'controllers/TestCode.php'; TestCode_Controller::doExecCodeDirect($_REQUEST['script']); break; case 'queryExamples': Header_Controller::process($_REQUEST); include_once 'controllers/queryExamples.php'; QueryExamples_Controller::process(); Footer_Controller::process($_REQUEST); break; case 'VQL': default: Header_Controller::process($_REQUEST); include_once 'controllers/Query.php'; Query_Controller::process($_REQUEST); Footer_Controller::process($_REQUEST); break; } } else { include_once 'controllers/Login.php'; Login_Controller::process($_REQUEST); }