Changeset 136 for trunk/lib/Captcha.inc.php
- Timestamp:
- Jun 3, 2006 7:47:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Captcha.inc.php
r121 r136 118 118 function Captcha() 119 119 { 120 $this->secret_key = App::getParam('signing_key'); 120 $app =& App::getInstance(); 121 122 $this->secret_key = $app->getParam('signing_key'); 121 123 $this->random_number = $this->_getRandomNumber(); 122 124 } … … 133 135 function getAsciiNumber($num=null) 134 136 { 137 $app =& App::getInstance(); 138 135 139 if (!isset($num)) { 136 140 $num = $this->random_number; … … 138 142 139 143 if (preg_match('/[^\d]/', $num)) { 140 App::logMsg(sprintf('Bad number: %s', $num), LOG_ERR, __FILE__, __LINE__);144 $app->logMsg(sprintf('Bad number: %s', $num), LOG_ERR, __FILE__, __LINE__); 141 145 return false; 142 146 }
Note: See TracChangeset
for help on using the changeset viewer.