Subversion Repositories SmartDukaan

Rev

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

Rev 19923 Rev 19941
Line 126... Line 126...
126
		if(isset($userId) && !empty($userId)) {
126
		if(isset($userId) && !empty($userId)) {
127
			$this->loadModel('User');
127
			$this->loadModel('User');
128
			$dbuser = $this->User->findById($userId);
128
			$dbuser = $this->User->findById($userId);
129
			$this->Auth->login($dbuser['User']);
129
			$this->Auth->login($dbuser['User']);
130
		}
130
		}
-
 
131
		$version = $this->request->query('version');
-
 
132
		if(isset($version) && !isset($_COOKIE['version'])){
-
 
133
				setcookie('version', $version, time() + (86400 * 30), "/");
-
 
134
		}
-
 
135
		
-
 
136
		
131
		$color = array('0'=>'#458ccc','1'=>'#44cbbc','2'=>'#a77189', '3'=>'#f9b931' ,'4' =>'#44cbbc', '5' => '#f48f3f' , '6'=>'#a77189');
137
		$color = array('0'=>'#458ccc','1'=>'#44cbbc','2'=>'#a77189', '3'=>'#f9b931' ,'4' =>'#44cbbc', '5' => '#f48f3f' , '6'=>'#a77189');
132
		
138
		
133
		//Sort - type, ordering
139
		//Sort - type, ordering
134
		$sort = $this->request->query('sort');
140
		$sort = $this->request->query('sort');
135
		$direction = $this->request->query('direction');
141
		$direction = $this->request->query('direction');