Beispiel #1
0
 public function __Construct()
 {
     parent::__Construct();
     $this->load->database();
     $this->load->model('ConfirmModel');
     $this->load->model('UsersModel');
 }
Beispiel #2
0
 function __Construct()
 {
     parent::__Construct();
     $this->load->model('GalleryModel');
     // load model
     $this->load->library(array('session'));
 }
Beispiel #3
0
 function __Construct()
 {
     parent::__Construct();
     $this->load->model('PictureModel');
     // load model
     $this->load->helper('form');
 }
 function Programmering()
 {
     parent::__Construct();
     $this->load->library('session');
     if ($this->session->userdata('logged') != '1') {
         redirect('admin');
     }
 }
Beispiel #5
0
 function __Construct()
 {
     parent::__Construct();
     $this->load->model(array('EditModel', 'upload_model', 'GalleryModel', 'Profile_model'));
     // load model
     $this->load->helper(array('form', 'url'));
     $this->load->library('form_validation');
 }
Beispiel #6
0
 function __construct()
 {
     parent::__Construct();
     $this->load->model('mod_pengajuan', 'model');
     if ($this->outh->is_logged_in() == false) {
         redirect('login');
     }
 }
Beispiel #7
0
 function __construct()
 {
     parent::__Construct();
     $this->load->model(array('MenuModel'));
     $this->load->library(array('form_validation'));
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger" role="alert">', '</div>');
     $this->load->helper('language');
 }
Beispiel #8
0
 public function __Construct()
 {
     parent::__Construct();
     $this->outh->restrict();
     if ($this->session->userdata('user_level') != 0) {
         redirect('dashboard');
     }
 }
Beispiel #9
0
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  * 		http://example.com/index.php/welcome
  *	- or -
  * 		http://example.com/index.php/welcome/index
  *	- or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 function __Construct()
 {
     parent::__Construct();
     $this->load->database();
     // load database
     //form validation
     $this->load->library('form_validation');
 }
Beispiel #10
0
 function __construct()
 {
     parent::__Construct();
     $this->load->model('Mod_master', 'model');
     if (!$this->outh->is_logged_in()) {
         redirect('login');
     }
 }
Beispiel #11
0
 public function __construct()
 {
     parent::__Construct();
     $this->load->database();
     $this->load->model('PagesModel');
     $this->load->library('../controllers/auth');
     $this->auth->authenticate();
 }
Beispiel #12
0
 function __Construct()
 {
     parent::__Construct();
     $this->load->library('form_validation');
     $this->load->model('Mod_profile');
     if ($this->outh->is_logged_in() == false) {
         redirect('login');
     }
 }
Beispiel #13
0
 function Ads()
 {
     parent::__Construct();
     $this->load->library('session');
     if ($this->session->userdata('logged') != '1') {
         redirect('admin');
     }
     $this->load->model('adsmodel');
 }
 function Login()
 {
     parent::__Construct();
     $this->load->library('session');
     $this->load->model('usermodel');
     if ($this->session->userdata('logged')) {
         redirect('admin/dashboard');
     }
 }
Beispiel #15
0
 public function __Construct()
 {
     parent::__Construct();
     $this->load->database();
     $this->load->model('UsersModel');
     $this->load->model('ConfirmModel');
     if (!$this->session->userdata('is_admin')) {
         redirect('user');
     }
 }
 function Music()
 {
     parent::__Construct();
     $this->load->library('session');
     if ($this->session->userdata('logged') != '1') {
         redirect('admin');
     }
     $this->load->model('playlistmodel');
     $this->load->model('livestreammodel');
 }
Beispiel #17
0
 function __Construct()
 {
     parent::__Construct();
     $this->load->database();
     // load database
     $this->load->model('Komponen_model');
     // load model
     $this->load->model('Supplier_model');
     // load model
 }
Beispiel #18
0
 function __construct()
 {
     parent::__Construct();
     $this->load->model(array('FeedbackModel'));
     $this->load->helper(array('url', 'form', 'language', 'security'));
     $this->load->library(array('form_validation'));
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger" role="alert">', '</div>');
     $this->lang->load('tekst_lang', 'estonian');
     $this->lang->load('form_validation_lang');
 }
Beispiel #19
0
 public function __construct()
 {
     parent::__Construct();
     $this->load->database();
     $this->load->model('PostsModel');
     $this->load->model('CommentsModel');
     $this->load->library("pagination");
     // $this->load->library('../controllers/auth');
     // $this->auth->authenticate();
 }
 public function __Construct()
 {
     parent::__Construct();
     $session_data = $this->session->userdata('logged_in');
     $data['eid'] = $session_data['eid'];
     $data['email'] = $session_data['email'];
     $data['status'] = $session_data['status'];
     $data['position'] = $session_data['position'];
     $this->load->view('layout/header', $data);
     $this->load->view("layout/footer");
 }
 public function __construct()
 {
     parent::__Construct();
     $this->load->model('Video_model');
     if (!isset($_SESSION['ip_address'])) {
         $this->load->model('Ip_model');
         $flag = $this->Ip_model->add_ip($this->input->ip_address());
     }
     #激活分析器以调试程序
     //$this->output->enable_profiler(TRUE);
 }
Beispiel #22
0
 function __Construct()
 {
     parent::__Construct();
 }
Beispiel #23
0
 public function __construct()
 {
     parent::__Construct();
 }
Beispiel #24
0
 public function __Construct()
 {
     parent::__Construct();
     $this->load->database();
     $this->load->model('FeedbacksModel');
 }
Beispiel #25
0
 function __Construct()
 {
     parent::__Construct();
     $this->load->model('SearchModel');
 }
Beispiel #26
0
 function __construct()
 {
     parent::__Construct();
     $this->load->model('mod_login', 'model');
 }
Beispiel #27
0
 function __construct()
 {
     parent::__Construct();
     $this->load->model('mdl_jadwal', 'model');
     $this->load->model('pengajuan/mod_pengajuan', 'mdl');
 }
Beispiel #28
0
 function Api()
 {
     parent::__Construct();
     $this->load->model('playoutmodel');
     header('Access-Control-Allow-Origin: *');
 }
Beispiel #29
0
 function __Construct()
 {
     parent::__Construct();
     $this->load->model('agenda_model');
 }
Beispiel #30
0
 function __Construct()
 {
     parent::__Construct();
     $this->load->model('administrasi/m_menu');
 }