#!/usr/local/bin/perl ############################################################################## # WWWBoard Version 2.0 ALPHA 2 # # Copyright 1996 Matt Wright mattw@worldwidemart.com # # Created 10/21/95 Last Modified 11/25/95 # # Scripts Archive at: http://www.worldwidemart.com/scripts/ # ############################################################################## # COPYRIGHT NOTICE # # Copyright 1996 Matthew M. Wright All Rights Reserved. # # # # WWWBoard may be used and modified free of charge by anyone so long as # # this copyright notice and the comments above remain intact. By using this # # code you agree to indemnify Matthew M. Wright from any liability that # # might arise from it's use. # # # # Selling the code for this program without prior written consent is # # expressly forbidden. In other words, please ask first before you try and # # make money off of my program. # # # # Obtain permission before redistributing this software over the Internet or # # in any other medium. In all cases copyright and header must remain intact.# ############################################################################## # Define Variables # DBasics mod to set background and a logo. # Add this in the "Define Variables" section near the top of the wwwboard.cgi script. $background = '
/g;
$body =~ s/\n/
/g;
$body =~ s/<//g;
$body =~ s/"/"/g;
}
else {
&error(no_body);
}
if ($quote_text == 1) {
$hidden_body = "$body";
$hidden_body =~ s/</g;
$hidden_body =~ s/>/>/g;
$hidden_body =~ s/"/"/g;
}
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
if ($sec < 10) {
$sec = "0$sec";
}
if ($min < 10) {
$min = "0$min";
}
if ($hour < 10) {
$hour = "0$hour";
}
if ($mon < 10) {
$mon = "0$mon";
}
if ($mday < 10) {
$mday = "0$mday";
}
$month = ($mon + 1);
@months = ("January","February","March","April","May","June","July","August","September","October","November","December");
if ($use_time == 1) {
$date = "$hour\:$min\:$sec $month/$mday/$year";
}
else {
$date = "$month/$mday/$year";
}
chop($date) if ($date =~ /\n$/);
$long_date = "$months[$mon] $mday, 19$year at $hour\:$min\:$sec";
}
####################################################################
# viewpost View WWWBOARD Article Before Posting Add-On
# Created by Craig Horton (chorton@dbasic.com)
# Contributions by Matt Wright (mattw@misha.net)
# Created on: 5/4/96
# I can be reached at: chorton@dbasic.com
# Script Found at: http://www.dbasic.com/scripts/
# This script may be redistributed for non-commericial reasons
# as long as this header remains intact. All copyrights reserved.
####################################################################
###############################
# View Post Subroutine Add-On #
###############################
sub view_post {
print "Content-type: text/html\n\n";
print "
\n"; } else { print "$origname on $origdate:
\n"; } } print "Body of Message:
\n"; if ($message_img) { print "
\n"; } print "$body
\n"; if ($message_url) { print "Link: $message_url_title\n"; } print "