#!/usr/bin/perl
require "daddons.cgi";
require "justme.pl";
#require "config.cgi"; # if you have a separate config file
#########################################################
# EveryAuction Boards v.99 BETA #
# 10/28/99 #
# For installation, contact eainstall@entea.com #
# #
# Unauthorized redistribution is prohibited #
# The latest version of this addon can be found at: #
# http://www.entea.com/auction/addons/ #
#########################################################
##############################################
# Configuration Variables
$eabaddons = 1; # Defualt is 1 if dadons.cgi and justme.cgi are installed, set to 0 if not
$eabauctionname = "TRANSPORT UNIVERSE"; # Your Sites Name
$eabname = "T U FORUM"; # Message Board Name
$eababspath = '/u1/www/transportuniverse'; # The ABSOLUTE PATH to the "root" Directory, NOT the cgi dir
$eabhome = "http://www.transportuniverse.com"; # Path (URL) Back to Auction Home Page
$eabauctioncgipath = "http://www.transportuniverse.com/cgi-transportuniverse/auction.cgi"; # Path (URL) to Main Auction Script
$eabregurl = "http://www.transportuniverse.com/cgi-transportuniverse/l-reg.cgi?1&1&u";
$eabuseridurl = "http://www.transportuniverse.com/cgi-transportuniverse/n.cgi?1&1&u";
$eabpassurl = "http://www.transportuniverse.com/cgi-transportuniverse/auction.cgi?1&1&u";
$eabtc1 = "#E8E8FF"; # Primary Table Color
$eabtc2 = "#efefef"; # Secondary Table Color
$eabtb = "0"; # Table Border Size - 0 = none, etc
$eabfc1 = ""; # Defualt Font Color - Leave Blank if defined in header
$eabf = "arial,helvetica"; # Defualt Font
$eabfs1 = "1"; # Font Size 1
$eabfs2 = "2"; # Font Size 2
$eabfs3 = "3"; # Font Size 3
$eabfs4 = "4"; # Font Size 4
$eabfs5 = "5"; # Font Size 5
$eabmax = 50; # Maximum Number of Messages to Display
$eabmaxsize = 200; # Maximum messages per EABoard
$eabtimezone = "ET"; # Your Server's Time Zone - ET, CT, PT, ect
$eabflock = 1; # Defualt is 1 to lock file, set to 0 to disable if problem
##############################################
######## Create eab DIR and dat file #########
umask(000); # UNIX file permission junk
mkdir("$eababspath/eab", 0777) unless (-d "$eababspath/eab");
if (!(-f "$eababspath/eab/cafe.dat")) {
open EABNEWFILE, ">$eababspath/eab/cafe.dat";
&filelock if ($eabflock);
close EABNEWFILE;
chmod 0777, "$eababspath/eab/cafe.dat";
}
##############################################
##############################################
# Main Program
# You do not need to edit anything below this
# line.
##############################################
# Print The Page Header
#
print "Content-type: text/html\n\n";
print <<"EOF";
Transport Universe - Transportation Auction and Car Auctions
EOF
;
##############################################
# Sub: Oops!
# This generates an error message and dies.
sub oops {
print "
Something is wrong with the $_[0] field. Hit the BACK button in your browser to try again!\n";
die "Something is wrong with the $_[0] field. Hit back to try again!\n";
exit;
}
##############################################
##############################################
# Sub: Get Form Data
# This gets data from a post.
sub get_form_data {
$buffer = "";
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs=split(/&/,$buffer);
foreach $pair (@pairs)
{
@a = split(/=/,$pair);
$name=$a[0];
$value=$a[1];
$value =~ s/\+/ /g;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s/~!/ ~!/g;
$value =~ s/[\n\r]/ /sg; #remove \n
$value =~ s/\[\]//g; #remove []
push (@data,$name);
push (@data, $value);
}
%form=@data;
%form;
}
##############################################
##############################################
# Sub: File Lock
# This locks files when bidding takes place
sub filelock {
flock (NEWITEM, 2);
seek(NEWITEM, 0, 2);
}
##############################################
##############################################
# Sub: Main Message Page
sub eabmain {
print <<"EOF";
This is the place to ask questions and share information about the world of transportation.
Important! Messages posted on this Open Forum by TRANSPORT UNIVERSE members are solely the opinion and responsibility of the person posting the message. We are not responsible for messages left by individuals who are not on the TU staff. We reserve the right to remove any content deemed offensive or harmful to the general public. Yes, the general public does include 4 year old childen!
You are responsible for your own words. Please consider your message
carefully before submitting it. Any offensive content will result in being banned from the Open Fourm and possibly from the entire site.
You may click HERE or scroll down to the messages. Or enter your Transport Universe Information to post a message.