#!/usr/bin/perl # # DCForumLite Version 3.0 by DCScripts # Based on DCForum2000 Version 1.0 # Released Date Jan 8 2000. # # Part of DCForum2000 Version 1.0 by DCScripts # Copyright ©1997-2000 DCScripts All Rights Reserved # # As part of the installation process, you will be asked # to accept the terms of this Agreement. This Agreement is # a legal contract, which specifies the terms of the license # and warranty limitation between you and DCScripts and DCForum. # You should carefully read this terms agreement as outlined in # the readme.txt file included with this distribution before # installing or using this software. Unless you have a different license # agreement obtained from DCScripts, installation or use of this software # indicates your acceptance of the license and warranty limitation terms # contained in this Agreement. If you do not agree to the terms of this # Agreement, promptly delete and destroy all copies of the Software. ################################################################### # NOTE: You may need to provide full path to each setup files # Some server require this. # $cgidir is the directory path to the location of this file. $cgidir = "."; #>>>>>>>>>>>>>>> NO NEED TO EDIT ANYTHING BELOW THIS LINE <<<<<<<< #>>>>>>>>>>>>>>> NO NEED TO EDIT ANYTHING BELOW THIS LINE <<<<<<<< #>>>>>>>>>>>>>>> NO NEED TO EDIT ANYTHING BELOW THIS LINE <<<<<<<< require "$cgidir/dcforum.setup"; require "$cgilib/dcforumlib.pl"; # unbuffer output $| = 1; # Read-in form data... ReadParse(); $r_in = \%in; $r_in->{'forum'} =~ s/\W//g; # Check and make sure admin module is not called if ($r_in->{'az'} =~ /^admin/) { print "Location: $boardurl\n\n"; exit; } if ($r_in->{'archive'}) { $database = "arc_" . $database; } # initialize some internal variables... # Need to change this for speed improvement $r_setup = initialize(); require "$cgilib/global.pl"; # Get current time and date get_date($r_in); if ($r_in->{'az'} eq 'list') { # create forum_links $html_forum_links = forum_links($r_in,$r_setup); } else { $html_forum_links = qq~