X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/cc68e1cd52cb582c879e2777ee889f60f9af3f86..ec2bcb4768cc662362eb942ec52af9fe1046afaa:/cgi-bin/register-form.pl diff --git a/cgi-bin/register-form.pl b/cgi-bin/register-form.pl index 91d0826..4152776 100755 --- a/cgi-bin/register-form.pl +++ b/cgi-bin/register-form.pl @@ -10,25 +10,21 @@ See accompanying License file for license details use strict; use Template; -use Captcha::reCAPTCHA; -use vars qw( $template_dir $captcha_pubkey ); -require "$ENV{BFConfDir}/BuildFarmWeb.pl"; +use vars qw( $template_dir ); - -my $c = Captcha::reCAPTCHA->new; - -my $captcha = $c->get_html($captcha_pubkey); +use FindBin qw($RealBin); +require "$RealBin/../BuildFarmWeb.pl"; my $template_opts = { INCLUDE_PATH => $template_dir }; my $template = new Template($template_opts); print "Content-Type: text/html\n\n"; +my $argop = '+'; +$argop = '-' if time % 2; +my $arg1 = int(rand(100)); +$arg1 += 11 if $arg1 < 12; +my $arg2 = int(rand(10) + 1); -$template->process('register-form.tt',{captcha => $captcha}); - - - - - +$template->process('register-form.tt', {arg1 => $arg1, arg2 => $arg2, argop => $argop});