public function __construct() { parent::__construct(); $curr_lang = $this->uri->segment(1) != '' ? $this->uri->segment(1) : 'en'; if ($curr_lang == 'ar') { $this->config->set_item('language', 'arabic'); } is_installed(); #defined in auth helper remove_featured_if_expired(); checksavedlogin(); #defined in auth helper if (!is_admin() && !is_agent()) { if (count($_POST) <= 0) { $this->session->set_userdata('req_url', current_url()); } redirect(site_url('admin/auth')); } $this->per_page = get_per_page_value(); #defined in auth helper $this->load->helper('text'); $this->load->model('show/show_model'); $this->load->model('admin/realestate_model'); $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>'); }
public function __construct() { parent::__construct(); is_installed(); #defined in auth helper checksavedlogin(); #defined in auth helper if (!is_loggedin()) { if (count($_POST) <= 0) { $this->session->set_userdata('req_url', current_url()); } redirect(site_url('admin/auth')); } $this->load->model('media_model'); $this->load->library('form_validation'); $this->form_validation->set_error_delimiters('<div class="alert alert-error input-xxlarge"">', '</div>'); }
public function __construct() { parent::__construct(); is_installed(); #defined in auth helper checksavedlogin(); #defined in auth helper if (!is_admin()) { if (count($_POST) <= 0) { $this->session->set_userdata('req_url', current_url()); } redirect(site_url('admin/auth')); } $this->per_page = get_per_page_value(); #defined in auth helper $this->load->model('admin/plugins_model'); }
public function __construct() { parent::__construct(); is_installed(); #defined in auth helper checksavedlogin(); #defined in auth helper if (!is_admin() && !is_agent()) { if (count($_POST) <= 0) { $this->session->set_userdata('req_url', current_url()); } redirect(site_url('admin/auth')); } $this->per_page = get_per_page_value(); #defined in auth helper $this->load->model('admin_model'); $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>'); }
public function __construct() { parent::__construct(); is_installed(); #defined in auth helper remove_featured_if_expired(); checksavedlogin(); #defined in auth helper if (!is_admin() && $this->session->userdata('user_type') != 2) { if (count($_POST) <= 0) { $this->session->set_userdata('req_url', current_url()); } redirect(site_url('admin/auth')); } $this->per_page = get_per_page_value(); #defined in auth helper $this->load->helper('text'); $this->load->model('show/show_model'); $this->load->model('admin/realestate_model'); $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>'); }