Subversion Repositories SmartDukaan

Rev

Rev 12770 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12770 Rev 13092
Line 150... Line 150...
150
		}
150
		}
151
 
151
 
152
		//get cache 
152
		//get cache 
153
		$fosauthorized = $this->session->userdata('fosauthorized');
153
		$fosauthorized = $this->session->userdata('fosauthorized');
154
		if(isset($_POST) && !empty($_POST)) {
154
		if(isset($_POST) && !empty($_POST)) {
-
 
155
			if(!isset($_POST['tinskipped'])){
-
 
156
				$_POST['tinskipped'] = 0;
-
 
157
			}else{
-
 
158
				$_POST['tin'] = null;
-
 
159
			}
155
			$configdata =array();
160
			$configdata =array();
156
			$configdata = $this->config->item('fos_signupcounter');
161
			$configdata = $this->config->item('fos_signupcounter');
157
			unset($configdata['response'][0]);
162
			unset($configdata['response'][0]);
158
			$data['response']=$this->fos_model->getSignup($this->input->get(),$this->input->post(),$configdata);
163
			$data['response']=$this->fos_model->getSignup($this->input->get(),$this->input->post(),$configdata);
159
			//set cache to output or renew cache
164
			//set cache to output or renew cache
Line 197... Line 202...
197
			setCache($configdata['module'],$cachemodule,$data['response']);
202
			setCache($configdata['module'],$cachemodule,$data['response']);
198
			$this->layout->view(strtolower(__CLASS__).'/signupcounter',$data);
203
			$this->layout->view(strtolower(__CLASS__).'/signupcounter',$data);
199
		}
204
		}
200
    }
205
    }
201
 
206
 
-
 
207
    function confirmcounter() {
-
 
208
    	if(isset($_POST) && !empty($_POST)) {
-
 
209
    		$data = array('formdata'=>$_POST);
-
 
210
    		$data['stylesheet'] = 'shipping.css';
-
 
211
    		$this->layout->view(strtolower(__CLASS__).'/confirmcounter',$data);
-
 
212
    	}
-
 
213
    }
-
 
214
 
202
    function thanks() {
215
    function thanks() {
203
    	$configdata = $this->config->item('fos_dashboard');
216
    	$configdata = $this->config->item('fos_dashboard');
204
		$cachemodule = array('header','footer');
217
		$cachemodule = array('header','footer');
205
	    $configdata = getCache($configdata,$cachemodule);
218
	    $configdata = getCache($configdata,$cachemodule);
206
	    //end of get cache
219
	    //end of get cache