########################################################### # Guestbook 1.0 Program # # # # This script is very easy to set-up, even for those # # just starting out with CGI. It shouldn't take longer # # than 10 minutes to get it up and running. It has been # # tested on UNIX & NT and no problems were discovered. # # # # MAKE SURE THAT YOU READ OVER THE TERMS OF AGREEMENT # # BEFORE USING THIS SCRIPT. BY USING THIS SCRIPT, # # YOU ARE AGREEING TO ABIDE BY THEM. HOWEVER, IF YOU # # DON'T AGREE WITH IT, THEN DON'T USE MY SCRIPTS. ALSO, # # PLEASE READ THE 'README.TXT' FILE BEFORE INSTALLING. # # KEEP IN MIND THAT JASON'S SCRIPTS & THE AESTHETIC # # SURGERY CENTER SHALL NOT BE HELD LIABLE FOR ANY # # DAMAGES THAT MAY OCCUR FROM DOWNLOADING AND/OR # # INSTALLING MY PROGRAMS. IN SHORT, DOWNLOAD AND USE MY # # PROGRAMS AT YOUR OWN RISK! IF YOU DO NOT AGREE WITH # # THIS, THEN DO NOT USE ANY OF MY PROGRAMS. # # # ########################################################### THIS SCRIPT WILL NOT WORK UNLESS YOU CHANGE IT TO UNIX FORMAT because when you edit it, it adds hidden ^M to the end of each line and you need to get rid of them. Here's how I do it. 1.) Change the script and then upload the'guest.cgi' by 'FTP.' 2.) 'Telnet' to your website and locate the directory where you are storing the files, usually 'cd '. In my case, I keep them in the directory called guestbook, so i would type 'cd guestbook'. 3.) Then I change the script from dos to unix by the command 'dos2unix guest.cgi > guest2.cgi'. and hit enter. 4.) At the next prompt type 'mv guest2.cgi > guest.cgi' and enter. This moves the script from guest2.cgi back to the name guest.cgi 5.) Then make it (chmod) by typing 'chmod 755 guest.cgi' and then enter. ---- or ---- 2.) Certain FTP program allow users to make certain files 'chmod'. This is done by right clicking on the file you want, and if 'chmod' is an option, then select it and make the nesscary changes. Remember, the following file needs special read/write/excute properties: guest.cgi - chmod 755 ################################ ###################### #Change the following# ###################### #This is the directory where your 'guestbook.html' file will be kept. #For instance, my guestbook is found on the page #'http://www2.bc.edu/~malonejr/guestbook/guestbook.html'. #You MUST have the complete directory or else it won't work. #If you don't know it, ask your service provider. This #directory will only work at www.wideworldmart.com - so change it! $directory_gbook = "/usr/users/malonejr/www/guestbook/guestbook.html"; #The following three are just the URL's of 'guestbook.html', 'guest.cgi' #and the directory where you will store the images that came with the zip file. $guestbook = "http://www2.bc.edu/~malonejr/guestbook/guestbook.html"; $cgi = "http://www2.bc.edu/~malonejr/guestbook/guest.cgi"; $base = "http://www2.bc.edu/~malonejr/guestbook/"; #These are the images for the Missing Pages and the Thank You Page. #Don't touch, unless you really know what your are doing! $gif1 = "add.gif"; $gif2 = "miss.gif"; $gif3 = "thanks.gif"; $gif4 = "blueline.gif"; $back = "#FFFFFF"; #This is in case YOU want to be notified if an addition is made to your #guestbook. If so, let $mail = 1 and type in your e-mail address. Otherwise, #type $mail = 0 and let the $mailto be blank. $mail = 1; $mailto = 'malonejr@bc.edu'; ################################