Subversion Repositories SmartDukaan

Rev

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

Rev 11226 Rev 11354
Line 158... Line 158...
158
				$this->calls[$key]["response"] = curl_multi_getcontent($this->calls[$key]["curl"]);
158
				$this->calls[$key]["response"] = curl_multi_getcontent($this->calls[$key]["curl"]);
159
				//print_r($this->calls[$key]["response"]);
159
				//print_r($this->calls[$key]["response"]);
160
				$http_status = curl_getinfo($this->calls[$key]["curl"], CURLINFO_HTTP_CODE);
160
				$http_status = curl_getinfo($this->calls[$key]["curl"], CURLINFO_HTTP_CODE);
161
				if($key != 'tracking' && $key != 'recommended_accessories'){
161
				if($key != 'tracking' && $key != 'recommended_accessories'){
162
					if($http_status != 200) {
162
					if($http_status != 200) {
-
 
163
						$url = 'http://www.saholic.com/'.uri_string();
-
 
164
						$this->_ci->session->set_userdata('errorurl',$url);
163
        				redirect(base_url().'error_page/index');
165
        				redirect(base_url().'error_page/index');
164
        				exit();
166
        				exit();
165
					}
167
					}
166
				}
168
				}
167
				curl_multi_remove_handle($this->curl_parent,$this->calls[$key]["curl"]);
169
				curl_multi_remove_handle($this->curl_parent,$this->calls[$key]["curl"]);