Ready-To-Run CGI Scripts

This is a listing of all the public CGI scripts available on this server. Each one is in /usr/local/www/cgi-bin; you can copy a script to your own directory if you want to customize it beyond its current scope.However, you most likely won't need to do so, and you can (and should) just use the scripts in the server cgi-bin where they are. :)


counter (text counter)

This is the standard counter program found at http://www.webtools.org/counter.
Usage (from within a .shtml file):

<!--#include virtual="/cgi-bin/counter"-->
      (for bare count with link: "465")
<!--#include virtual="/cgi-bin/counter-nl"-->
      (for bare count without link: "465")
<!--#include virtual="/cgi-bin/counter-nl-ord"-->
      (for ordinal count: "465th")
<!--#include virtual="/cgi-bin/counter-nl-ord-nc"-->
      (Display count without incrementing)
<!--#include virtual="/cgi-bin/counter-nl-ord-nd"-->
      (Increment count without displaying)


Count.cgi (graphical counter)

This counter is the graphical version commonly used on many sites. It is set up to automatically initialize new data files; to use this counter in your page, see http://muquit.com/muquit/software/Count/Count2.6/Count.html for instructions.

Be sure you use a new datafile name, like "username.dat". Don't leave it as "sample.dat"! :) The first count displayed will be "2"; this is because the initial value put into the data file is "1". All subsequent hits will increment it once only.

The standard five digit types are installed on this system; if you would like any further digit styles installed, just send me e-mail and I'll put them in.


ugb (Universal Guest Book)

This is a universal guest book script. To use it, copy the files /usr/local/scripts/guest.html and /usr/local/scripts/book.html to your public_html directory. Edit guest.html, and use either "top" or "bottom" in the hidden variable to indicate whether you want new entries to be added to the top or the bottom of the guestbook.

Note: The book.html file must be world-writable! Make sure this is the case by giving the command chmod go+w book.html at the command line.


FormMail

This is a generalized script for parsing information from a form and formatting its contents into an e-mail, which it then sends to you. It is completely configurable through hidden form fields. For information on how to set up a form which uses this script, see the online documentation at http://worldwidemart.com/scripts/readme/formmail.shtml#form_config.

Usage (in any HTML form file):
<FORM METHOD=POST ACTION="/cgi-bin/FormMail">


logger

This script logs hits to a file, and keeps track of the remote hostname, browser type, referring URL, and other information.

Usage (from within a .shtml file):
<!--#include virtual="/cgi-bin/logger.cgi"-->

The log will be written to a file called "client-log.shtml" in your public_html directory. It's up to you to make sure that file exists and is world-writable (use the "chmod go+w client-log.shtml" command to make it writable); also, make sure the header of the file ends in a <PRE> tag so the hits format correctly. Copy the file /usr/scripts/client-log.shtml to your directory for a sample empty file.


Return to the top-level frames page
Return to the top-level frames page
The Lion King WWW Archive