#!/usr/bin/python2
# Check out if the line above reflects the python location on your server, edit if required
##################################################################################
# A Simple GuestBook Script written by Andrea Cabibbo # ###### #
# Feel free to use/modify/redistribute the code # # # #
# however please preserve this header. # # # #
# ####### # #
# If you find bugs or have suggestions, please contact # # # #
# the author at http://wwww.cellbiol.com # # ###### #
##################################################################################
## LET'S START BY SETTING SOME VARIABLES AND OPTIONS
# THESE VALUES SHOULD BE EDITED TO MATCH YOUR OWN IN ORDER FOR THE SCRIPT TO WORK!!! ##
# the following variables should be edited to match your own environment
gbook_name='The Name of Your Great Guestbook'
gbook_dir_abspath='/home/youraccount/public_html/guestbook_dir/' # absolute path of the directory containing your guestbook html file
gbook_filename='test.html' # name of the html guestbook file
gbook_url='http://www.yourdomain.com/guestbook_dir/test.html' # url of the html guestbook file
do_sendmail='1'
sendmail_path='/usr/sbin/sendmail'
admin_email='your_email@yourdomain.com'
gbook_email='gbook@yourdomain.com' # address 'of the guestbook'
# the following is the html template for the posts. You can change this to fit the appearance of your web site. The variables are in the form #variable# and will be replaced by the actual values grabbed from the form
template='Name: #name#
E-Mail: #email#
Date Posted: #date#
Message: #message#
'
forbidden_strings=['viagra','xanax','cialis','tamiflu','ambien','zolof','hgh','pharmacy','vicodin','fuck','suck','shit','