#!/usr/bin/perl -w

use CGI::Carp qw(fatalsToBrowser);

############################################
##                                        ##
##                 WebBBS                 ##
##           by Darryl Burgdorf           ##
##                                        ##
##           Configuration File           ##
##                                        ##
############################################

## (1) Define the location of your files:
#/var/www/cgi-bin/cgi-bin/Intranet/Web/webbbs_files
require "/home/httpd/sites/www.blackberry.net/cgi-bin/forum/handhelds/webbbs.pl";

##$dir = "/home/httpd/sites/developers.rim.net/forum/handhelds/discussion";
$dir = "/home/httpd/Forms/Developers/forum/handhelds/discussion";
$cgiurl = "/cgi-bin/forum/handhelds/index.cgi";

## (2) Tailor the appearance and functionality of your BBS:

$bodyspec = "BGCOLOR=\"#ffffff\" TEXT=\"#000000\"";

####$HeadLinesFile = "/home/httpd/sites/secure.rim.net/htdocs/SSI/solproviders/board/header.txt";
#$HeaderFile = "/home/httpd/sites/developers.rim.net/cgi-bin/forum/handhelds/top.html";
$HeaderFile = "/home/httpd/sites/www.blackberry.net/cgi-bin/forum/handhelds/top.html";

#$FooterFile = "/home/httpd/sites/developers.rim.net/cgi-bin/forum/handhelds/bottom.html";
$FooterFile = "/home/httpd/sites/www.blackberry.net/cgi-bin/forum/handhelds/bottom.html";

$MessageHeaderFile = $HeaderFile;
$MessageFooterFile = $FooterFile;

$DefaultType = "By Threads, Reversed";
#$DefaultTime = "Archive";
$DefaultTime = "Two Weeks";

$boardname = "<h1>Discussion Forum</h1>";
$HTMLtitle = "Discussion Forum";

$InputColumns = 55;
$InputRows = 10;

$HourOffset = 0;

$ArchiveOnly = 0;
$AllowHTML = 2;
$AutoQuote = 1;
$SingleLineBreaks = 1;

$UseCookies = 0;
#require "/home/httpd/cgi-bin/Intranet/Web/webbbs_files/cookie.lib";

$UseAdmin = 1;

$Max_Days = 30;
$Max_Messages = 500;

$ArchiveDir = "$dir/archive";

## (3) Define your visitors' capabilities:

$AllowUserDeletion = 0;
$AllowEmailNotices = 1;
$AllowPreview = 0;

$AllowURLs = 1;
$AllowPics = 0;

$NaughtyWords = "";

## (4) Define your e-mail notification features:

$mailprog = '/usr/lib/sendmail';
$maillist_address = "";
$email_list = 0;

$HeaderOnly = 0;
$AdminEmail = 0;

&WebBBS;

## (5) If necessary, set up the WebAdverts configuration subroutine

sub insertadvert {
	require "/full/path/to/ads_display.pl";
	$adverts_dir = "/full/path/to/ads";
	$display_cgi = "http://foo.com/ads/ads.pl";
	$advertzone = $_[0];
	$ADVUseLocking = 1;
	$ADVLogIP = 0;
	$NonSSI = 0;
	$DefaultBanner = "";
	$ADVNoPrint = 1;
	&ADVsetup;
}

