guestlog.html
This is a short log that lists domains and times that entries
were created. Much easier to browse and it will point out those failed entries
when users did not specify a name or comments. This file will also need
read/write permission given to it. To avoid long scripting (call me lazy if
you want :-) ) I left the log file so that newest entries are added at the
bottom. This should be apparent though since the entries all come with a
short date added. You can get around using this by changing the option
$uselog in the guestbook.pl file.
Bug Fixes
Version 2.1
- I changed the guestbook script so that the subroutines now work.
I guess I really messed up in Version 2.0, since I didn't test it
well, so I tried to be extra careful this time.
- In the subroutines I added a complete new form so that people
who forget to put their name in can simply fill it in, while the
script retains the rest of the information and it will them be
added. This means that they don't have to first return to the
guestbook add form to fill out the entry all over again.
Version 2.2
- I seemed to have a huge parenthesis problem in version 2.1. I
messed up twice in the mail option and also in the guestbook
printing, when the ')' was put inside the <a href> mailto tag,
instead of outside like the first one. The mail option was
missing two parenthesis which caused it not to work on many
machines. These have both been fixed.
- <>'s were used instead of () in the guestbook email addresses.
Version 2.3
- Fixed Server Side Includes Security whole in script.
History
Version 1.1 05/13/95 - chop($shortdate); added to make log file more
readable...
Version 2.0 05/26/95 - Several lines of code added and modified so that
entries now appear most recent entry first.
- Many lines taken out so that the script
automatically returns you to the guestbook after
you have completed the add form.
Version 2.1 05/29/95 - Edited subroutines so that they now work. Added
fill out form to the subroutines to make less jumps
to fill out guestbook.
06/01/95 - Added the option of mailing the owner of the
guestbook when a new entry arrives.
06/05/95 - Added the option to hypertext the email address of
the guest and you can now choose whether to log the
entry or not.
06/07/95 - chop($date); added and the guestbook entry
modified.
Version 2.2 08/23/95 - Tiny Modifications:
- Parenthesis for email address in entry
changed to brackets, so that the email address
can more easily be cut and pasted into most
email programs.
- Other minor changes
08/24/95 - Logging now a subroutine.
- Code tabbed better to make more readable. This was
one of my worst scripts up until now in that
respect.
- Option to have newest entries displayed at the
bottom instead of at the top added.
- E-mail option now fixed so the names come through
with the email messages.
- Modified the subroutines, so when an error message
is submitted, people don't see just a 2 letter
field for the State. I guess I was just ignorant
before, not realizing this would be around the
world, where not everyone uses 2 digits for their
state. :)
Version 2.21 10/08/95 - Fixed a problem with logging entry, which caused
the log to be on one line when viewed with a WWW
browser.
Version 2.3 10/14/95 - Added option of allowing html tags or throwing
them out when an entry was added.
- Fixed a hole in the script, which, when html is
turned on, like it always used to be, people could
add random server side includes to your html
pages. Not cool. Thanks to:
Rick O'Donnell (odonnell@heron.tc.clarkson.edu)
for pointing out the flaw and providing a fix.
- Added an optional URL field in the add an entry
form and modified the script to place the
reference around the submitter's name.
Version 2.3.1 10/29/95 - Took out all references to $server, which were
accidentally left in version 2.3.
- Added an option to let you change line breaks in
comment field to <br>'s in html doc.
- Added several die routines so maybe I won't get
as many mail messages as to "Why doesn't this
work!"
[ Matt's Script Archive, Inc. ]
[ Advertising ]
[ The CGI Resource Index ]
Matt Wright - mattw@scriptarchive.com
© 1995 - 1997 Matt's Script Archive, Inc.