Subversion Repositories SmartDukaan

Rev

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

Rev 10914 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->output->set_header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
15
		$this->output->set_header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
16
		$this->output->set_header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
16
		$this->output->set_header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
17
		$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
17
		$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
18
		$this->output->set_header("Cache-Control: post-check=0, pre-check=0", false);
18
		$this->output->set_header("Cache-Control: post-check=0, pre-check=0", false);
19
		$this->output->set_header("Pragma: no-cache");
19
		$this->output->set_header("Pragma: no-cache");