{: NES 0.9 ('{: * cfg_plugin_top_dir :}/captcha.pl','none') :} {: # ---------------------------------------------------------------------------- NES 0.9 beta by - Skriptke Copyright 2009 - 2010 Enrique F. Castañón Licensed under the GNU GPL. http://sourceforge.net/projects/nes/ Sample to use Nes; ---------------------------------------------------------------------------- :}
(test1,ascii,,,,,,1m,5/1)
nes_captcha_plugin_test1_error_last : {: *nes_captcha_plugin_test1_error_last :}
nes_captcha_plugin_test1_error_fatal: {: *nes_captcha_plugin_test1_error_fatal :}
nes_captcha_plugin_test1_attempts : {: *nes_captcha_plugin_test1_attempts :}
nes_captcha_plugin_test1_is_ok : {: *nes_captcha_plugin_test1_is_ok :}
Fuente:
<form name="formtest1" action="#test1">
{: # name,type,digits,noise,size,sig,spc,expire,attempts :}
{: & captcha (test1,ascii,,,,,,1m,5/1)
<table width="100%">
<tr>
<td width="100%" align="center">
Teclea el código de seguridad
</td>
</tr>
<tr>
<td width="100%" align="center">
{: & captcha_code :}
</td>
</tr>
<tr>
<td width="100%" align="center">
<input type="text" name="test1" size="8" />
</td>
</tr>
<tr>
<td width="100%" align="center">
{: ~ *nes_captcha_plugin_fatal_error_test1
<p align="center">
<big>Código de seguridad incorrecto</big>
</p>
:}
<input type="hidden" name="item" value="Plugin Captcha" />
<input name="enviar" type="submit" value="Enviar" />
</td>
</tr>
</table>
:}
</form>
Podemos poner dos o más Captchas en el mismo formulario.
(Salvo que se incluya en el Pugin Forms, que sólo admite uno)
nes_captcha_plugin_test2a_error_last : {: *nes_captcha_plugin_test2a_error_last :}
nes_captcha_plugin_test2a_error_fatal: {: *nes_captcha_plugin_test2a_error_fatal :}
nes_captcha_plugin_test2a_attempts : {: *nes_captcha_plugin_test2a_attempts :}
nes_captcha_plugin_test2a_is_ok : {: *nes_captcha_plugin_test2a_is_ok :}
nes_captcha_plugin_test2b_error_last : {: *nes_captcha_plugin_test2b_error_last :}
nes_captcha_plugin_test2b_error_fatal: {: *nes_captcha_plugin_test2b_error_fatal :}
nes_captcha_plugin_test2b_attempts : {: *nes_captcha_plugin_test2b_attempts :}
nes_captcha_plugin_test2b_is_ok : {: *nes_captcha_plugin_test2b_is_ok :}
(test3,ascii,,4,3, ,▓){: & captcha (test3,ascii,,4,3, ,▓)
| {: & captcha_code :} |
(test4,ascii,,0,6){: & captcha (test4,ascii,,0,6)
| {: & captcha_code :} |
(test5,ascii,4,0,12, ,▓){: & captcha (test5,ascii,4,0,12, ,▓)
| {: & captcha_code :} |
(test6,ascii,5,,4, ,▓){: & captcha (test6,ascii,5,,4, ,▓)
| {: & captcha_code :} |