###########################################################################
# #
# graffiti3.cgi - Perl Script for Graffiti Wall #
# Available from The Scripts Home - www.scriptshome.com #
# #
# Written by Michael Hall - mhall@scriptshome.com #
# Written for Virtual Marketing Technologies - scripts@scriptshome.com #
# Copyright ©1996 by Virtual Marketing Technologies, All Rights Reserved. #
# #
###########################################################################
$BaseDir = "/var/www/docs/scripts2/free/graffiti_wall"; # Edit this to show where your graffiti directory is.
@BadWords = ('fuck','shit','asshole','damn');
$MaxMsgs = 50;
$CGI_URL = "http://www.virtualcenter.com/scripts2/free/graffiti_wall/graffiti3.cgi"; # Edit this to show the URL of your directory.
$AllowHTML = 0; # Yes = 1, No = 0
$Header = "
";
$Footer = "
Copyright © 1997 by Virtual Marketing Technologies. All Rights Reserved.
Graffiti Wall v3.0";
####################################################################
#YOU MAY NOT EDIT ANYTHING BELOW THIS POINT WITHOUT THE EXPRESS
#WRITTEN PERMISSION OF THE AUTHOR OR VIRTUAL MARKETING TECHNOLOGIES.
#DOING SO IS A DIRECT VIOLATION OF THE USER LICENSE AND COPYRIGHT.
####################################################################
&UnWeb;
# Get the Date for Entry
$date = `date +"%A, %B %d, %Y at %T (%Z)"`;
chop($date);
$shortdate = `date +"%D %T %Z"`;
chop($shortdate);
if ($in{'action'} eq "post") {
if (($in{'Name'} eq "") || ($in{'EMail'} eq "") || ($in{'Comments'} eq "")) {
# something was blank, return the error message
&PrintHeader;
print "$Header\n";
print "
An Error has Occurred
print "\n";
print "
You did not fill in all the fields. Please remedy this.
\n";print "\n";
print "\n";
# make a call to exit to end the script now, we had an error
exit;
}
if ($in{'EMail'} !~ /\w*@\w*/) {
# It does not equal the regular expression, send an error message
&PrintHeader;
print "$Header\n";
print "
An Error has Occurred
<\CENTER>\n";print "\n";
print "
Your email address did not contain an @ sign. Please remedy this.
\n";print "