Subversion Repositories SmartDukaan

Rev

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

Rev 11049 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("HTTP/1.0 200 OK");
15
		$this->output->set_header("HTTP/1.0 200 OK");
16
		$this->output->set_header("HTTP/1.1 200 OK");
16
		$this->output->set_header("HTTP/1.1 200 OK");
17
		$this->output->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s',time()).' GMT');
17
		$this->output->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s',time()).' GMT');
18
		$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
18
		$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
19
		$this->output->set_header("Cache-Control: post-check=0, pre-check=0");
19
		$this->output->set_header("Cache-Control: post-check=0, pre-check=0");