Apache-RandomLocation
view release on metacpan or search on metacpan
RandomLocation.pm view on Meta::CPAN
package Apache::RandomLocation;
use strict;
use vars qw($VERSION);
use Apache::Constants qw(OK DECLINED REDIRECT SERVER_ERROR);
use CGI qw(:html2 start_form end_form submit param popup_menu);
$VERSION = '0.5';
sub handler {
my ($r) = shift;
# determine the type requested and path information, if applicable
# $mirror will uniquely identify the <Location> directive
my $mirror = $r->location;
my $uri = $r->uri;
(my $request = $uri) =~ s!$mirror(.*)!$1!;
RandomLocation.pm view on Meta::CPAN
'-dtd' => '-//W3C//DTD HTML 3.2//EN',
'BGCOLOR' => '#FFFFFF',
'TEXT' => '#OOOOOO',
'LINK' => '#0000FF',
'VLINK' => '#000080',
'ALINK' => '#FF0000'),
h2('Manual Selection'),
start_form(),
"From this page, you can manually choose a site: ",
p,
popup_menu( '-name' => 'site',
'-values' => \@list,
'-default' => $default),
p,
submit('-value' => "Select site"),
end_form(),
end_html()
);
}
( run in 1.233 second using v1.01-cache-2.11-cpan-364913b4093 )