Anti-Spam Counter - Script Setup - Variables

The link to DOWNLOAD a file should look something like this

<a href="/cgi-bin/dlcount/asdlcount.cgi?download=asgbv2.zip">Download</a>

And the link to DISPLAY the count should look something like this

<!--#include virtual="/cgi-bin/dlcount/asdlcount.cgi?display=asgb.zip" -->

To delete a file set the delete key to something OTHER than PaSsWoRd and type into your browser:

http://www.mydomain.com/cgi-bin/asdlcount.cgi?YourKey=filename.ext

Files will automatically be added the first time the download link is used, or you can add them manualy to the text file.
Variable What it does Value   (BOLD=default)
$COUNTFILE Set $CountFile to the text file that will hold the filenames and counts. If it is in the same folder as the script you can just enter the filename. Otherwise it has to be a full path. "/www/cgi-bin/dlcount.txt"
or
"dlcount.txt"
$FILE_URL This is the URL where your files are stored for download. "http://www.somedomain.com/files/"
$FILE_REAL This is the relative path to the files.
IF YOU DON"T KNOW WHAT IT IS, SET IT TO ""
IF IT'S WRONG ALL DOWNLOADS WILL FAIL!!!!!
If it is set it will implement file checks to make sure that the requested file is actually there.
"/www/users/myweb/files/"
$USEDELETE Set this to YES to be able to delete file entries from the Count text file with the script.
If you set it to NO you will have to edit the file by hand.
"YES" or "NO"
$DELETEKEY Set this key like a passowrd. It is case sensitive and can ONLY contain letters and numbers.
If someone knows it they will be able to delete records from your file.
This is ONLY used if $USEDELETE is set to YES
"PaSsWoRd"
$USELOG Set to YES to use a logfile.
Only logs errors and when entries are added and removed via the script.
Useful in debugging
"YES" or "NO"
$LOGFILE The name and location of the logfile. "/www/users/myprofile/countlog.txt"
Back to Help