Subversion Repositories SmartDukaan

Rev

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

Rev 16261 Rev 16423
Line 61... Line 61...
61
			}
61
			}
62
		}
62
		}
63
	}
63
	}
64
 
64
 
65
	public function filter($str,$catId=3) {
65
	public function filter($str,$catId=3) {
-
 
66
		$userId = $this->request->query('user_id');
-
 
67
		if(isset($userId) && !empty($userId)) {
-
 
68
			$this->loadModel('User');
-
 
69
			$dbuser = $this->User->findById($userId);
-
 
70
			$this->Auth->login($dbuser['User']);
-
 
71
		}
66
		setcookie("brandschosen", urldecode($str), time()+6*3600, '/');
72
		setcookie("brandschosen", urldecode($str), time()+6*3600, '/');
67
		$this->redirect('/category/'.$catId);
73
		$this->redirect('/category/'.$catId);
68
	}	
74
	}	
69
 
75
 
70
/**
76
/**