######################################################################
# counter.pl - A Graphical Counter
# Version 2.2
#
# Written by Ben Short, Shortboy Productions
# (c) 1999 Shortboy Productions
#
# Disclaimer: The author of this script, nor Shortboy Productions take
#             ANY responsibilty for any damage this script may cause.
#	      This script has been tested, and deemed "safe" at he time
#	      of production. Any damage caused would be due to the
#	      End Users lack of knowledge of setting up the script, and
#	      no-one can take responsibilty for someones stupidity :P
######################################################################


REQUIREMENTS

Web Server must support SSI

FEATURES

	* Graphical Counter Display
	* Ability to log the date and IP of person accessing Website.
	* Basic "reload" Protection


FILES IN THIS INSTALL

	counter.pl 	- The Counter Script
	ipdata.txt 	- IP Logging File
	counts.txt	- Counter Logging File
	*.gif		- Digit images
	readme.txt	- This File



INSTALLATION INSTRUCTIONS

1	Unzip files into a directory. The digit images should be stored in
	a location that is browsable on the web.

2	Configure counter.pl. Its all fairly self-explanitary.

3	Copy counter.pl into cgi-bin directory. CHMOD counter.pl to 755.
	Copy ipdata.txt and counts.txt to the location you have specified
	when completing step 2. CHMOD these files to 777.

4	Copy digits to location as specified in step 1.  


HOW TO USE.

In your HTML, add the following piece of code where you wish the counter to
be displayed:

	<!--#exec cgi="/path/to/cgi-bin/counter.pl"-->

Seeing the uses Server Side Includes (SSI), please make sure you have designed
or enabled your site for SSI. If you are unsure if you webhost supports SSI, please
contact the webhosts support.


FAQ

Q: I accessed my page once, and the counter now displays 1, but when I try to access
   my page again, it wont show 2. Why?

A: This counter has a simple form of stopping reloads from occuring - that is, stopping
   people from hitting reload, to make the counter advance. It does this by comparing
   your IP against the last one it has stored in its memory, and if they match, then the
   counter will not advance.

Q: The counter Won't Count! You Suck!

A: Yes it will :) Have you check the permission are correct on counts.txt, and it is in
   the place you told the counter it will be? If not, make the required changes, and try 
   again.

Q: The Images wont display. Why Not?

A: Chances are that they can not be browsed to over the internet. Please put them in a
   location where the can be browsed to (http://www.somedomain.com/~someuser/digits is
   a good start) and try again.

Q: My IP Logging file isnt showing the date, its showing an error message.

A: You have probably given the wrong path to the date command or it doesnt exist. Check
   the path again that you have set in counter.pl, or if it is the latter, you can either
   live with it, or turn off logging :)

Q: Can I use different Digits?

A: Yes, you can. Just find the digits you want to use, name them like the default ones
   provided in the install (instead of a, you may want to use b etc..), and edit
   counter.pl accordingly.

Q: Does this counter do only text display?

A: No, but it is planned for a future release.

COPYRIGHT

The files README, and counter.pl are copyrighted material. Subject to copyright, these
files are not to be altered in any way other than the configuration section specified.
This counter is free for non-profit use. Commercial use requires a link to the
SBP script website visible in proximity to the counter.


CREDITS/COMMENTS/CONTACTS

This script has been written solely By Ben Short. It is free to use for personal use.
Commercial use of this script requires a small fee to be paid, that is variable
depending on the negotiations between author and business intending to use it.

PLEASE MAKE SURE YOU READ THIS FILE FULLY, AND CORRECTLY CONFIGURE THE SCRIPT. Emails
from people requesting help with scripts that is already covered in the documentation
WILL be IGNORED.

If you have any comments regarding the script, any suggestions to improve it (especially
any that involve security patches), or you just want to tell me how cool the script is ;)
I can be contacted on the following email address:

bshort@shortboy.net


I hope you enjoy :)