Changeset 262 for trunk/lib/Captcha.inc.php
- Timestamp:
- Jun 23, 2007 2:04:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Captcha.inc.php
r247 r262 19 19 <pre style="font-size: 0.5em;"><?php $captcha->printAsciiNumber() ?></pre> 20 20 <?php $captcha->printForm() ?> 21 22 // Finally, test if the captcha was submitted correctly. 23 if (!$captcha->valid()) { 24 // Go back, show error. 25 } 26 27 // Or if you're using the FormValidator class. 28 if (!$captcha->valid()) { 29 $fv->addError('sc-captcha', _("The Captcha you entered is invalid. Please try again.")); 30 } 31 21 32 ------------------------------------------------------------------------------------- 22 33 */ … … 172 183 { 173 184 $ascii = $this->getAsciiNumber($this->random_number); 174 ?><pre name="sc-captcha"id="sc-captcha"><?php echo $ascii ?></pre><?php185 ?><pre id="sc-captcha"><?php echo $ascii ?></pre><?php 175 186 } 176 187
Note: See TracChangeset
for help on using the changeset viewer.