Changeset 279
- Timestamp:
- Aug 17, 2007 8:10:05 PM (17 years ago)
- Location:
- trunk/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FormValidator.inc.php
r266 r279 506 506 507 507 /** 508 * Verifies credit card number. 508 * Verifies credit card number using the Luhn (mod 10) algorithm. 509 * http://en.wikipedia.org/wiki/Luhn_algorithm 509 510 * 510 511 * @param string $form_name The name of the incoming form variable. -
trunk/lib/MCVE.inc.php
r268 r279 95 95 if (!MCVE_Connect($this->conn)) { 96 96 $error = MCVE_ConnectionError($this->conn); 97 $app->logMsg(" Connection failed:$error. Are you sure the MCVE engine is running?", LOG_ERR, __FILE__, __LINE__);97 $app->logMsg("$error. Are you sure the MCVE engine is running?", LOG_ERR, __FILE__, __LINE__); 98 98 return false; 99 99 } … … 105 105 function beginTrans() 106 106 { 107 $this->_connect(); 107 if (!$this->_connect()) { 108 return false; 109 } 108 110 $tid = MCVE_TransNew($this->conn); // Allocate memory for sending a transaction. 109 111 $this->transParam($tid, MC_USERNAME, $this->username); -
trunk/lib/Validator.inc.php
r266 r279 217 217 218 218 /** 219 * Verifies credit card number. 219 * Verifies credit card number using the Luhn (mod 10) algorithm. 220 * http://en.wikipedia.org/wiki/Luhn_algorithm 220 221 * 221 222 * @param string $val The input data to validate..
Note: See TracChangeset
for help on using the changeset viewer.