Subversion Repositories SmartDukaan

Rev

Rev 10610 | Rev 10630 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10610 Rev 10611
Line 1... Line 1...
1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
-
 
2
 
2
class Checkout extends MY_Controller {
3
class Checkout extends MY_Controller {
3
 
4
 
4
public $layoutName ='';
5
public $layoutName ='';
5
	
6
	
6
	function __construct() {
7
	function __construct() {
Line 150... Line 151...
150
				if(isset($result->results->isTotalAmountZero)){
151
				if(isset($result->results->isTotalAmountZero)){
151
					$isTotalAmountZero = $result->results->isTotalAmountZero;
152
					$isTotalAmountZero = $result->results->isTotalAmountZero;
152
				}
153
				}
153
				$totalAmount = number_format((float)$totalAmount,0,'.','');
154
				$totalAmount = number_format((float)$totalAmount,0,'.','');
154
				$captcha = $this->captcha_model->generateCaptcha();
155
				$captcha = $this->captcha_model->generateCaptcha();
155
				echo 'captcha is'.'<br/>';
-
 
156
				print_r($captcha);
-
 
157
				$this->session->set_userdata('captcha',$captcha['word']);
156
				$this->session->set_userdata('captcha',$captcha['word']);
158
				$data['captcha'] = $captcha;
157
				$data['captcha'] = $captcha;
159
				// if($totalAmount == 0 && isset($isTotalAmountZero) && $isTotalAmountZero == 1){
158
				// if($totalAmount == 0 && isset($isTotalAmountZero) && $isTotalAmountZero == 1){
160
				// 	$captcha = $this->captcha_model->generateCaptcha();
159
				// 	$captcha = $this->captcha_model->generateCaptcha();
161
				// 	$this->session->set_userdata('captcha',$captcha['word']);
160
				// 	$this->session->set_userdata('captcha',$captcha['word']);
Line 656... Line 655...
656
  	}
655
  	}
657
  }
656
  }
658
 
657
 
659
}
658
}
660
 
659
 
-
 
660
 
661
/* End of file welcome.php */
661
/* End of file welcome.php */
662
/* Location: ./application/controllers/welcome.php */
662
/* Location: ./application/controllers/welcome.php */
663
663