| Line 29... |
Line 29... |
| 29 |
$cachemodule = array('header','footer');
|
29 |
$cachemodule = array('header','footer');
|
| 30 |
$rechargeconfig = getCache($rechargeconfig,$cachemodule);
|
30 |
$rechargeconfig = getCache($rechargeconfig,$cachemodule);
|
| 31 |
$data = array();
|
31 |
$data = array();
|
| 32 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
32 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
| 33 |
$data['stylesheet'] = 'recharge.css';
|
33 |
$data['stylesheet'] = 'recharge.css';
|
| - |
|
34 |
$data['title'] = 'DISH TV online recharge | saholic.com';
|
| - |
|
35 |
$data['metaKeywords'] = 'mobile, recharge';
|
| - |
|
36 |
$data['metaDescription'] = 'Description" content="Recharge your Mobile and DTH online for all cities using Credit/Debit card & net banking. Fast, Secure and Hassle Free Recharge';
|
| 34 |
$cache = getFileCache('rechargeOperators');
|
37 |
$cache = getFileCache('rechargeOperators');
|
| 35 |
if(isset($cache) && !empty($cache)){
|
38 |
if(isset($cache) && !empty($cache)){
|
| 36 |
$data['response'] = $cache;
|
39 |
$data['response'] = $cache;
|
| 37 |
}else{
|
40 |
}else{
|
| 38 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeconfig['module']);
|
41 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeconfig['module']);
|
| Line 98... |
Line 101... |
| 98 |
}else{
|
101 |
}else{
|
| 99 |
$_POST['userId'] = -1;
|
102 |
$_POST['userId'] = -1;
|
| 100 |
$_POST['isLoggedIn'] = 'false';
|
103 |
$_POST['isLoggedIn'] = 'false';
|
| 101 |
}
|
104 |
}
|
| 102 |
$data['stylesheet'] = 'recharge.css';
|
105 |
$data['stylesheet'] = 'recharge.css';
|
| - |
|
106 |
$data['title'] = 'Instant recharge for your mobile and DTH';
|
| 103 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeconfig);
|
107 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeconfig);
|
| 104 |
if(isset($data['response']['response']['recharge_amount'][0]->payAmount) && $data['response']['response']['recharge_amount'][0]->payAmount == 0){
|
108 |
if(isset($data['response']['response']['recharge_amount'][0]->payAmount) && $data['response']['response']['recharge_amount'][0]->payAmount == 0){
|
| 105 |
$captcha = $this->captcha_model->generateCaptcha();
|
109 |
$captcha = $this->captcha_model->generateCaptcha();
|
| 106 |
$this->session->set_userdata('captcha',$captcha['word']);
|
110 |
$this->session->set_userdata('captcha',$captcha['word']);
|
| 107 |
$data['captcha'] = $captcha;
|
111 |
$data['captcha'] = $captcha;
|
| Line 159... |
Line 163... |
| 159 |
}else{
|
163 |
}else{
|
| 160 |
$_POST['userId'] = -1;
|
164 |
$_POST['userId'] = -1;
|
| 161 |
$_POST['isLoggedIn'] = 'false';
|
165 |
$_POST['isLoggedIn'] = 'false';
|
| 162 |
}
|
166 |
}
|
| 163 |
$data['stylesheet'] = 'recharge.css';
|
167 |
$data['stylesheet'] = 'recharge.css';
|
| - |
|
168 |
|
| 164 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeconfig);
|
169 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeconfig);
|
| 165 |
if(isset($data['response']['response']['recharge_amount'][0]->payAmount) && $data['response']['response']['recharge_amount'][0]->payAmount == 0){
|
170 |
if(isset($data['response']['response']['recharge_amount'][0]->payAmount) && $data['response']['response']['recharge_amount'][0]->payAmount == 0){
|
| 166 |
$captcha = $this->captcha_model->generateCaptcha();
|
171 |
$captcha = $this->captcha_model->generateCaptcha();
|
| 167 |
$this->session->set_userdata('captcha',$captcha['word']);
|
172 |
$this->session->set_userdata('captcha',$captcha['word']);
|
| 168 |
$data['captcha'] = $captcha;
|
173 |
$data['captcha'] = $captcha;
|
| Line 338... |
Line 343... |
| 338 |
if(isset($_GET['rechargeOrderId']) && !empty($_GET['rechargeOrderId']) && !isset($_POST['submit'])){
|
343 |
if(isset($_GET['rechargeOrderId']) && !empty($_GET['rechargeOrderId']) && !isset($_POST['submit'])){
|
| 339 |
//$_GET['rechargeOrderId'] = $_GET['rechargeOrderId'];
|
344 |
//$_GET['rechargeOrderId'] = $_GET['rechargeOrderId'];
|
| 340 |
unset($rechargeConfig['response'][1]);
|
345 |
unset($rechargeConfig['response'][1]);
|
| 341 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
346 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
| 342 |
$data['stylesheet'] = 'recharge.css';
|
347 |
$data['stylesheet'] = 'recharge.css';
|
| - |
|
348 |
$data['title'] = 'Recharge Pay Options';
|
| 343 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeConfig);
|
349 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeConfig);
|
| 344 |
$this->layout->view('recharge/recharge_view',$data);
|
350 |
$this->layout->view('recharge/recharge_view',$data);
|
| 345 |
|
351 |
|
| 346 |
}elseif(isset($_GET['rechargeOrderId']) && !empty($_GET['rechargeOrderId']) && isset($_POST['submit'])){
|
352 |
}elseif(isset($_GET['rechargeOrderId']) && !empty($_GET['rechargeOrderId']) && isset($_POST['submit'])){
|
| 347 |
unset($rechargeConfig['response'][0]);
|
353 |
unset($rechargeConfig['response'][0]);
|
| Line 558... |
Line 564... |
| 558 |
$cachemodule = array('header','footer');
|
564 |
$cachemodule = array('header','footer');
|
| 559 |
$rechargeconfig = getCache($rechargeconfig,$cachemodule);
|
565 |
$rechargeconfig = getCache($rechargeconfig,$cachemodule);
|
| 560 |
$data = array();
|
566 |
$data = array();
|
| 561 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
567 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
| 562 |
$data['stylesheet'] = 'recharge.css';
|
568 |
$data['stylesheet'] = 'recharge.css';
|
| - |
|
569 |
$data['title'] = 'Mobile / DTH Recharge Online - Frequently asked quesitons';
|
| 563 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('rechargeFaq'));
|
570 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('rechargeFaq'));
|
| 564 |
if(isset($cachemodule) and !empty($cachemodule))
|
571 |
if(isset($cachemodule) and !empty($cachemodule))
|
| 565 |
{
|
572 |
{
|
| 566 |
foreach($cachemodule as $cm)
|
573 |
foreach($cachemodule as $cm)
|
| 567 |
{
|
574 |
{
|