Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     sanitizeAllRequestData();
     $this->load->library('ion_auth');
     if ($this->config->item('site_open') === FALSE) {
         show_error('Sorry the site is shut for now.');
     }
     if ($this->ion_auth->logged_in()) {
         $obj = $this->ion_auth->user()->result_array();
         $arr = (array) $obj;
         $this->data['users']["user"] = $arr[0];
         $this->data['users']["groups"] = $this->ion_auth->get_users_groups($arr["id"])->result_array();
         $this->user_data = $arr[0];
     }
     $this->load->model("user/link_manager_model");
     $this->link_model = $this->link_manager_model;
     $this->load->model("general_model");
     $this->cfg_model = new general_model("cms_configuration");
     $this->cms_cfg = array();
     $this->cmsConfiguration();
     $this->encrypt_status = FALSE;
     if ($this->config->item("encrypt_id_enable")) {
         $this->encrypt_status = TRUE;
     }
     $this->render_footer();
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     sanitizeAllRequestData();
     $this->load->library('ion_auth');
     if ($this->config->item('site_open') === FALSE) {
         show_error('Sorry the site is shut for now.');
     }
     if ($this->ion_auth->logged_in()) {
         $obj = $this->ion_auth->user()->result_array();
         $arr = (array) $obj;
         $this->data['users']["user"] = $arr[0];
         $this->data['users']["groups"] = $this->ion_auth->get_users_groups($arr["id"])->result_array();
         $this->user_data = $arr[0];
     }
     $this->load->model("user/link_manager_model");
     $this->link_model = $this->link_manager_model;
     //$this->load->model("admin/pp_model");
     // $this->pp_model=$this->pp_model;
     $this->render_footer();
 }