| Line 123... |
Line 123... |
| 123 |
$_POST['isLoggedIn'] = 'false';
|
123 |
$_POST['isLoggedIn'] = 'false';
|
| 124 |
}
|
124 |
}
|
| 125 |
$data['stylesheet'] = 'recharge.css';
|
125 |
$data['stylesheet'] = 'recharge.css';
|
| 126 |
$data['title'] = 'Instant recharge for your mobile and DTH';
|
126 |
$data['title'] = 'Instant recharge for your mobile and DTH';
|
| 127 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('rechargeGetUser'));
|
127 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('rechargeGetUser'));
|
| 128 |
if(isset($data['response']['response']['recharge_confirmation'][0]->userId) && !empty($data['response']['response']['recharge_confirmation'][0]->userId)){
|
- |
|
| 129 |
$this->session->set_userdata('recharge_confirmation' , $data['response']['response']['recharge_confirmation']);
|
- |
|
| 130 |
$this->session->set_userdata('userId',$data['response']['response']['recharge_confirmation'][0]->userId);
|
128 |
$user_id = $data['response']['response']['recharge_confirmation'][0]->userId;
|
| 131 |
$_POST['userId'] = $data['response']['response']['recharge_confirmation'][0]->userId;
|
129 |
$userarray = array();
|
| 132 |
} else{
|
130 |
if(empty($user_id)){
|
| 133 |
redirect(base_url().'recharge');
|
131 |
redirect(base_url().'recharge');
|
| 134 |
}
|
132 |
}
|
| - |
|
133 |
$recharge_confirmation = $data['response']['response']['recharge_confirmation'];
|
| - |
|
134 |
$userarray['userId'] = $user_id;
|
| - |
|
135 |
$_POST['userId'] = $user_id;
|
| 135 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('rechargeAmount'));
|
136 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('rechargeAmount'));
|
| 136 |
$data['response']['response']['recharge_confirmation'] = $this->session->userdata('recharge_confirmation');
|
137 |
$data['response']['response']['recharge_confirmation'] = $recharge_confirmation;
|
| 137 |
if(isset($data['response']['response']['recharge_amount'][0]->payAmount) && $data['response']['response']['recharge_amount'][0]->payAmount == 0){
|
138 |
if(isset($data['response']['response']['recharge_amount'][0]->payAmount) && $data['response']['response']['recharge_amount'][0]->payAmount == 0){
|
| 138 |
$captcha = $this->captcha_model->generateCaptcha();
|
139 |
$captcha = $this->captcha_model->generateCaptcha();
|
| 139 |
$this->session->set_userdata('captcha',$captcha['word']);
|
140 |
$userarray['captcha'] = $captcha['word'];
|
| 140 |
$data['captcha'] = $captcha;
|
141 |
$data['captcha'] = $captcha;
|
| 141 |
}
|
142 |
}
|
| - |
|
143 |
$this->session->set_userdata($userarray);
|
| 142 |
$this->layout->view('recharge/recharge_view',$data);
|
144 |
$this->layout->view('recharge/recharge_view',$data);
|
| 143 |
}
|
145 |
}
|
| 144 |
elseif(isset($_POST['submit']) && (($_POST['submit'] == 'Confirm') || ($_POST['submit'] == 'Recharge Now')) && (isset($_POST['captcha_response_field']) && !empty($_POST['captcha_response_field']))) {
|
146 |
elseif(isset($_POST['submit']) && (($_POST['submit'] == 'Confirm') || ($_POST['submit'] == 'Recharge Now')) && (isset($_POST['captcha_response_field']) && !empty($_POST['captcha_response_field']))) {
|
| 145 |
$userId = $this->session->userdata('userId');
|
147 |
$userId = $this->session->userdata('userId');
|
| 146 |
$captcha = $this->session->userdata('captcha');
|
148 |
$captcha = $this->session->userdata('captcha');
|
| Line 189... |
Line 191... |
| 189 |
}
|
191 |
}
|
| 190 |
$data['stylesheet'] = 'recharge.css';
|
192 |
$data['stylesheet'] = 'recharge.css';
|
| 191 |
|
193 |
|
| 192 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeconfig);
|
194 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeconfig);
|
| 193 |
if(isset($data['response']['response']['recharge_amount'][0]->payAmount) && $data['response']['response']['recharge_amount'][0]->payAmount == 0){
|
195 |
if(isset($data['response']['response']['recharge_amount'][0]->payAmount) && $data['response']['response']['recharge_amount'][0]->payAmount == 0){
|
| 194 |
$captcha = $this->captcha_model->generateCaptcha();
|
196 |
$captcha = $this->captcha_model->generateCaptcha();
|
| 195 |
$this->session->set_userdata('captcha',$captcha['word']);
|
197 |
$this->session->set_userdata('captcha',$captcha['word']);
|
| 196 |
$data['captcha'] = $captcha;
|
198 |
$data['captcha'] = $captcha;
|
| 197 |
}
|
199 |
}
|
| 198 |
if(isset($data['response']['response']['recharge_confirmation'][0]->userId) && !empty($data['response']['response']['recharge_confirmation'][0]->userId)){
|
200 |
if(isset($data['response']['response']['recharge_confirmation'][0]->userId) && !empty($data['response']['response']['recharge_confirmation'][0]->userId)){
|
| 199 |
$this->session->set_userdata('userId',$data['response']['response']['recharge_confirmation'][0]->userId);
|
201 |
$this->session->set_userdata('userId',$data['response']['response']['recharge_confirmation'][0]->userId);
|
| 200 |
$this->layout->view('recharge/recharge_view',$data);
|
202 |
$this->layout->view('recharge/recharge_view',$data);
|
| 201 |
}else{
|
203 |
}else{
|