Subversion Repositories SmartDukaan

Rev

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

Rev 15477 Rev 15511
Line 14... Line 14...
14
 
14
 
15
    public function beforeFilter() {
15
    public function beforeFilter() {
16
    	parent::beforeFilter();
16
    	parent::beforeFilter();
17
    	// $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'dashboard');
17
    	// $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'dashboard');
18
    	$this->Auth->loginRedirect = array('controller' => 'pages', 'action' => 'display','home');
18
    	$this->Auth->loginRedirect = array('controller' => 'pages', 'action' => 'display','home');
19
        $this->Auth->allow(array('mine','login', 'forgotten_password', 'register', 'activate', 'checkemail','checkfbuser','registertwitteruser','skipmobileverification','reauthenticate','edit','mywallet','admin_push','socialauth')); 
19
        $this->Auth->allow(array('mine','login', 'forgotten_password', 'register', 'activate', 'checkemail','checkfbuser','registertwitteruser','skipmobileverification','reauthenticate','edit','mywallet','admin_push','socialauth','oneringcb')); 
20
		$this->Cookie->name = 'profittill';
20
		$this->Cookie->name = 'profittill';
21
		$this->Cookie->time = 86400*30; 
21
		$this->Cookie->time = 86400*30; 
22
		$this->Cookie->path = '/';
22
		$this->Cookie->path = '/';
23
		$this->Cookie->key = 'qSI232qs*&sXOw!adre@34SAv!@*(XSL#$%)asGb$@11~_+!@#H23s~#^';
23
		$this->Cookie->key = 'qSI232qs*&sXOw!adre@34SAv!@*(XSL#$%)asGb$@11~_+!@#H23s~#^';
24
		$this->Cookie->httpOnly = true;
24
		$this->Cookie->httpOnly = true;
25
    }
25
    }
26
    
26
    
27
	public function bookmarklet() {
27
	public function oneringcb() {
28
		$this->set('title_for_layout','Profittill Bookmarklet');
28
		$this->log(print_r($_REQUEST,1),'onering');
29
	}
29
	}
30
 
30
 
31
	public function mywallet() {
31
	public function mywallet() {
32
		$userId = $this->request->query('user_id');
32
		$userId = $this->request->query('user_id');
33
		$tokenValidated = $this->checkToken($userId);
33
		$tokenValidated = $this->checkToken($userId);