#!/usr/bin/perl
# The line above MUST point to the location of Perl 5 on your server if
# you are running this program on a Unix server. Windows NT users can
# almost always ignore this line.
#####################################################################
#
# e-Classifieds(TM) Free Edition
# Version 3.2
# Last Modified: 1/1/2002
# Copyright © Hagen Software Inc. All rights reserved.
#
# By purchasing, installing, copying, downloading, accessing or otherwise
# using the SOFTWARE PRODUCT, or by viewing, copying, creating derivative
# works from, appropriating, or otherwise altering all or any part of its
# source code (including this notice), you agree to be bound by the terms
# of the EULA that accompanied this product, as amended from time to time
# by Hagen Software Inc. The EULA can also be viewed online at
# "http://www.e-classifieds.net/support/license.html"
#
# As explained in the EULA, Hagen Software offers absolutely
# no warranties on this product, which is sold and/or distributed
# "as is". You, and not Hagen Software, assume all risks
# associated with using this product, including but not limited
# to the risk of failure of the product to install or to operate
# successfully on your server, and responsibility for all content
# created by users of this product.
#
# This product, including all source code, is copyrighted by
# Hagen Software, and it is protected under both United States law
# and international laws and treaties. You may not redistribute this
# software, in whole or any part thereof, or use any part of the source
# code contained within this software to create derivative works,
# without the prior express written consent of Hagen Software.
# Nor may you remove any of the copyright notices contained
# either within the source code or on the HTML pages generated
# by the program. Doing so constitutes a criminal offense
# punishable by imprisonment.
# We prosecute all violators via both civil legal actions and in
# cooperation with U.S. and international criminal authorities.
# YOU HAVE BEEN WARNED!
#
# The Hagen Software web site is located at the following URL:
# http://www.hagensoftware.com
#
#####################################################################
# The user-configurable variables are listed below. You need to define these
# before uploading the program, or it will not work properly.
# Most of these variables are in the following format:
# $variable = "value";
# The # symbol will not be in front of the actual variables, however, as this
# is used to "comment out" lines in Perl. In other words, lines that begin with
# the # symbol are ignored by Perl when it executes the program. The $ sign
# is used to indicate variables in Perl, while the items in between the quotation
# marks represent the assigned value of that variable. The semicolon indicates
# the end of the statement. Therefore, in the example above, if you wanted to
# change the value for that variable, the only thing that you should change is
# the portion in between the quotation marks. For example, to change the value
# of the variable $variable to "red", you would edit it as follows:
# $variable = "red";
# Again, you would not put the # symbol in front of $variable. We did that
# here only because this is an example that we do not want the program to
# actually execute.
# Two other things you should note are that if you use quotation marks as part
# of the value (in other words, inside of the quotation marks that define the
# value), then you must "comment them out" by putting a back slash symbol (the
# "\" symbol) in front of them. For example:
# $variable = "The \"red\" light";
# Also, if you use the @ symbol in any of your value statements, you must
# similarly comment it out by putting a backslash symbol in front of it,
# such as in the following:
# $my_email_address = "me\@mydomain.com";
#################################################################
# The variables are defined below.
# $script_url should be set to the full URL of this classifieds program on your
# server.
$script_url = "http://www.theheatons.co.uk/cgi-bin/classifieds/classifieds.cgi";
# $master_admin_email_address should be set to your e-mail address
$master_admin_email_address="webmaster\@proud2belocal.co.uk";
# $admin_name should be set to the name of the administrator
$admin_name = "Webmaster";
# $sitename should be set to the name of your web site
$sitename = "THE HEATONS FREE ONLINE CLASSIFIED ADVERTISING";
# $siteurl should be set to the full URL of your web site
$siteurl = "http://www.theheatons.co.uk/";
# $slogan should be set to whatever slogan or catchphrase you use for your site
$slogan = "\"The original Free online classifieds for the 4 Heatons!\"";
# $sendmail should be set to the full server path to sendmail on your Unix server
# By default, this is set to "/usr/sbin/sendmail", but on many Unix systems, it is
# located at "/usr/lib/sendmail". If you don't know this, you might try typing
# "whereis sendmail" or "which sendmail" from a Telnet prompt.
# If you are running this program on Windows NT, you should set this to "". You
# will not be able to use the e-mail routines for this program on a Windows NT
# server. The commercial versions of the program include e-mail routines for
# both Windows NT and Unix.
$sendmail = "/usr/lib/sendmail";
# The following variable specifies the administrative password. You can
# (and should) change this to whatever you want.
$admin_password = "6tjFY529CX";
# The following variable specifies the special multiplier that will be
# used to generate a unique password for each ad. Please change this from
# the default so that other users of this program will not be able to guess
# your users' passwords. Also, we recommend against setting this to a round
# number such as 1000, etc. It's much better to use a random number such as
# 2748, etc.
$password_multiplier = "972453";
# If set equal to "on", $notify_add will cause the program to notify the administrator
# by e-mail anytime that an ad is posted to the system
$notify_add = "on";
# If set equal to "on", $reply_user will cause the program to send a reply e-mail
# to the user who just posted an ad thanking them and reminding them of their ad
# number so that they can delete their ad in the future
$reply_user = "on";
# If set equal to "on", $notify_delete will cause the program to notify the
# administrator by e-mail anytime someone deletes an ad
$notify_delete = "on";
# If set equal to "on", $notify_delete_all will cause the program to notify the
# administrator by e-mail anytime someone uses the administrative function to delete
# all ads in a category. Normally, you would receive this message after deleting the
# ads yourself, but this could be useful for informing you if someone obtains your
# administrative password and deletes all ads in a particular category without your
# knowledge or permission.
$notify_delete_all = "on";
# $classdir should point to the full server path of the new directory that you created
# for this program where the ads.counter file and the HTML pages for the ads will be
# stored. For Unix servers, this new directory should have its permissions set to 777.
# For Windows NT users, this should point to the full server path to this directory,
# beginning with the drive letter and using forward slashes instead of backslashes,
# such as "d:/InetPub/wwwroot/ads".
$classdir = "/home/freddyfresh/theheatons.co.uk/www/cgi-bin/classifieds";
# $htmldir should point to the full URL of the new directory that you created for
# this program where the ads.counter file and the HTML pages for the ads will be
# stored. You should also store the e-Classifieds logo graphic here, as the license
# for this free product requires you to display this logo in order to protect our
# trademark rights, intellectual property rights, and other legal rights.
# Do *not* include the trailing slash ("/") at the end.
$htmldir = "http://www.theheatons.co.uk/cgi-bin/classifieds";
# The @categories array defines the ad categories that the program will use. For each
# category, you need to list it in the following format:
# "Long Name of Category|shortname|Description", where the long name is the name that will be displayed
# at the top of pages in that category. This can contain several words and spaces. The
# short name can contain only one word with no spaces, as this is used internally by the
# program for keeping track of the categories. The Description will be listed underneath
# this category on the front page of the classifieds.
@categories = ("Announcements|announcements|Weddings, births, garage sales, events, legal notices",
"Vehicles|autos|Cars, trucks, vans, 4x4s, sports",
"Business Opportunities|busopps|Business opportunities, home-based, investments",
"Collectibles|collectibles|Antiques, beanies, toys, coins, stamps, comic books",
"Computers & Software|computer|Desktops, laptops, accessories, software",
"Employment|employment|Jobs, CVs",
"General Merchandise|merchandise|Tickets, boats, motorcycles, furniture, books, music, video games, and more",
"Personals|personals|Personal ads, missed connections, friends, activity partners",
"Pets & Supplies|pets|Pets, animals, supplies",
"Professional Services|services|Accounting, legal, secretarial, domestic",
"Property|Houses|Agents, flats & apartments, commercial properties",
"Rentals & houseshares|rentals|Apartments, roommates, leased housing, rentals");
# This subroutine defines the HTML for the pages that store the ads for each category.
# Please be careful to modify only the HTML in between the "qq~" and
# the "~;" code, or you will cause a syntax error that will break the program.
sub print_default_html {
print HTMLFILE qq~
$sitename
$head_code
bgcolor="$bgcolor" background="$background" text="$text_color" link="$link_color" vlink="$vlink_color" alink="$alink_color" class="page">
$upper_left_corner
$header
$long_category_name
$footer
~;
}
# The following variable defines any special HTML code that you want to place in
# between the and tags on each page. This could include meta tags,
# JavaScript, or CSS code. Please begin your HTML code on the line after
# the <
END_OF_HTML
# The following variable defines the background color of all pages.
$bgcolor = "#ffffff";
# The following variable defines the background graphic (if any) to be used on
# all pages.
$background = "";
# The following variable defines the default text color.
$text_color = "#333333";
# The following variable defines the color for hypertext links.
$link_color = "#6699CC";
# The following variable defines the color for visited links.
$vlink_color = "#6699ff";
# The following variable defines the color for active links.
$alink_color = "#6699ff";
# The following variable defines the HTML that will appear in the upper left hand
# corner of the pages. Please begin your HTML code on the
# line after the <
END_OF_HTML
# The following variable defines the HTML that will appear at
# the top of the main section of the pages. Please begin your HTML code on the
# line after the <
Content copyright © 2002 $sitename . All rights reserved.
Please send your questions, comments, or bug reports to the Webmaster .
Powered by e-Classifieds.net . Copyright © 1995-2002 Hagen Software Inc. All rights reserved.
END_OF_HTML
# The following subroutine (pagesetup) defines the HTML that will appear at
# the beginning of every page created by this program. You should modify
# only the text in between the "print qq~" and the "~;" statements.
sub pagesetup
{
local ($title) = @_;
print qq~
$title
$head_code
$upper_left_corner
$header
$long_category_name
~;
}
# The following subroutine (pageclose) defines the HTML that will appear
# at the end of every page created by this program. You should modify
# only the text in between the "print qq~" and the "~;" statements.
sub pageclose
{
print qq~
$footer