Subversion Repositories SmartDukaan

Rev

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

Rev 10800 Rev 10802
Line 135... Line 135...
135
					if($key != 'recommended_accessories'){
135
					if($key != 'recommended_accessories'){
136
					$this->calls[$key]["error"] = $error;
136
					$this->calls[$key]["error"] = $error;
137
					$errmsg ='<h3>OH SNAP!!!! :</h3><p>Something is not right. <br/><h1>But Relax</h1> <br/>We are working hard on it. </p>';
137
					$errmsg ='<h3>OH SNAP!!!! :</h3><p>Something is not right. <br/><h1>But Relax</h1> <br/>We are working hard on it. </p>';
138
					//$this->write_log_send_mail('error',$msg);
138
					//$this->write_log_send_mail('error',$msg);
139
					//$this->session->set_flashdata('errormsg',$errmsg);
139
					//$this->session->set_flashdata('errormsg',$errmsg);
140
					redirect(base_url().'error_page/index');
140
					//redirect(base_url().'error_page/index');
141
					exit();
141
					//exit();
142
					}
142
					}
143
				}
143
				}
144
				$this->calls[$key]["response"] = curl_multi_getcontent($this->calls[$key]["curl"]);
144
				$this->calls[$key]["response"] = curl_multi_getcontent($this->calls[$key]["curl"]);
145
				$http_status = curl_getinfo($this->calls[$key]["curl"], CURLINFO_HTTP_CODE);
145
				$http_status = curl_getinfo($this->calls[$key]["curl"], CURLINFO_HTTP_CODE);
-
 
146
				if($key != 'recommended_accessories'){
146
				if($http_status != 200) {
147
					if($http_status != 200) {
147
        			redirect(base_url().'error_page/index');
148
        				redirect(base_url().'error_page/index');
148
        			exit();
149
        				exit();
-
 
150
					}
149
				}
151
				}
150
				curl_multi_remove_handle($this->curl_parent,$this->calls[$key]["curl"]);
152
				curl_multi_remove_handle($this->curl_parent,$this->calls[$key]["curl"]);
151
				// if($key != 'recommended_accessories'){
153
				// if($key != 'recommended_accessories'){
152
				// if(isset($this->calls[$key]["response"]) && !empty($this->calls[$key]["response"])){
154
				// if(isset($this->calls[$key]["response"]) && !empty($this->calls[$key]["response"])){
153
				// 	curl_multi_remove_handle($this->curl_parent,$this->calls[$key]["curl"]);	
155
				// 	curl_multi_remove_handle($this->curl_parent,$this->calls[$key]["curl"]);