* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* 
* Copyright (c) 1998 Holotech Enterprises (phpware@holotech.net)
*
* You may freely distribute this script as-is, without modifications,
* and with the accompanying files. You may use this script freely, and
* modify it for your own purposes. This script is email-ware: if you
* find it useful, you MUST e-mail me and let me know. This IS the pay-
* ment that is required. If you do not make this payment, then you are
* using this program illegally.
* 
*                                                 Alan Little
*                                                 September 1998
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

LinkCycle generates text links from a MySQL database. The program cycles 
through all links in the database in sequence. When a link is clicked on, 
the script logs the URL to a file named .txlog, along with any environment 
variables desired by the user. Don't forget that .txlog must be world-
writeable unless you are running the script wrapped.

To install LinkCycle:

	1. Edit conphig.php3 for your settings

	2. Place all files in the distribution (except this one) in a
	   directory. Be sure the graphics files are uploaded in binary
	   format and the remaining files in ASCII.

	3. Execute the maketable.php3 script ONCE and delete it. This
	   script creates the necessary table in your database.

	4. Execute the linkmaint.php3 script to enter the desired links.
	   The buttons are pretty self-explantory; the first field is
	   the text to display, the second field is the URL. The URL must
	   include http:// (or ftp:// or whatever). If you want only part
	   of the text to be a link, surround it with double curly braces;
	   for example:
             Get a 2GB drive from OWC for just $99! {{CLICK HERE}}.
           If there are no braces, the entire text will be a link.
	   Hint: If you want a particular link to appear more frequently,
		 enter it multiple times.
	   Hint: You can include HTML code in the Text portion, such as
		 an <IMG> tag if you wanted to display an image.

To use LinkCycle, your HTML file must have the .php3 extension, or you must 
set up some other way for your file to be executed by the PHP parser. In the 
place where you want the link to appear, insert the following code:

	<?php require("linkcycle.php3") ?>

If LinkCycle is not in the same directory as your HTML file, you will need 
to specify the path to it.

Don't forget to e-mail me and let me know how you like this script. 
It's the law!

