#!/usr/bin/perl # ### CONTROL PANEL SCRIPT FOR ULTIMATE BULLETIN BOARD ## # # Ultimate Bulletin Board is copyright Infopop Corporation, 1998-2000. # # ------------ cpanel.cgi ------------- # # This file contains some of the control panel functionality for # the UBB. It is called from the controlpanel pages (cp.html). # # Infopop Corporation offers no # warranties on this script. The owner/licensee of the script is # solely responsible for any problems caused by installation of # the script or use of the script, including messages that may be # posted on the BB. # # All copyright notices regarding the Ultimate Bulletin Board # must remain intact on the scripts and in the HTML # for the scripts. # # For more info on the Ultimate BB, # see http://www.UltimateBB.com # ############################################################### #If you are running UBB on IIS, #you may need to add the following line #if so, just remove the "#" sign before the print line below #print "HTTP/1.0 200 OK\n"; print ("Content-type: text/html\n\n"); eval { ($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX / or Windows / ($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \ #substitute all require files here for the file require "UltBB.setup"; require "mods.file"; require "Styles.file"; require "ubb_library.pl"; require "ubb_library2.pl"; }; if ($@) { print "
Error including the required files:
"; print "Be sure you uploaded UltBB.setup, Styles.file, mods.file and forums.cgi in ASCII/Text mode to your CGI directory. [This is a manual setting on your FTP software]
Make sure spelling and case are correct: UltBB.setup not ultbb.setup.
\n\n"; print "Here is the message returned from UBB:
$@
\n\n"; exit; } &ReadParse; foreach $row(@in) { ($Name, $Value) = split ("=", $row); $Name = &decodeURL($Name); $Value = &decodeURL($Value); if ($Name eq "action") { $action = $Value; } if ($Name eq "Email") { $Email = $Value; $Email =~tr/A-Z/a-z/; } if ($Name eq "UserName") { $UserName = $Value; } if ($Name eq "Password") { $Password = $Value; } } #end foreach loop if ($VariablesPath eq "") { $VariablesPath = $CGIPath; } if ($action eq "setmods") { &SetMods; } if ($action eq "UpdateThreads") { &UpdateThreads; } if ($action eq "prune") { &Prune; } if ($action eq "digest") { &Digest; } if ($action eq "index") { &Index; } if ($action eq "archives") { &Archives; } if ($action eq "addforums") { &AddForums; } if ($action eq "banlists") { &BanLists; } if ($action eq "variables") { &Variables; } if ($action eq "permissions") { &Permissions; } if ($action eq "env") { &Env; } if ($action eq "misc") { &Misc; } if ($action eq "mail") { &Mail; } if ($action eq "style") { &Styles; } if ($action eq "logintoforums") { &LogIntoForums; } sub Styles { if ($profilegif eq "") { $profilegif = "profile.gif"; } if ($mailgif eq "") { $mailgif = "email.gif"; } if ($CopyrightTextColor eq "") { $CopyrightTextColor = "#C0C0C0"; } if ($TextSize eq "") { $TextSize = "2"; } if ($TextColor eq "") { $TextColor = "#000000"; } if ($LinkColor eq "") { $LinkColor = "#000080"; } if ($VisitedLinkColor eq "") { $VisitedLinkColor = "#808000"; } if ($ActiveLinkColor eq "") { $ActiveLinkColor = "#800000"; } if ($TableStripTextColor eq "") { $TableStripTextColor = "#000080"; } if ($CategoryStripTextColor eq "") { $CategoryStripTextColor = "#000000"; } if ($BBTitle eq "") { $BBTitle = "bbtitle1.jpg"; } if ($BBTopic eq "") { $BBTopic = "topic1.jpg"; } if ($BBReply eq "") { $BBReply = "reply1.jpg"; } if ($ThreadClosed eq "") { $ThreadClosed = "threadclose1.jpg"; } if ($TableWidth eq "") { $TableWidth = "95%"; } if ($FDTextSize eq "") { $FDTextSize = "1"; } if ($TimeColor eq "") { $TimeColor = "#800080"; } if ($BBTitleFontColor eq "") { $BBTitleFontColor = "#800000"; } $PageTitle = " S E T S T Y L E S"; &HEADERHTML1; print<
Powered by: Infopop © 2000
Ultimate Bulletin Board $Version