Blame | Last modification | View Log | RSS feed
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');class Faq extends MY_Controller {public $layoutName ='';function __construct() {// Call the CI_controller constructorparent::__construct();// $admin = $this->session->userdata('admin');// if(!isset($admin) || empty($admin)) {// redirect(base_url().'authorize');// }$this->layout->setlayout('layout/layout_main');$this->load->model('faq_model');$this->layoutName= $this->layout->getLayout();$this->layoutName =substr($this->layoutName , 0, strrpos($this->layoutName , "/")).'/';// print_r($this->session->all_userdata());}public function index(){$data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'Frequently asked quesitons | saholic.com';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/faq_view',$data);}public function privacy(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'Privacy Policy | saholic.com';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/privacy_policy',$data);}public function terms(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'Terms & Conditions | saholic.com';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/terms_conditions',$data);}public function otg(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'On Time Guarantee, We Pay if we Delay';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/otg',$data);}public function instore(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'Instore Pickup';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/instore',$data);}public function insure(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'Insure Against Theft';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/insure',$data);}public function emi(){$data = array();//get cache$configdata =array();$configdata = $this->config->item('payment');$checkConfig = $this->config->item('payment');unset($configdata['response'][0]);unset($configdata['response'][2]);unset($checkConfig['response'][0]);unset($checkConfig['response'][2]);$cachemodule = array('header','footer','response');$configdata = getCache($configdata,$cachemodule);$newData = array();foreach ($checkConfig['response'] as $key => $value) {$newData[] = $value;}$newparams = array();if(isset($configdata['response'])){foreach($newData as $key => $value){if(!array_key_exists($value,$configdata['response'])){$api = 1;}}}//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';if(isset($api) && $api == 1){$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$checkConfig);}elseif(!isset($api)){$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$configdata['module']);}//print_r($data['response']);$tmp = $data['response'];//set cache to output or renew cacheif(isset($cachemodule) and !empty($cachemodule) && !isset($api)){foreach($cachemodule as $cm){if(isset($configdata[$cm]) and !empty($configdata[$cm])){$data['response'][$cm]=$configdata[$cm];}}}if(isset($data['response']['response'])){foreach($newData as $key => $value){if(!array_key_exists($value,$data['response']['response'])){$noCache = 1;}}}//print_r($newparams);if(!isset($noCache)){setCache($configdata['module'],$cachemodule,$data['response']);}//end of set cache\$this->layout->view('faq/faq_view',$data);}public function oneassists(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'OneAssist Data Protection';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/oneassists',$data);}public function aboutus(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'About Us';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/aboutus',$data);}public function easylinux(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'Learn to install and use Linux';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/easylinux',$data);}public function rechargeoffer(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'Recharge Offer';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/rechargeoffer',$data);}public function pickup(){// $data = array();//get cache$configdata =array();$configdata = $this->config->item('faq');$cachemodule = array('header','footer');$configdata = getCache($configdata,$cachemodule);//end of get cache$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');$data['stylesheet'] = 'recharge.css';$data['title'] = 'Buy Online and pick up in store';$data['response']=$this->faq_model->getHome($this->input->get(),$this->input->post(),$this->config->item('faq'));$this->layout->view('faq/pickup',$data);}}/* End of file welcome.php *//* Location: ./application/controllers/welcome.php */