Subversion Repositories SmartDukaan

Rev

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

Rev 15188 Rev 15248
Line 99... Line 99...
99
			} elseif($storeId == 4){
99
			} elseif($storeId == 4){
100
				$urlparts = parse_url($url);
100
				$urlparts = parse_url($url);
101
				$url = $urlparts['path'];
101
				$url = $urlparts['path'];
102
				if(!empty($urlparts['query'])){
102
				if(!empty($urlparts['query'])){
103
					$url .= '?'.$urlparts['query'];	
103
					$url .= '?'.$urlparts['query'];	
104
				}				
104
				}		
-
 
105
				$tokenValidated = $this->checkToken();
-
 
106
				if(isset($userId) && !empty($userId) && $tokenValidated){			
105
				$url = $this->getAutoLoginUrl($userId,$url);
107
					$url = $this->getAutoLoginUrl($userId,$url);
-
 
108
				}
106
			}/*else{
109
			}/*else{
107
				$url = $storeProduct['marketPlaceUrl'];
110
				$url = $storeProduct['marketPlaceUrl'];
108
			}*/
111
			}*/
109
			if( strpos($url, '?') === false ) {
112
			if( strpos($url, '?') === false ) {
110
				$firstChar = '?';
113
				$firstChar = '?';
Line 143... Line 146...
143
		}
146
		}
144
	}
147
	}
145
 
148
 
146
	public function redirecttosaholic() {
149
	public function redirecttosaholic() {
147
		$userId = $this->request->query('user_id');
150
		$userId = $this->request->query('user_id');
-
 
151
		$tokenValidated = $this->checkToken();
148
		if(isset($userId) && !empty($userId)){	
152
		if(isset($userId) && !empty($userId) && $tokenValidated){	
149
			$next = "&next=/private-deals/1";					
153
			$next = "&next=/private-deals/1";					
150
			$redirectUrl = $this->getAutoLoginUrl($userId,$next);
154
			$redirectUrl = $this->getAutoLoginUrl($userId,$next);
151
			header('location:'.$redirectUrl);
155
			header('location:'.$redirectUrl);
152
			exit();
156
			exit();
153
		}
157
		}