# Relative (to the public html document root) url to the guestbook.html file. # If preceeded with a /, otherwise, if it was in your cgi-bin path, it # would be ./Html/guestbook.html (if your sever allows html content from the # cgi-bin tree. # $guestbookurl = "/sfrp/Guestbooks/guestbook.html"; #server path to the guestbook.html file # Change this to your path location $guestbookreal = "/usr/local/etc/httpd/htdocs/Guestbooks/guestbook.html"; $cgiurl = "guestbook.cgi"; $cgi_lib_location ="./cgi-lib.pl"; $cgi_sol_location = "./cgi-lib.sol"; $mail_lib_location = "./mail-lib.pl"; #change these to fix the spelling if you want to filter. @bad_words = ("fudk", "shib", "pibs", "dumn", "hebl", "script", "applet", "dxec"); # To get an administrator email informing you of the guestbook entry. $mail = "yes"; #Change to your email address. $recipient = "eric\@bwsd.com"; $email_subject = "Entry to Guestbook"; # Turn this to "yes" if you want to have email links $linkmail = "no"; $remote_mail = "yes"; # It's a good idea to have this turned off $allow_html = "no"; # To add more required fields, add them to the @required_fields array @required_fields = ("realname", "comments"); # Modify to suit yourself $thank_you_email_text = "Thanks for the guestbook entry."; sub add_form_header { print <<"end_of_add_form_header"; Guestbook (Add Form)

Add to the Guestbook

Please fill in the blanks below to add to the guestbook. The only blanks that you have to fill in are the comments and name section. Thanks! The rest are optional. You may check to have your email address not show in the guestbook, if you do enter your email address.


end_of_add_form_header } sub thank_you_html_header { print <<"end_of_html"; Thank You
Thank you for signing the Guestbook, $form_data{'realname'}

Your entry has now been added to the guestbook as follows...

end_of_html } sub missing_required_field_note { print <<"end_of_note"; Data Entry Error
Woopsy, You forgot to fill out $field and I am not allowed to add your guestbook entry without it. Would you please type something in below...
end_of_note } sub output_add_form { print <<"end_of_add_form";
Your Name:
E-Mail: Show My E-Mail
URL:
City:
State:
Country:
Comments:

Back to the Guestbook Entries

end_of_add_form }