If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Perl Guestbook woes...  XML
Forum Index » Support Forum
Author Message
Anonymous



well... i've combed through every thread on this board concerning the perl guestbook, and still have not found a solution... I have my pages all set up, but the script still won't execute. I have repeatedly made sure that I upload the scripts in ASCII mode, and chmod them appropriately (only the guestbook.pl is to be 755, and the entire "book" folder is chmod 777)... I have checked, and checked, and checked my paths, to no avail...

I'll post the paths and links below... Please help me out. I know there's got to be people out there that can easily solve my dilemma...


http://www.odiumpen.com/book/addentry.html

http://www.odiumpen.com/book/guestbook.html

http://www.odiumpen.com/cgi-bin/guestbook.pl

http://www.odiumpen.com/cgi-bin/guestbook.pl?admin=enter



#!/usr/bin/perl
#########################################################################
# Guestbook v1.51 #
# Copyright (c)2000 Chi Kien Uong #
# URL: http://www.proxy2.de #
# #
# This Software is distributed under the GNU General Public #
# License. For more details see license.txt #
# #
# Administration: #
# http://www.host.com/cgi-bin/guestbook.pl?admin=enter #
# #
# For more stuff visit --> http://www.proxy2.de #
#########################################################################

# url of script
$cgiurl = "http://www.odiumpen.com/cgi-bin/guestbook.pl";

# administration password
$admin_pass = "limelite";

# base url to all guestbook files without trailing "/"
$bookurl = "http://www.odiumpen.com/book";

# base directory to all guestbook files from the server root without trailing "/"
$base_dir = "/hsphere/local/home/triadica/odiumpen.com/book";

# guestbook entries per page;
$entries = 20;

# use file locking; ($lock=0 for Win32)
$lock = 1;

# allow html tags - 0=no; 1=yes; 2=translate
$html_tags = "2";

# time to redirect to guestbook after entry
$redirect_sec = "3";

# time offset - add one hour = +1 ; subtract one hour = -1
$fix_time = -5;

# entry bgcolor
$entry_bg = "#000000";
$font_face = "Arial";

# name of guestbook files
$book_file = "guestbook.html";
$id_count = "guest_id.txt";
$page_count = "page_id.txt";
$sample = "template.html";

# name of thread pages -> guest-1.html, guest-2.html, etc.
$sub_page = "guest-";

# this variable is used to find the jump menu
$jump_menu = "<option value=\"guestbook.html\" selected>Guestbook</option>";

# image files
$arrow_img = "point.gif"; # if not in same dir with guestbook.html
$mail_img = "mail.gif"; # specify correct url for each file
$url_img = "url.gif";

# Send the new guestbook-entry as email to recipient
$notification = "no";
$mailprog = "/usr/sbin/sendmail"; # path to sendmail
$recipient = "rob@robhazelwood.com"; # your email address

%required = (

username => "yes",
email => "yes",
url => "no",
message => "yes"

);
$remove_bad_words = "yes";
@bad_words = ("bad");

# End of Setup
##################



Again.... thank you for your time!
Anonymous



Nevermind! I figured it out.... it was all because i didn't have the \ in front of the @youremail.

Crazy how just a \ can prevent your entire script from executing...

Have a nice day!
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum