#!/usr/bin/perl require CGI; use CGI; $cgi = new CGI; # # get the file to print # $f=$cgi->param('f'); print "Content-type: text/html", "\n\n"; print "\n"; print "$f
";
#
# they can only dump the file if it ends in .txt
#
if (!$f =~ /.*\.txt$/) {
exit;
}
open(COUNTERS,$f);
while(
";
}
close(COUNTERS);
exit;