#!/usr/local/bin/perl

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

## (1) Define the location of your files:

require "/export/www/odsn/cgi/webbbs.pl";

$dir = "/export/www/odsn/forum/msg";
$cgiurl = "http://zeus.palaeoz.geomar.de/odsn/cgi/forum.pl";

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

$bodyspec = "TEXT=\"#000000\" BGCOLOR=\"#FEFFF2\" LINK=\"#0000FF\" VLINK=\"#FF0000\" ALINK=\"#FF0000\"";

$HeadLinesFile = "";
$HeaderFile = "/export/www/odsn_dev/forum/header.txt";
$FooterFile = "/export/www/odsn_dev/forum/footer.txt";
$footer_type = "";

$MessageHeaderFile = "";
$MessageFooterFile = "";

$DefaultType = "";
$DefaultTime = "";

$boardname = "ODSN Forum";

$InputColumns = 80;
$InputRows = 15;

$HourOffset = 0;

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

$UseCookies = 1;
require "/export/www/odsn/cgi/cookie.lib";

$UseAdmin = 1;

$Max_Days = 90;
$Max_Messages = 500;

$ArchiveDir = "";

## (3) Define your visitors' capabilities:

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

$AllowURLs = 0;
$AllowPics = 0;

$NaughtyWords = "";

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

$mailprog = '/usr/sbin/sendmail';
$maillist_address = "webbbs\@foo.com";
$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];
	$ADVshown = 0;
	$ADVUseLocking = 1;
	$ADVWrapCounter = 0;
	if ($advertzone eq "ShowAll") { &ADVshowall; }
	else { &ADVdisplayad; }
}


