Traffic-Drive CJ/TGP v5.14 free - setup and uninstall instructions


Requirements: PHP4, MYSQL

Files:

readme.html - this file
setup.php - setup
uninst.php - uninstall

index.php - main page
o.php - out file
a.php - admin interface
w.php - traders interface
vars.php - general settings
wmvars.php - traders interface settings
admvars.php - admin interface settings
wm1.txt - included in traders interface before signup
wm2.txt - included in traders interface after signup
top.txt - top list
toptpl.txt - template for top list row

User files:

InPage(s) - will be included in your main page (or redirected from main page to InPage)
topbrN.txt - top list breaker(s)

MYSQL Tables:

mset, tr, hr, sts, gal, bl, rf, ipfrom, ipto, hurl

Setup order:

  1. Edit files wm1.txt and wm2.txt - this is part of traders signup form.
    wm1.txt will be show before traders signup, wm2.txt - after.
  2. Edit file toptpl.txt - template for top list row.
    Available variables:
    %num% - rank
    %dom% - domain
    %name% - title of site
    %rin% - previous hour raw in
    %uin% - previous hour unique in
    %cl% - previous hour clicks to trades
    %gcl% - previous hour clicks to real content
    %out% - previous hour out
    %drin% - last 23 hours raw in
    %duin% - last 23 hours unique in
    %dcl% - last 23 hours clicks to trades
    %dgcl% - last 23 hours clicks to real content
    %dout% - last 23 hours out
    If you want to add breakers to top list, just create file topbrN.txt, where N - number of rows after which this breaker will apply. For example, create file topbr5.txt and put html code into him. This html code will be inserted after 5 rows of top list. You can create as many breakers, as you wish.
  3. Create your default InPages: 1.[ext], 2.[ext], 3.[ext] ...
    [ext] - extension, default is html, you can change it in admin interface
    InPage will be included in your main page (or redirected from main page to InPage).
    Each unique visitor will see 1.[ext] page.
    Each non-unique visitor will see next page, if it exists.

    You can create other InPages for any trade:
    [prefix]1.[ext], [prefix]2.[ext], [prefix]3.[ext] ...
    [prefix] - any alphabetical symbols.
    You should set the prefix for trade in admin interface in this case.
  4. Upload all files EXCLUDE uninst.php to one folder in your server in text mode.
  5. Chmod files vars.php, wmvars.php, admvars.php, top.txt to 777.
  6. Run setup.php. After setup is complete DELETE setup.php FROM YOUR SERVER!
  7. Use index.php as your main page.
  8. Your can use top list
    Insert code <?php include("top.txt"); ?> in your included InPage
    or
    Insert code <!--#include file="top.txt" --> in your redirected .shtml InPage

Setup Note:
If there is no need to have multiple InPages and no need to redirect, you can use old-style (4.05 version) main page:
index.shtml(or any .shtml) file with <!--#include file="index.php" --> first string.


Out options:

You can use options with out file.
Syntax:
o.php?option
or
o.php?option1&option2&option3... - you can use at one time as many options, as you wish

Available options (examples):

site=trade.com
- permanent out to trade with trade.com domain

grp=1
- out to group of traders 1 only
grp=2-3-7
- out to groups of traders 2, 3 or 7 only

ln=a (ln=p, ln=m)
- out to all sites (pictures only sites, movies only sites)

lnk=blabla
- out tracking, mark click as "blabla" (you can analyze the results of tracking in admin interface)

TGP and real content options:

url=http://www.mygalleries.com/page.html
- out to http://www.mygalleries.com/page.html by percent (defined in admin interface or defined by gpr option)

hurl=gallery1
- gallery1 is url-alias located in hurl-table. You can add,edit,delete url-aliases in admin interface ("hurl" button). If url for alias "gallery1" is found in hurl-table, this option work as url=... option, else hurl option is ignored
example:
hurl-table have record: gallery1 - http://www.mysite.com/g1.html
hurl=gallery1 work as url=http://www.mysite.com/g1.html


gpr=63
- percent (63%) outs to url(hurl), can be used with url,hurl options only

htg=1
gpr=100

- permanent out to url(hurl), can be used with url,hurl options only

gtr=1 (gtr=0)
- count (don't count) out to url(hurl) as first to real content, can be used with url,hurl options only

gfc=1 (gfc=0)
- out to url(hurl) permanently, if it is the first click to url(hurl) (out to url(hurl) by percent only), can be used with url,hurl options only




Uninstall order:

  1. Upload file uninst.php to script folder in your server in text mode.
  2. Run uninst.php. After uninstall complete DELETE ALL SCRIPT FILES FROM YOUR SERVER.




Traffic-Drive CJ/TGP v5.14 free - setup and uninstall instructions