# DCCount98
# Written By David S. Choi, dc@sitedeveloper.com
# 30 January 1998
#
##########  YOU MUST KEEP THIS COPYRIGHTS NOTICE INTACT ###############
# Copyright  1997 DCScripts All Rights Reserved
# As part of the installation process, you will be asked
# to accept the terms of this Agreement. This Agreement is
# a legal contract, which specifies the terms of the license
# and warranty limitation between you and DCScripts and DCCount98.
# You should carefully read the following terms and conditions before
# installing or using this software.  Unless you have a different license
# agreement obtained from DCScripts, installation or use of this software
# indicates your acceptance of the license and warranty limitation terms
# contained in this Agreement. If you do not agree to the terms of this
# Agreement, promptly delete and destroy all copies of the Software.
#
# Versions of the Software 
# You may install as many copies of DCCount98 Script.
# 
# License to Redistribute
# Distributing the software and/or documentation with other products
# (commercial or otherwise) or by other than electronic means without
# DCScripts's prior written permission is forbidden.
# All rights to the DCCount98 software and documentation not expressly
# granted under this Agreement are reserved to DCScripts.
#
# Disclaimer of Warranty
# THIS SOFTWARE AND ACCOMPANYING DOCUMENTATION ARE PROVIDED "AS IS" AND
# WITHOUT WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER
# WARRANTIES WHETHER EXPRESSED OR IMPLIED.   BECAUSE OF THE VARIOUS HARDWARE
# AND SOFTWARE ENVIRONMENTS INTO WHICH HKDBOARD MAY BE USED, NO WARRANTY OF
# FITNESS FOR A PARTICULAR PURPOSE IS OFFERED.  THE USER MUST ASSUME THE
# ENTIRE RISK OF USING THIS PROGRAM.  ANY LIABILITY OF DCSCRIPTS WILL BE
# LIMITED EXCLUSIVELY TO PRODUCT REPLACEMENT OR REFUND OF PURCHASE PRICE.
# IN NO CASE SHALL DCSCRIPTS BE LIABLE FOR ANY INCIDENTAL, SPECIAL OR
# CONSEQUENTIAL DAMAGES OR LOSS, INCLUDING, WITHOUT LIMITATION, LOST PROFITS
# OR THE INABILITY TO USE EQUIPMENT OR ACCESS DATA, WHETHER SUCH DAMAGES ARE
# BASED UPON A BREACH OF EXPRESS OR IMPLIED WARRANTIES, BREACH OF CONTRACT,
# NEGLIGENCE, STRICT TORT, OR ANY OTHER LEGAL THEORY. THIS IS TRUE EVEN IF
# DCSCRIPTS IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN NO CASE WILL
# DCSCRIPT'S LIABILITY EXCEED THE AMOUNT OF THE LICENSE FEE ACTUALLY PAID
# BY LICENSEE TO DCSCRIPTS.
#
###########################################################################

Thank you for trying out our script.  If you have any suggestions, please direct
them to suggest@sitedeveloper.com

DCCount98 contains following files:

1) DCCount98.cgi (755)		- main script
2) DCCount98.htmlt (644) 	- template file
3) count.txt (666)			- page counter
4) blue.gif 				- 10 by 10 blue gif file used for bar graph
5) readme.txt				- this file

-----------------------------------------------------------------
Installing DCLinks98

- Create a directory in your cgi-bin named DCCount98 and upload files 1-4
- Chmod DCCount98.cgi to 755
- Chmod count.txt to 666

- Make sure you use ASCII mode when you transfer these files

Editing DCCount98.cgi - all you need to do is edit $path statement.
Try relative path.  That is

$cgidir - full directory page to DCCount98 cgi-bin
		e.g., /usr/local/mike/cgi-bin
$mainurl = top url;
		e.g., http://www.yourdomain.com   or
$cgiurl = Full URL to DCCount98 directory (do not include the filename);
		e.g., http://www.yourdomain.com/cgi-bin
$counter_file =  Full path to count.txt file
		e.g.,  $cgidir/count.txt
$booktemplate = Full path to DCCount98.htmlt
		e.g., $cgidir/DCCount98.htmlt
$imgfile = Full path to blue.gif file
		e.g., $cgiurl/blue.gif

------------------------------------------------------------------------
Embedding SSI directives in the pages you want to keep track

- This script requires Server Side Include.  If you are not sure if
your web site supports it, ask your ISP

1) Rename your *.html to *.shtml
2) In your shtml document that you want to keep track of, embedd the following
line where you want to display the counter

<!--#exec cmd="perl Path_to_DCCount98.cgi"-->

where Path_to_DCCount98.cgi is the location of DCCount98.cgi script.

Example:

If your page.shtml is in

	/usr/local/htmls/username/htmlpage
	
directory and DCCount98.cgi is in

	/usr/local/htmls/username/cgi-bin/DCCount98

directory, then the SSI command would be

	<!--#exec cmd="perl ../cgi-bin/DCCount98/DCCount98.cgi"-->

If you have problems, please consult our discussion forum.  Thanks.

---------------------------------------------------------------------------

Customizing DCLinks98

- You can easily edit DCCount98.htmlt file to customize this links pages...
- Be sure not to mess up various variables in this file...These are:

$HTML_OUTPUT

THAT's ALL FOLKS>>>>

-----------------------------------------------------------------------

To view your page stat, use http://www.yourdomain/cgi-bin_path/DCCount98.cgi?view

-------------------------------------------------------------------