#!/usr/local/bin/perl5 # # show.cgi is a cgi not to be confused with the subroutine show. # # show.cgi takes the name of a file in /home/www/script for # display. Its strips off anything that would change the directory. # # After it displays the posting, it creates a form that calls # mailme.cgi, not to be confused with mailme/mailme2.cgi. mailme.cgi # takes the same name of the file and sends it to the user. # require "clean"; $line = &clean(@ARGV[0]); if ($line eq "") {exit;} $data =`cat /home/www/theproof/script/$line`; $data =~ s/&/&\;/g; $data =~ s//>\;/g; $data =~ s/"/"\;/g; print `cat open2.html`; print "
"; print "
"; print "MAIL ME THIS POSTING!
"; print "MY E-MAIL ADDRESS:
"; print "For example: homer\@lightlink.com
"; print " "; print "
"; print " "; print " "; print "
"; print "
"; print "
";
print $data;
print "
"; exit;