« auto/share/dist/Nes/cgi-bin/plugin/forms.pl
↑ Summary
auto/share/dist/Nes/cgi-bin/plugin/register_captcha.pl »
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | # ------------------------------------------------------------------------------ | ||
| 4 | # | ||
| 5 | # NES by - Skriptke | ||
| 6 | # Copyright 2009 - 2010 Enrique F. Castañón | ||
| 7 | # Licensed under the GNU GPL. | ||
| 8 | # http://nes.sourceforge.net/ | ||
| 9 | # | ||
| 10 | # Version 0.9 pre | ||
| 11 | # | ||
| 12 | # forms_captcha.pl | ||
| 13 | # | ||
| 14 | # ------------------------------------------------------------------------------ | ||
| 15 | |||
| 16 | use strict; | ||
| 17 | use Nes; | ||
| 18 | |||
| 19 | my $nes = Nes::Singleton->new(); | ||
| 20 | |||
| 21 | # archivo de configuración .nes.cfg | ||
| 22 | my $config = $nes->{'CFG'}; | ||
| 23 | |||
| 24 | my $dir_plugin = $config->{'plugin_top_dir'}; | ||
| 25 | |||
| 26 | # Insecure dependency in require while running with -T switch at | ||
| 27 | if ($dir_plugin =~ /^([-\@\w.\\\/]+)$/) { | ||
| 28 | $dir_plugin = $1; | ||
| 29 | } | ||
| 30 | |||
| 31 | do "$dir_plugin/captcha.pl"; | ||
| 32 | do "$dir_plugin/forms.pl"; | ||
| 33 | |||
| 34 | |||
| 35 | # don't forget to return a true value from the file | ||
| 36 | 1; | ||
| 37 |