5 Copyright (c) 2003-2010, Andrew Dunstan
7 See accompanying License file for license details
14 use vars qw( $template_dir );
16 use FindBin qw($RealBin);
17 require "$RealBin/../BuildFarmWeb.pl";
19 my $template_opts = { INCLUDE_PATH => $template_dir };
20 my $template = new Template($template_opts);
22 print "Content-Type: text/html\n\n";
25 $argop = '-' if time % 2;
26 my $arg1 = int(rand(100));
27 $arg1 += 11 if $arg1 < 12;
28 my $arg2 = int(rand(10) + 1);
30 $template->process('register-form.tt', {arg1 => $arg1, arg2 => $arg2, argop => $argop});