Subversion Repositories SmartDukaan

Rev

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

Rev 19940 Rev 20105
Line 30... Line 30...
30
		
30
		
31
	}
31
	}
32
	
32
	
33
	public function index() {
33
	public function index() {
34
		$userId = $this->request->query('user_id');
34
		$userId = $this->request->query('user_id');
35
		if(isset($userId) && !empty($userId)){
35
// 		if(isset($userId) && !empty($userId)){
36
			$this->loadModel('User');
36
// 			$this->loadModel('User');
37
			$dbuser = $this->User->findById($userId);
37
// 			$dbuser = $this->User->findById($userId);
38
			$this->Auth->login($dbuser['User']);	
38
// 			$this->Auth->login($dbuser['User']);	
39
		}
39
// 		}
40
	}
40
	}
41
 
41
 
42
	public function howitworks() {
42
	public function howitworks() {
43
		$userId = $this->request->query('user_id');
43
		$userId = $this->request->query('user_id');
44
		if(isset($userId) && !empty($userId)){
44
// 		if(isset($userId) && !empty($userId)){
45
			$this->loadModel('User');
45
// 			$this->loadModel('User');
46
			$dbuser = $this->User->findById($userId);
46
// 			$dbuser = $this->User->findById($userId);
47
			$this->Auth->login($dbuser['User']);	
47
// 			$this->Auth->login($dbuser['User']);	
48
		}
48
// 		}
49
	}
49
	}
50
 
50
 
51
	public function native(){
51
	public function native(){
52
		$this->layout = 'ajax';
52
		$this->layout = 'ajax';
53
	}
53
	}