Subversion Repositories SmartDukaan

Rev

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

Rev 15248 Rev 15311
Line 103... Line 103...
103
					$url .= '?'.$urlparts['query'];	
103
					$url .= '?'.$urlparts['query'];	
104
				}		
104
				}		
105
				$tokenValidated = $this->checkToken();
105
				$tokenValidated = $this->checkToken();
106
				if(isset($userId) && !empty($userId) && $tokenValidated){			
106
				if(isset($userId) && !empty($userId) && $tokenValidated){			
107
					$url = $this->getAutoLoginUrl($userId,$url);
107
					$url = $this->getAutoLoginUrl($userId,$url);
-
 
108
				} else{
-
 
109
					$url = '/special/native/login';
108
				}
110
				}
109
			}/*else{
111
			}/*else{
110
				$url = $storeProduct['marketPlaceUrl'];
112
				$url = $storeProduct['marketPlaceUrl'];
111
			}*/
113
			}*/
112
			if( strpos($url, '?') === false ) {
114
			if( strpos($url, '?') === false ) {
Line 146... Line 148...
146
		}
148
		}
147
	}
149
	}
148
 
150
 
149
	public function redirecttosaholic() {
151
	public function redirecttosaholic() {
150
		$userId = $this->request->query('user_id');
152
		$userId = $this->request->query('user_id');
151
		$tokenValidated = $this->checkToken();
153
        $tokenValidated = $this->checkToken();
152
		if(isset($userId) && !empty($userId) && $tokenValidated){	
154
        if(isset($userId) && !empty($userId) && $tokenValidated){
153
			$next = "&next=/private-deals/1";					
155
                $next = "&next=/private-deals/1";
154
			$redirectUrl = $this->getAutoLoginUrl($userId,$next);
156
                $redirectUrl = $this->getAutoLoginUrl($userId,$next);
155
			header('location:'.$redirectUrl);
157
                header('location:'.$redirectUrl);
156
			exit();
158
                exit();
-
 
159
        } else{
-
 
160
                $this->redirect(array('controller'=>'special','action'=>'native','login'));
157
		}
161
        }
158
	}	
162
	}	
159
 
163
 
160
/**
164
/**
161
 * edit method
165
 * edit method
162
 *
166
 *