#!/usr/local/bin/perl -w use CGI qw(:all); use CGI::Carp; my $c = param('c'); # container my $invalid; if (defined $c) { $c = cleanContainer($c); $invalid = validate($c); } if (! defined($c) || defined($invalid)) { print header(); print << "%%";
%% print "
$invalid
" if (defined($invalid)); print << '%%';At this point, the demo is only known to work with these containers:
Other input is likely to cause it to fail in mysterious ways, because this is just a prototype.
The files that make this thing work are here.
You can also see the README without unpacking
the zip file. These files are placed in the public domain, and may
be used by anyone as a basis of any future project. Jeff R. Allen,
June 8, 2006.
%%
exit;
}
print header(-type => 'application/vnd.google-earth.kml+xml',
'-Content-disposition' => 'attachment; filename=track.kml'
);
# make the new URL by editing out current one
my $me = self_url();
$me =~ s/(index.cgi)?\?/track.cgi?/;
print << "%%"