#!/usr/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 $basedir = "/path/to/wwwboard"; $baseurl = "http://your.host.xxx/wwwboard"; $cgi_url = "http://your.host.xx/cgi-bin/wwwboard.pl"; $mesgdir = "messages"; $datafile = "data.txt"; $mesgfile = "multipageboard.html"; $faqfile = "faq.html"; $ext = "html"; $title = "Multipage Board"; # Done ########################################################################### ########################################################################### # Configure Options $show_faq = 1; # 1 - YES; 0 = NO $allow_html = 1; # 1 = YES; 0 = NO $quote_text = 1; # 1 = YES; 0 = NO $subject_line = 0; # 0 = Quote Subject Editable; 1 = Quote Subject # UnEditable; 2 = Don't Quote Subject, Editable. $use_time = 1; # 1 = YES; 0 = NO $body_eval="bgcolor= \"0606f9\" text= \"ffff00\" link= \"ffffff\" vlink= \"cdcdcd\" "; ########################################################################### # New Variables and Multi Page Layout Information # Create by Steven Miller Jr Email: webmaster@vaultworld.com # Site http://www.vaultworld.com/cgi-scripts # Last Updated: 2 Mar 98 ########################################################################### #Config Items $use_proboard = 1; # 1 = YES; 0 = NO $pageprefix = "multipage"; #This is the name of the multiply files ex polevault1.html $perpagedisplay = 5; #Display the Number of Original Post Per Page #Note qq? and qq+ same as " but eliminates all \/ /" Stuff $pagedirectoryfaq = qq?
/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";
}
#####################
# New File Subroutine
sub new_file {
open(NEWFILE,">$basedir/$mesgdir/$num\.$ext") || die $!;
print NEWFILE "\n";
print NEWFILE "
\n"; print NEWFILE "Posted by "; if ($email) { print NEWFILE "$name on $long_date:
\n"; } else { print NEWFILE "$name on $long_date:
\n"; } if ($followup == 1) { print NEWFILE "In Reply to: $origsubject posted by "; if ($origemail) { print NEWFILE "$origname on $origdate:
\n"; } else { print NEWFILE "$origname on $origdate:
\n"; } } if ($message_img) { print NEWFILE "
\n";
}
print NEWFILE "$body\n";
print NEWFILE "
\n";
if ($message_url) {
print NEWFILE "
\n";
print NEWFILE "Follow Ups:
\n";
print NEWFILE "
\n"; print NEWFILE "Post a Followup
\n"; print NEWFILE "