
MetroCredit©
|
Classified Ads
CLASS.CFG Setup
------------------------
Define the variables in the class.cfg as follows:
#############################################################
# Custimization portion
#######################
# The path to sendmail on your system.
# If you have an error, ask your sysadmin.
## Only change this section if not using sendmail.##
$mailer = '/usr/lib/sendmail';
$mailer1 = '/usr/bin/sendmail';
$mailer2 = '/usr/sbin/sendmail';
if ( -e $mailer) {$mailprog=$mailer;}
elsif( -e $mailer1){$mailprog=$mailer1;}
elsif( -e $mailer2){$mailprog=$mailer2;}
else {print "Content-type: text/html\n\n";
print "I can't find sendmail, shutting down...<br>";
print "Whoever set this machine up put it someplace weird.";
exit;}
# $mailprog = 'c:\bin\blat.exe'; # other mail system such as blat, etc.
#############################################################
######## Defining the following Variables: ########
#
# $basedir = path to Classifieds location.
# $baseurl = URL of Classifieds location.
# $order = Your 'Order' Page
# $return_name = Return email.
# $mesgdir = Sub directory where the Ads pages reside.
# $ext = Extension of each ad page (html is normal).
# $passwd_number = Password number multipler
# $passwd_file = Password file name
# $title = Your Classifieds Name
# $allow_html = "1" allows HTML(already has URL location in ad)
# @files = Search which directory and files
# @departments = Department|Department Page
# $column = Department display (3 wide is ideal)
# $advertisement = Advertisement at the top of each page
# $footer = Add your footer or leave mine
# $htmlctr = Allow counter 1 = on
# $counter = the URL for your Counter (page 1 only)
## Done ##
#############################################################
######## Begin modifying the variables below ########
$basedir = "/home/jwh/public_html/classifieds";
$baseurl = "http://www.metromkt.net/classifieds";
$order = "http://www.metromkt.net/classifieds/order.html";
$return_name = "classifieds\@metromkt.net";
$mesgdir = "ads";
$ext = "html";
$passwd_number = "111781";
$passwd_file = "passwd.txt";
$title = "Metro Marketing Classifieds";
$allow_html = 0;
@files = ("../ads/*.html");
@departments = ("Automotive|Automotive", "Boats|Boats", "Books|Books", "Business|Business",
"Clothing|Clothing", "Collectables|Collectables", "Computer Software|ComputerSoftware",
"Computers|Computers", "Cooking|Cooking", "Cycles|Cycles", "Education|Education",
"Electronics|Electronics", "Employment Wanted|Employment", "Employment Offered|Employoff",
"Entertainment|Entertainment", "Hobbies|Hobbies", "Investments|Invest", "Jewelry|Jewelry",
"Miscellaneous Info|Misc", "Miscellaneous Items|Items", "Music|Music", "MLM|MLM",
"Oppurtunity|Opportunity", "Pets|Pets", "Planes|Planes", "Real Estate|RealEstate",
"RVs|RV's", "Services Offered|ServicesOffered", "Services Needed|ServicesNeeded",
"Sports|Sports", "Travel|Travel", "TV|TV", "Video|Video");
##########################
# Column width of classified
# display. 3 or 4 columns
# 3 is clearer display
$column = 3;
if ($column == 3) {$cols = 2; $font = -1;}
if ($column == 4) {$cols = 3; $font = -2;}
$advertisement = "Any banner Image or Text";
$footer = "Any banner Image or Text;
$htmlctr = 1;
$counter = "<img src=\"http://www.metromkt.net/hitmat/hitmat.cgi?class+1=PAGE\"></CENTER>";
## Done ##
##########################
# Don't modify below Here
##########################
$adsurl = "$baseurl/$mesgdir";
$adsdir = "$basedir/$mesgdir";
$registrar = "$basedir/$mesgdir/register.txt";
#############################################################
|