#!/usr/bin/perl # Name: Cyber Ads (Free Edition) # Version: 1.0 # Last Modified: 9-9-98 by Philip A. Hagen # 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. # $this_script_url should be set to the full URL of this classifieds program on your # server. $this_script_url = "http://www.rainforestpets.net/cgi-bin/classifieds/classifieds.cgi"; $contact_url = "http://www.rainforestpets.net/"; # $master_admin_email_address should be set to your e-mail address $master_admin_email_address="ramtuff\@rainforestpets.net"; # $admin_name should be set to the name of the administrator $admin_name = "John Powell"; # $sitename should be set to the name of your web site $sitename = "RainForest Pets - Pet Classifieds"; # $siteurl should be set to the full URL of your web site $siteurl = "http://www.rainforestpets.net/"; # $slogan should be set to whatever slogan or catchphrase you use for your site $slogan = "\"Buy - Sell - Trade at RainForest Pets Classifieds! Get Paid to Surf The Net! Join For Free http://www.utopiad.com/member/getPaid?refId=129462 Become Your Own Publisher BONUS #1) Report Package Disk #1, #2, #3, and #4 (712 re sellable reports) BONUS #2) Infodisk 500 - Several hundred reports with a built in interface to easily locate and print them. Sized so that it can be duplicated on one standard IBM floppy and resold. BONUS #3) 167 Business and Financial Reports - Like Infodisk 500 this is a DOS based program that can be copied onto a floppy disk and resold. It has 167 reports in a easy to use index so you can locate them by name or subject. Re sellable. Send 19.95 + 3.00 S&H To: Flights of Fancy PO Box 343 Chisholm Mn 55719\""; # $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. $sendmail="/usr/lib/sendmail"; # The following variable should be set to the location of the date command # on your Unix server. If you don't know this, you might try typing # "whereis date" or "which date" from a Telnet prompt. The most common # locations are "/bin/date" or "/usr/bin/date". $date_command = "/bin/date"; # 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"; # $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 $classdir = "/var/www/rainforestpets.net/classified"; # $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 might also want to store the Cyber Ads logo graphic here. # Do *not* include the trailing slash ("/") at the end. $htmldir = "http://www.rainforestpets.net/classified"; # 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", 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. @categories = ("Aquarium|aqua","Aquarium Products|aquapro","Birds|birds","Bird Products|birdpro","Cats|cat","Cat Products|catpro","Dogs|dog","Dog Products|dogpro","Exotic Animal|exotic","Exotic Animal Products|exoticpro","Misc|misc","Reptiles|reptile","Reptile Products|reptilepro","Small Animal|small","Small Animal Products|smallpro","Merchandise|merchandise","Wanted|want"); # The following subroutine defines how the HTML pages that are dynamically generated by the # program will appear. This subroutine (pagesetup) defines how the beginning part of the # HTML is defined. You can set the general background images or colors here, as well as # the title that will appear at the top of each page. 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 pagesetup { print qq~
![]() |
![]() |

~; &generic_form_header; print qq~
