Project

General

Profile

« Previous | Next » 

Revision 619

Added by thorn almost 17 years ago

adjusted layout of calc_text-captcha.

View differences:

trunk/wb/include/captcha/captcha.php
92 92
				break;
93 93
			case 'calc_image': // calculation with image (old captcha)
94 94
				?><table class="captcha_table"><tr>
95
				<td><img src="<?php echo WB_URL."/include/captcha/captchas/calc_image.php?t=$t"; ?>" alt="Captcha" />&nbsp;=&nbsp;</td>
95
				<td><img src="<?php echo WB_URL."/include/captcha/captchas/calc_image.php?t=$t"; ?>" alt="Captcha" /></td><td>&nbsp;=&nbsp;</td>
96 96
				<td><input type="text" name="captcha" maxlength="5" style="width:20px" /></td>
97 97
				<td class="captcha_expl"><?php echo $MOD_CAPTCHA['VERIFICATION_INFO_RES']; ?></td>
98 98
				</tr></table><?php
trunk/wb/include/captcha/readme.txt
28 28

  
29 29
How to use:
30 30
use 
31
	require_once(WB_PATH.'/include/captcha/captcha.php'); // will output a table with 3 columns: |CAPTCHA|Input|Text|
31
	require_once(WB_PATH.'/include/captcha/captcha.php'); // will output a table with 3 columns: |CAPTCHA|Input|Text|. The calc_image captcha have 4 columns |CAPTCHA|=|Input|Text|.
32 32
and put 
33 33
	<?php call_captcha(); ?>
34 34
into your form.

Also available in: Unified diff