| Line 34... |
Line 34... |
| 34 |
//sample session storage.. later i will imporve security for login
|
34 |
//sample session storage.. later i will imporve security for login
|
| 35 |
$check =$this->session->userdata('fosauthorize');
|
35 |
$check =$this->session->userdata('fosauthorize');
|
| 36 |
// print_r($check);die;
|
36 |
// print_r($check);die;
|
| 37 |
if(isset($check) and !empty($check) and $check['authority']='success')
|
37 |
if(isset($check) and !empty($check) and $check['authority']='success')
|
| 38 |
{
|
38 |
{
|
| 39 |
redirect(base_url().'fos/signupcounter');
|
39 |
redirect(base_url().'fos/dashboard');
|
| 40 |
}
|
40 |
}
|
| 41 |
else
|
41 |
else
|
| 42 |
{
|
42 |
{
|
| 43 |
$this->login();
|
43 |
$this->login();
|
| 44 |
}
|
44 |
}
|
| Line 296... |
Line 296... |
| 296 |
if(isset($data['response']['response']['fossignup']['authorized']['id']))
|
296 |
if(isset($data['response']['response']['fossignup']['authorized']['id']))
|
| 297 |
{
|
297 |
{
|
| 298 |
$this->session->set_flashdata(array('msg'=>$data['response']['response']['fossignup']['msg']));
|
298 |
$this->session->set_flashdata(array('msg'=>$data['response']['response']['fossignup']['msg']));
|
| 299 |
$this->session->set_userdata('username',$data['response']['response']['fossignup']['authorized']['id']);
|
299 |
$this->session->set_userdata('username',$data['response']['response']['fossignup']['authorized']['id']);
|
| 300 |
$this->session->set_userdata('countercode',$data['response']['response']['fossignup']['authorized']['counterCode']);
|
300 |
$this->session->set_userdata('countercode',$data['response']['response']['fossignup']['authorized']['counterCode']);
|
| 301 |
redirect(base_url().$data['response']['response']['fossignup']['redirect']);
|
301 |
redirect(base_url().$data['response']['response']['fossignup']['redirect']."?username=".$data['response']['response']['fossignup']['authorized']['id']."&countercode=".$data['response']['response']['fossignup']['authorized']['counterCode']);
|
| 302 |
}
|
302 |
}
|
| 303 |
else
|
303 |
else
|
| 304 |
{
|
304 |
{
|
| 305 |
$this->lessphp->object()->ccompile('assets/css/shipping.less','assets/css/shipping.css');
|
305 |
$this->lessphp->object()->ccompile('assets/css/shipping.less','assets/css/shipping.css');
|
| 306 |
$data['title'] = 'Saholic';
|
306 |
$data['title'] = 'Saholic';
|
| Line 339... |
Line 339... |
| 339 |
$cachemodule = array('header','footer');
|
339 |
$cachemodule = array('header','footer');
|
| 340 |
$configdata = getCache($configdata,$cachemodule);
|
340 |
$configdata = getCache($configdata,$cachemodule);
|
| 341 |
//end of get cache
|
341 |
//end of get cache
|
| 342 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
342 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
| 343 |
$data['stylesheet'] = 'recharge.css';
|
343 |
$data['stylesheet'] = 'recharge.css';
|
| 344 |
$data['title'] = 'Dashboard';
|
344 |
$data['title'] = 'Thanks';
|
| 345 |
$data['username'] = $this->session->userdata('username');
|
345 |
$username = $this->session->userdata('username');
|
| - |
|
346 |
if(!empty($username)){
|
| - |
|
347 |
$data['username'] = $username;
|
| - |
|
348 |
}else{
|
| - |
|
349 |
$data['username'] = $_GET['username'];
|
| - |
|
350 |
}
|
| 346 |
$data['countercode'] = $this->session->userdata('countercode');
|
351 |
$countercode = $this->session->userdata('countercode');
|
| - |
|
352 |
if(!empty($countercode)){
|
| - |
|
353 |
$data['countercode'] = $countercode;
|
| - |
|
354 |
}else{
|
| - |
|
355 |
$data['countercode'] = $_GET['countercode'];
|
| - |
|
356 |
}
|
| 347 |
$data['response']=$this->fos_model->getDashboard($this->input->get(),$this->input->post(),$this->config->item('fos_dashboard'));
|
357 |
$data['response']=$this->fos_model->getDashboard($this->input->get(),$this->input->post(),$this->config->item('fos_dashboard'));
|
| 348 |
$this->layout->view(strtolower(__CLASS__).'/thanks',$data);
|
358 |
$this->layout->view(strtolower(__CLASS__).'/thanks',$data);
|
| 349 |
}
|
359 |
}
|
| 350 |
}
|
360 |
}
|