Subversion Repositories SmartDukaan

Rev

Rev 11105 | Rev 11323 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11105 Rev 11108
Line 6... Line 6...
6
	
6
	
7
	function __construct() {
7
	function __construct() {
8
 
8
 
9
		// Call the CI_controller constructor
9
		// Call the CI_controller constructor
10
		parent::__construct();
10
		parent::__construct();
11
		$admin = $this->session->userdata('admin');
11
		// $admin = $this->session->userdata('admin');
12
		if(!isset($admin) || empty($admin)) {
12
		// if(!isset($admin) || empty($admin)) {
13
			redirect(base_url().'authorize');
13
		// 	redirect(base_url().'authorize');
14
		}
14
		// }
15
		$this->layout->setlayout('layout/layout_main');
15
		$this->layout->setlayout('layout/layout_main');
16
		$this->load->model('recharge_model');
16
		$this->load->model('recharge_model');
17
		$this->load->model('captcha_model');
17
		$this->load->model('captcha_model');
18
		$this->layoutName= $this->layout->getLayout();
18
		$this->layoutName= $this->layout->getLayout();
19
		$this->layoutName =substr($this->layoutName , 0, strrpos($this->layoutName , "/")).'/';
19
		$this->layoutName =substr($this->layoutName , 0, strrpos($this->layoutName , "/")).'/';