5 Copyright (c) 2003-2010, Andrew Dunstan
7 See accompanying License file for license details
13 use Captcha::reCAPTCHA;
15 use vars qw( $template_dir $captcha_pubkey );
16 require "$ENV{BFConfDir}/BuildFarmWeb.pl";
19 my $c = Captcha::reCAPTCHA->new;
21 my $captcha = $c->get_html($captcha_pubkey);
23 my $template_opts = { INCLUDE_PATH => $template_dir };
24 my $template = new Template($template_opts);
26 print "Content-Type: text/html\n\n";
29 $template->process('register-form.tt',{captcha => $captcha});