Index of /applications/referrer-tracking
Name Last modified Size Description
Parent Directory -
lib/ 2004-01-25 07:55 -
SPECIFICATION 2003-08-04 01:39 2.4K
login 2003-08-04 03:57 2.3K
login.pl 2003-08-04 03:57 2.3K
refer 2003-08-04 04:33 2.5K
refer.pl 2003-08-04 04:33 2.5K
referrer.tar.gz 2005-07-10 19:29 632 A dynamically generated tarball of the current code
register 2003-08-03 02:47 5.2K
register.pl 2003-08-03 02:47 5.2K
setup 2003-08-04 04:11 1.5K
setup.pl 2003-08-04 04:11 1.5K
stats 2003-08-04 02:05 1.2K
stats.pl 2003-08-04 02:05 1.2K
test.html 2003-08-04 01:53 856 Referrer Tracking Test Page
verify 2003-08-03 14:48 1.5K
verify.pl 2003-08-03 14:48 1.5K
WARNING
=======
This code is not the latest code. Let me know if you want a copy of
the latest code.
Referrer Tracking Tool.
Edit the .config file to have the following entries:
name=Affiliates System
The name of your system
dbconfig=DBI:mysql:affiliates:database.example.com:3306
The database configuration, in the order of:
DBI:<database type>:<database name>:<host name>:<port>
dbusername=username
dbpassword=password
The username and password for the database
smtp=mail.example.com
The local SMTP server
from=admin@example.com
The address from which to claim e-mails were sent
dict=/usr/dict/words
The path to a file containing one word per line and expected to
be used for generating passwords.
home=http://www.example.com/affiliates/test.html
The page to which to redirect people
password=password
The admin password for this system
The admin password is only used once. See below.
Next, set up your templates, ".template-top" and ".template-bottom".
They can contain the keywords "$name" and "$title". $name is replaced
by the name entry in the .config file. $title is replaced by the title
of the page.
Next, view 'setup?password=foo' with your web browser (where 'foo' is
the password given at the end of your .config file). This will set up
the database tables. If you run it again it should fail.
Finally, add the URIs you want to your database:
INSERT INTO destinations SET id=1, uri="http://news.example.org/", type=0;
INSERT INTO destinations SET id=2, uri="ftp://ftp.example.org/", type=0;
INSERT INTO destinations SET id=3, uri="http://example.net/file1", type=1;
Set the number after "id" to one higher each time. The first
destination (id=0) will be prefilled to be whatever you set as the
home page in the .config file when you run setup.