Revision 615
Added by thorn almost 17 years ago
tool.php | ||
---|---|---|
74 | 74 |
pics["calc_image"] = new Image(); |
75 | 75 |
pics["calc_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/calc_image.png'?>"; |
76 | 76 |
|
77 |
pics["calc_ttf_image"] = new Image(); |
|
78 |
pics["calc_ttf_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/calc_ttf_image.png'?>"; |
|
79 |
|
|
77 | 80 |
pics["old_image"] = new Image(); |
78 | 81 |
pics["old_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/old_image.png'?>"; |
79 | 82 |
|
80 | 83 |
pics["calc_text"] = new Image(); |
81 | 84 |
pics["calc_text"].src = "<?php echo WB_URL.'/include/captcha/captchas/calc_text.png'?>"; |
82 |
|
|
85 |
|
|
86 |
function load_captcha_image() { |
|
87 |
document.captcha_example.src = pics[document.store_settings.captcha_type.value].src; |
|
88 |
} |
|
83 | 89 |
</script> |
84 | 90 |
<?php |
85 | 91 |
|
... | ... | |
109 | 115 |
<table> |
110 | 116 |
<tr height="50px"> |
111 | 117 |
<td><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE'];?>:</td> |
112 |
<td align="right" width="150px"><img name="captcha_example" id="captcha_example" src="<?php echo WB_URL.'/include/captcha/captchas/calc_text.png'?>" onload="javascript: document.captcha_example.src = pics[document.store_settings.captcha_type.value].src;"></td>
|
|
118 |
<td align="right" width="150px"><img name="captcha_example" id="captcha_example" src="<?php echo WB_URL.'/include/captcha/captchas/'.$captcha_type.'.png'?>" ></td>
|
|
113 | 119 |
</tr> |
114 | 120 |
</table> |
115 | 121 |
<td> |
... | ... | |
129 | 135 |
name="enabled_captcha" value="0"><?php echo $MOD_CAPTCHA_CONTROL['DISABLED'];?> |
130 | 136 |
</td> |
131 | 137 |
</tr> |
138 |
<tr><td> </td><td style="font-size:smaller;"><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_EXP'];?></td></tr> |
|
132 | 139 |
<tr><td colspan="2"><br /><strong><?php echo $MOD_CAPTCHA_CONTROL['ASP_CONF'];?>:</strong></td></tr> |
133 | 140 |
<tr> |
134 | 141 |
<td><?php echo $MOD_CAPTCHA_CONTROL['ASP_TEXT'];?>:</td> |
... | ... | |
139 | 146 |
name="enabled_asp" value="0"><?php echo $MOD_CAPTCHA_CONTROL['DISABLED'];?> |
140 | 147 |
</td> |
141 | 148 |
</tr> |
149 |
<tr><td> </td><td style="font-size:smaller;"><?php echo $MOD_CAPTCHA_CONTROL['ASP_EXP'];?></td></tr> |
|
142 | 150 |
</table> |
143 | 151 |
<input type="submit" name="save_settings" style="margin-top:10px; width:140px;" value="<?php echo $TEXT['SAVE']; ?>" /> |
144 | 152 |
</form> |
Also available in: Unified diff
Added new CAPTCHA (calc_ttf_image). Changed call_captcha() to output a table-layout. Some minor changes to captcha-code.