| Variable |
What it does |
Value (BOLD=default) |
| $HTML |
Determins if a submitter can use HTML tags in the entry |
"YES" or "NO" |
| $ALLOWIMAGES |
Some spammers are getting wise to filters so they are opting to use images
to clog your guestbook with. If you set $ALLOWIMAGES="NO" it will strip
any image <IMG> tags from the entry. |
"YES" or "NO" |
| $REDIRECT |
the internet address of the page you would like
the user to go to once the have hit the SUBMIT button. Most people
just redirect the person back to the guestbook but you could use a
Thank You page or whatever
|
A valid web address ie "http://www.myhomepage.com/cgi-bin/asgbv2.pl?1+10" |
| $GUESTBOOK |
$GUESTBOOK is the file name for your guestbook file. You must give the
filename including it's full path. not a URL.
|
"/www/users/guestbook.txt" |
| $TEMPDIR |
A directory on your server where you have permission to
write and delete files.if it is the same directory where the script is then leave it blank.
|
ie. "/tmp/" or "" |
| |
Email Section |
|
| $SEND_THANKS |
send the signer of the book a thank you
note if they supplied a valid e-mail address.
|
"YES" or "NO" |
| $MY_EMAIL |
Should be your e-mail address. Be sure to put that \@ backslash
before the AT sign! |
"me\@somedomain.ca" |
| $TELL_ME |
The script will notify you when somebody has signed your book
by sending you and email to the $MY_EMAIL address. |
"YES" or "NO" |
| $MAILPROGRAM |
Is your system's e-mail program typically either
sendmail on Linux or blat.exe on Windows.
|
"/usr/lib/sendmail" -t "C:/www/cgi-bin/blat.exe" |
| $USEBLAT |
If you are using BLAT.EXE then set this to "YES". If you are going to use
sendmail then set it to "NO".
|
"YES" or "NO" |
| $FROM |
Enter your email address here. This is the email address for the account
that use the login and password below. It can be the same as the $MY_EMAIL. |
"foo\@somedomain.ca" |
| $SERVER |
Your email server |
"smtp.somedomain.ca" |
| $PORT |
Your email server's port Normaly 25 |
"25" |
| $USERNAME |
Your email login name |
"foobar" |
| $PWD |
Your email password |
"password" |
| |
MISC Variables |
|
| $SCRIPTURL |
This is the URL to this script without the page number and entries.
|
"http://www.myhomepage.com/cgi-bin/asgbv2.pl";
|
| $MYDOMAIN |
Should contain your domain. ie. somedomain.com or www.somedomain.com
Prevents someone else from running your guestbook from thier webpage.
|
"somedomain.ca"
"www.somedomain.ca"
|
| @REQUIRED |
Required fields. enter the fields here that must not be blank when
the user submits the entry. ie.@REQUIRED=("name","message");
Fields: "name","email","city","country","url","message"
|
("name","message") |
| |
ANTI SPAM CONFIGURATION |
|
| $MASKEMAIL |
will replace the . and @ signs in the address to fool
most email spiders.
|
"YES" or "NO" |
| $ATSIGN |
@ sign replacement if MASKEMAIL set to YES.
(can be an image, © or "AT" or whatever)
|
<img src=\"http://www.somedomain.ca/at.jpg\" width=10 height=9>" |
| $DOT |
. replacement in email addresses if MASKEMAIL set to YES.
(can be an image, · or "DoT" or whatever)
|
"·" (Looks like this)=> · |
| $FLAG_ON_LINKS |
will FLAG an entry if it contains more than $MAXLINKS
links on the guestbook. (this does not include the url field)
This will only count the links in the message field.. |
"YES" or "NO" |
| $MAXLINKS |
Works with FLAG_ON_LINKS.Maximum number of links allowed in the message body |
0 to 100 default=2 |
| $FLAG_ON_WORD_LEN |
Works with FLAG_ON_LINKS.Maximum number of links allowed in the message body |
"YES" or "NO" |
| $MAXWORDLEN |
Works with FLAG_ON_WORD_LEN.Maximum number of characters in a single word |
1 to 100 default=40 |
| $CHAR_REPEAT_LIMIT |
Checks the frequency of a letter in a word.
finds stuff like like "You SUUUUUUUUUUUUUUUUUUCK"
This is only used if $FLAG_ON_WORD_LEN is set to YES |
2 to 1008 0 = OFF |
| $FLAG_ON_FILTER |
will flag any entry that contains any of the words in the
filter word file. It will search ALL the fields, not just the message field.
|
"YES" or "NO" |
| $WORDFILE |
File and path for words text file.
If the file is in the same directory as the script
you can just specify the filename.
|
"filter.txt" |
| $USEBANS |
Use Bans, will permanently ban the offending ip address.
After being banned they will automatically be
redirected to a different page and nothing will be written to the guestbook.
|
"YES" or "NO" |
| $BANLIST |
Ban List text file for storing banned IP addresses.
If the file is in the same directory as the script
you can just specify the filename.
|
"banlist.txt" |
| $BANLOG |
Name and location of the Ban Log. This will contain the IP,
email,URL and the flagged content.
|
"banlog.txt" |
| $MAXENTRIES |
Maximum number of Ban log entries. Dont use a high number here.
25-100 entries should be enough.
|
50 |
| $MAXLENGTH |
Maximum length of Guestbook message (number of characters)
Set to 0 for unlimited (not recommended)
|
800 |
| $LOGERROR |
Log errors. set to 1 to log errors or 0 to not write log.
Useful to help you debug the script.
|
1 or 0 |
| $ERRLOG |
Error log file path and filename
|
"ASGBlog.txt" |