############################################################################## # Guestbook Version 2.3.1 # # Copyright 1996 Matt Wright mattw@scriptarchive.com # # Created 4/21/95 Last Modified 10/29/95 # # Scripts Archive at: http://www.scriptarchive.com/ # ############################################################################## # If you run into any problems while trying to configure this scripts, help # # is available. The steps you should take to get the fastest results, are: # # 1) Read this file thoroughly # # 2) Consult the Matt's Script Archive Frequently Asked Questions: # # http://www.scriptarchive.com/faq/ # # 3) If you are still having difficulty installing this script, # # you may wish to look at the resources listed here: # # http://www.scriptarchive.com/help/ # # # # Hopefully that will be able to help you solve your problems. Due to time # # constraints I can no longer offer technical support for this code. # ############################################################################## # COPYRIGHT NOTICE # # Copyright 1996 Matthew M. Wright All Rights Reserved. # # # # Guestbook may be used and modified free of charge by anyone so long as # # this copyright notice and the comments above remain intact. By using this # # code you agree to indemnify Matthew M. Wright from any liability that # # might arise from it's use. # # # # Selling the code for this program without prior written consent is # # expressly forbidden. In other words, please ask first before you try and # # make money off of my program. # # # # Obtain permission before redistributing this software over the Internet or # # in any other medium. In all cases copyright and header must remain intact.# ############################################################################## There are five files included in the Guestbook package. Below is a brief summary of them: 1) README - This file. 2) guestbook.pl - The Perl Script. 3) guestbook.html - The actual guestbook file. 4) addguest.html - The fill-out form for a guestbook entry. 5) guestlog.html - A short log of those who have added. Below is a more detailed explanation of each file and what to do with it! ____________________ GUESTBOOK.PL - This is the Perl script that actually writes new entries to files and returns the entry to the user. This file will need to be placed in the cgi-bin of your server and chmoded to a+rx. There are a few things that need to be changed in this file: # Set Variables $guestbookurl - The url address of your guestbook.html file $guestbookreal - The system location of your guestbook.html file $guestlog - The system location of your guestlog.html file $cgiurl - The url portion of the address to the guestbook.pl file The file guestbook.pl needs to be placed in your server's cgi-bin and chmoded read/execute for users of your httpd. (chmod a+rx) NEW IN 2.1: There are now several options that you have to decide whether or not to use. Below is a brief description of what each one does. While choosing what options you want to have on keep in mind that a '1' will turn them on and a '0' will turn them off. Option 1: $mail - This option will allow you to be notified via an E-Mail address when a new entry arrives in your guestbook. The entry will be mailed to you as a notification. If you should choose to turn this variable on you will need to fill in the 2 variables that go along with it: $recipient - Your E-Mail address, so that the mailing program will know who to mail the entry to. $mailprog - The location of your sendmail program on your host machine. Option 2: $uselog - This will allow you the ability to use my short log feature. It is already turned on so you will have to change it to 0 if you do not wish to use it. I have implemented this feature, since there are probably many people who feel no need to have a log when people are making entries to a file anyway. Keep in mind it will show errors which is one nice aspect about it. Option 3: $linkmail - Turning this option on will make the address links in your guestbook become hyperlinked. So instead of simply having (name@some.host) it will put (name@some.host) so that anyone can simply click on the address to email them. Option 4: $separator - While looking at many other guestbooks I noticed that many people prefer to separate entries with a Horizontal Rule
, which I used in my old scripts. I have now given you the option to choose. By changing the 0 in the script to a 1 you will turn on the
separator. The 0 option will do the reverse of that; turn on
and turn off