« auto/share/dist/Nes/cgi-bin/plugin/forms_captcha.pl
↑ Summary
auto/share/dist/Nes/cgi-bin/plugin/unregister_captcha.pl »
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | # ----------------------------------------------------------------------------- | ||
| 4 | # | ||
| 5 | # Nes by Skriptke | ||
| 6 | # Copyright 2009 - 2010 Enrique F. Castañón Barbero | ||
| 7 | # Licensed under the GNU GPL. | ||
| 8 | # | ||
| 9 | # CPAN: | ||
| 10 | # http://search.cpan.org/dist/Nes/ | ||
| 11 | # | ||
| 12 | # Sample: | ||
| 13 | # http://nes.sourceforge.net/ | ||
| 14 | # | ||
| 15 | # Repository: | ||
| 16 | # http://github.com/Skriptke/nes | ||
| 17 | # | ||
| 18 | # Version 1.03 | ||
| 19 | # | ||
| 20 | # register_captcha.pl | ||
| 21 | # | ||
| 22 | # ----------------------------------------------------------------------------- | ||
| 23 | |||
| 24 | use strict; | ||
| 25 | use Nes; | ||
| 26 | use captcha_plugin; | ||
| 27 | |||
| 28 | my $nes = Nes::Singleton->new(); | ||
| 29 | |||
| 30 | $nes->{'register'}->tag( 'captcha_plugin', 'captcha', 'captcha_plugin::replace_captcha' ); | ||
| 31 | $nes->{'register'}->tag( 'captcha_plugin', 'captcha_code', 'captcha_plugin::replace_captcha_code' ); | ||
| 32 | |||
| 33 | |||
| 34 | # don't forget to return a true value from the file | ||
| 35 | 1; | ||
| 36 |