Welcome Guest, Not a member yet? Register   Sign In
I Can't Get My Sessions To Work Right
#2

[eluser]ShoeLace1291[/eluser]
Controller extension:
Code:
<?php

class MY_Controller extends CI_Controller {
    
    var $user = array();
    
    function __construct(){
        
        parent::__construct();
        $this->load->model('member');
        
     if(!$this->config->item('global_maintenance')){
      
      if($this->config->item('beta_mode')){
        
          $this->load->model('_beta');
          
          if($this->uri->uri_string() != 'beta/signup'){
          
           $this->_beta->get_user($this->input->ip_address());
           if($this->_beta->error == NULL){
            
            $this->betaUser = $this->_beta->info;
            
           } else {
            
            redirect('beta/signup');
            
           }
          
          }
          
      }
      
      $this->member->get_info($this->session->userdata('member_id'));
      if($this->member->error == NULL){
      
       $this->user = $this->member->info;
      
      }            
      
      
     } else {
      
       die('BaseCMD is currently down for routine maintenance.  Please try again later!');
      
      }
    
}
    
}


Messages In This Thread
I Can't Get My Sessions To Work Right - by El Forum - 10-18-2014, 12:49 PM
I Can't Get My Sessions To Work Right - by El Forum - 10-18-2014, 12:50 PM
I Can't Get My Sessions To Work Right - by El Forum - 10-18-2014, 12:59 PM
I Can't Get My Sessions To Work Right - by El Forum - 10-18-2014, 01:00 PM
I Can't Get My Sessions To Work Right - by El Forum - 10-18-2014, 01:02 PM
I Can't Get My Sessions To Work Right - by El Forum - 10-18-2014, 01:02 PM
I Can't Get My Sessions To Work Right - by El Forum - 10-19-2014, 05:11 AM
I Can't Get My Sessions To Work Right - by El Forum - 10-20-2014, 05:39 AM
I Can't Get My Sessions To Work Right - by El Forum - 10-20-2014, 02:22 PM
I Can't Get My Sessions To Work Right - by El Forum - 10-20-2014, 02:41 PM
I Can't Get My Sessions To Work Right - by El Forum - 10-20-2014, 02:52 PM
I Can't Get My Sessions To Work Right - by El Forum - 10-20-2014, 03:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB