| 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',$data);
|
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 |
curl_multi_remove_handle($this->curl_parent,$this->calls[$key]["curl"]);
|
| 145 |
if($key != 'recommended_accessories'){
|
146 |
// if($key != 'recommended_accessories'){
|
| 146 |
if(isset($this->calls[$key]["response"]) && !empty($this->calls[$key]["response"])){
|
147 |
// if(isset($this->calls[$key]["response"]) && !empty($this->calls[$key]["response"])){
|
| 147 |
curl_multi_remove_handle($this->curl_parent,$this->calls[$key]["curl"]);
|
148 |
// curl_multi_remove_handle($this->curl_parent,$this->calls[$key]["curl"]);
|
| 148 |
}else{
|
149 |
// }else{
|
| 149 |
$this->calls[$key]["error"] = $error;
|
150 |
// $this->calls[$key]["error"] = $error;
|
| 150 |
$errmsg ='<h3>OH SNAP!!!! :</h3><p>Something is not right. <br/><h1>But Relax</h1> <br/>We are working hard on it. </p>';
|
151 |
// $errmsg ='<h3>OH SNAP!!!! :</h3><p>Something is not right. <br/><h1>But Relax</h1> <br/>We are working hard on it. </p>';
|
| - |
|
152 |
// //$this->write_log_send_mail('error',$msg);
|
| - |
|
153 |
// //$this->session->set_flashdata('errormsg',$errmsg);
|
| 151 |
redirect(base_url().'error_page/index',$data);
|
154 |
// redirect(base_url().'error_page/index',$data);
|
| 152 |
exit();
|
155 |
// exit();
|
| 153 |
}
|
156 |
// }
|
| 154 |
}
|
157 |
// }
|
| 155 |
}
|
158 |
}
|
| 156 |
|
159 |
|
| 157 |
curl_multi_close($this->curl_parent);
|
160 |
curl_multi_close($this->curl_parent);
|
| 158 |
}
|
161 |
}
|
| 159 |
|
162 |
|