Exemple #1
0
 function __construct()
 {
     parent::__construct();
     $this->User = new mUser();
     if (!$this->User->authenticated() && $this->uri->segment(2) != 'login') {
         redirect('/site-admin/login/');
     }
 }
Exemple #2
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('session');
     $this->basket =& $_SESSION['basket'];
     if (!is_array($this->basket)) {
         $this->basket = array();
     }
 }
Exemple #3
0
 function __construct()
 {
     parent::__construct();
     $API = new stripelib();
     $this->order = mOrder::get_instance();
 }
Exemple #4
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('blog');
 }