public function __construct() { parent::__construct(); is_installed(); #defined in auth helper remove_featured_if_expired(); $this->PER_PAGE = get_per_page_value(); #defined in auth helper $this->active_theme = get_active_theme(); $this->load->model('show_model'); $this->load->model('user/user_model'); $this->load->library('encrypt'); $this->load->helper('text'); $this->output->enable_profiler($this->config->item('debug_site')); if (isset($_POST['view_orderby'])) { $this->session->set_userdata('view_orderby', $this->input->post('view_orderby')); } if (isset($_POST['view_ordertype'])) { $this->session->set_userdata('view_ordertype', $this->input->post('view_ordertype')); } $system_currency_type = get_settings('realestate_settings', 'system_currency_type', 0); if ($system_currency_type == 0) { $system_currency = get_currency_icon(get_settings('realestate_settings', 'system_currency', 'USD')); } else { $system_currency = get_settings('realestate_settings', 'system_currency', 'USD'); } $this->session->set_userdata('system_currency', $system_currency); $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>'); }
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 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>'); }