Example #1
0
 function __construct()
 {
     parent::__construct();
     parent::CheckLogin();
     $this->view->title = "Admin Home";
     $this->view->js = array('dashboard/js/default.js');
 }
Example #2
0
 function __construct()
 {
     parent::__construct();
     parent::CheckLogin();
     /*if(parent::returnRole() == "Developer" || parent::returnRole() == "Staff"){
     			$_SESSION['adminmessage'] ="You are not authorized to view Admin page";
     			redirect_to($this->uri->link("index"));	
     		}*/
     $this->view->title = "Admin Management System";
 }
Example #3
0
 function __construct()
 {
     parent::__construct();
     parent::CheckLogin();
     $role = parent::returnRole();
     if ($role == "Staff") {
         $_SESSION['adminmessage'] = "You are not authorized to view Page page";
         parent::redirect_to("index");
     }
     $this->view->title = "Products Management";
 }
Example #4
0
 function __construct()
 {
     parent::__construct();
     parent::CheckLogin();
     $this->view->title = "Admin Home";
 }
Example #5
0
 function __construct()
 {
     parent::__construct();
     parent::CheckLogin();
     $this->view->title = "News Management";
 }