Traffic-Drive CJ/TGP v6.03 free
Admin Interface :: Help

Manual    Main Table    Settings

Use
a.php - administrator's interface
w.php - webmaster's interface
index.php - index file of the script
o.php - target file of a script
top.txt - toplist
Before using
  • Check all settings in administrator's interface. my url should specify index.php file (for example http://mysite.com/index.php). In case if index.php is set as an index of directory (for example line DirectoryIndex index.php in .htaccess file) it is possible to specify directories url (for example http://mysite.com/).

  • Before using it is necessary to create entrance page (entrance pages). The name of page should be
    [prefix][N].[extension]
    [prefix] - any arbitrary symbols. Prefix can be empty.
    [N] - number. Since 1.
    [extension] - any extension.
    After installation, for new trade an empty prefix and extension html is set by default.

    For example edit entrance page 1.html. You can also create pages 2.html, 3.html, etc.
    In case of presence of several entrance pages with an identical prefix at each repeated reference the page with next serial number will be shown if it exists to surfer

    The script can operate with several sets of entrance pages. Using prefix, it is possible to set separate entrance pages for groups of traders or personally for each trade.

    For example it is possible to create new trader and to set a prefix of entrance pages test for him. In this case at entering hit from the trader the script will search for entrance page test1.html. At repeated enter of same surfer from this trade the script will search for page test2.html. If such page does not exist - test1.html is shown again.

  • Choose method of entrance page - inclusion or redirect.
    In case of inclusion contents of page are included in index.php. In this case SSI-extensions which can be situated on entrance page are not processed. php-commands work. For example insertion of the toplist - <?php include("top.txt") ?>
    In a case of redirection at the reference to index.php after necessary actions of the script redirection to entrance page occurs.

  • Webmaster's interface
    Go in administrator's interface, press Edit Files menu item and edit files wm1.txt and wm2.txt. wm1.txt will be shown to webmaster before the signup-form, wm2.txt - after signup will successfully passed.
Options of exit (in examples)
Syntax: o.php?option
It is possible to use several options at once
o.php?option1&option2&option3&etc
All values set by options of exit are prioritier and block values set in administrator's interface.

  • site=domain.com
    - exit only to trade with the domain domain.com, unique case when the suspended trade can receive exit

  • grp=1
    - exit only to trades of group 1
  • grp=2-3-7
    - exit only to trades of groups 2,3,7

  • ln=a (ln=p, ln=m)
    - exit to sites of all types (only to "mixed" or "pictures only" sites, only to "mixed" or "movies only" sites)

  • lnk=blabla
    - link tracking. Exit is marked as blabla and written in database of tracking. Results of tracking for last 24 hours for trades are accessible in administrator's interface

    Options of exit to real content:

  • url=http://www.mygalleries.com/page.html
    - an exit to http://www.mygalleries.com/page.html in the percentage ratio set in administrator's interface or set obviously by options gpr or htg

  • hurl=alias1
    - exit to url corresponding to alias alias1, stored in database. Operations with aliases - addition, editing, deleting - are made in administrator's interface. If url for a alias alias1 is found in the database, action of option is similar to option url, otherwise the option is ignored.

  • gpr=63
    - obvious instruction of percent (63 %) of exit to url (hurl), blocks the percent set in administrator's interface. It is meaningful to apply together with options url, hurl

  • htg=1, gpr=100
    - exit is always to url (hurl). It is meaningful to apply together with options url, hurl

  • gtr=1 (gtr=0)
    - it is obviously specified, that this exit on url (hurl) should to consider (be not counted) as first, blocks settings in the administrator's interface. It is meaningful to apply together with options url, hurl

  • gfc=1 (gfc=0)
    - it is obviously specified whether to send strictly on url (hurl) if it is the first click on url (hurl) (to send only in percentage ratio), blocks settings in management interface. It is meaningful to apply together with options url, hurl

    The first click on content is considered the first only for corresponding entrance page. If at repeated call of the same surfer from trade the entrance page with following number is shown, then script considers that the first click on the second entrance page was not made yet.
Division of the proceeding traffic
The script possesses the most powerful opportunities on division of the proceeding traffic. There are 2 types of division which can be applied in common:

  • Division by site type.
    The script can distinguish 3 types of site of the trader:
    - mixed
    - pictures only
    - movies only
    Using links with options of exit on your site it is possible to direct the traffic to sites of the certain type. For example, exit by link <a href="o.php?ln=p">Pictures Here</a> will be directed only to sites of types mixed or pictures only, exit by link <a href="o.php?ln=m">Movies Here</a> will be directed only to sites of types mixed or movies only, exit by link <a href="o.php?ln=a">Free Porn Here</a> will be directed to sites of any type. Default site type at exit is set in the administrator's interface. If division by site types is not necessary, all traders should receive mixed type.

  • Division by groups.
    Division into 99 groups is avaliable. The group 0 is service and means that trade is suspended. Each administrator defines principle of an accessory to groups independently. Usually group corresponds to one niche on multiniches sites. Or it is possible to enter any other division proceeding from your needs. It is possible to use separate group for new sites. If division by groups is not necessary, all traders are appropriated to 1 group. Using links with options of exit on your site it is possible to direct traffic to sites of the certain groups. For example, exit by link <a href="o.php?grp=1">Teen sites</a> will be directed only to sites of group 1, exit by link <a href="o.php?grp=2">Fetish sites</a> will be directed only to sites of group 2, exit by link <a href="o.php?grp=5">Gay sites</a> will be directed only to sites of group 5, exit by link <a href="o.php?grp=1-2-5">Porn sites</a> will be directed only to sites of groups 1,2,5
    Value of group by default at exit is specified in the administrator's interface.
    You can appoint the prefix of entrance pages for each group.
The schedule
For each trade the schedule of groups (st) and quantities of forced traffic (fr) by hours is set. It is possible to establish various groups for one trade. The group 0 means that at the given hour trade will be suspended.
How does the script works
Each of trade during each moment of time has characteristics:
owed - duty to trader
frn - quantities of forced traffic in the current hour
a - valid group
Trades with a=0 (suspended trades) do not receive exit without dependence from owed and frn (exception makes option of exit o.php?site=trader.com).
Conditionally functioning of the script can be divided into hour intervals. In the beginning of each hour calculate (proceeding from established ratio, trade type and parameters for 23 last hours) duty to the trader for last 23 hours (dowed). owed is set equal dowed+fr, frn is set equal fr (fr - quantity of forced traffic set in the schedule).
The first exits are always sent to trade with nonzero frn amount until all amount of the forced traffic will not be given.
Then exit on trades is proceeded by order of decrease owed.
All exits are unique, the script does not give to one trade an exit with one IP twice.
Once in 60 seconds (60 seconds by default, the interval can be changed in administrator's interface) owed is recalculated counting statistics of trade in the current hour and check of triggers occurs.
Triggers
Triggers either reset the valid group of a trade in 0 (if not the condition of any of set triggers satisfies), or return group from schedule to trade (if conditions of triggers are processed).

  • ditr - daily in trigger.
    It is checked only if nonzero value of trigger is set.
    If the quantity of raw ins from trader in last 24 hours including current is less ditr - trade stops (a is reset to 0).
    Trade stops if [rin24] < [ditr]
    rin24 - quantity of raw ins from trade in last 24 hours including current

  • hitr - in trigger for previous hour.
    It is checked only if nonzero value of trigger is set.
    If the quantity of raw ins from trader in previous hour is less hitr - trade stops (a is reset to 0).
    Trade stops if [rin_previous_hour] < [hitr]
    rin_previous_hour - the quantity of raw ins from trader in previous hour

  • dotr - daily out trigger.
    Restriction of exit. It is checked only if nonzero value of trigger is set.
    If a difference of quantity of the exits to the trade in last 24 hours including current and raw ins from the trade in last 24 hours including current is more dotr - trade stops (a reset to 0).
    Trade stops if [out24 - rin24] > [dotr]
    out24 - quantity of exits to the trade in last 24 hours including current
    rin24 - quantity of raw ins from the trade in last 24 hours including current

  • hotr - out trigger for previous hour.
    Restriction of exit. It is checked only if nonzero value of trigger is set.
    If a difference of quantity of the exits to the trade in previous hour current and raw ins from the trade in in previous hour is more hotr - trade stops (a reset to 0).
    Trade stops if [out_previous_hour - rin_previous_hour] > [hotr]
    out_previous_hour - quantity of exits to the trade in previous hour
    rin_previous_hour - quantity of raw ins from the trade in previous hour

    Triggers can be set separately for each trade in administrator's interface.
Recognition of surfers uniqueness
For recognition of uniqueness the script uses only surfer's IP. The script does not use cookie.
All IP are logged and are accessible to viewing in administrator's interface. Storage time of IP is set in administrator's interface (3600 seconds by default). The conclusion about uniqueness or repeated call of the visitor is made proceeding from presence of his IP in log file. It is recommended not to set storage time of IP too long on sites with large amount of traffic. It influences on speed of the script.
Recognition of belonging to the trade
The script can work in 2 modes:

- enable ID authentification - recognition of belonging to trade by value from transmitted in url at reference to a site and by referer value transmitted by browser.
- referer authentification only - recognition of belonging to trade only by referer value transmitted by browser, from value transmitted in url at reference to a site is ignored.

Overflow
Overflow - repeated hits from same IP (is more than quantity of traders), arise for example when using various programs for downloading site entirely, at passage of spiders of search engines and also if quantity of traders is not enough, but site has high productivity.
Overflows are sent to extra url, set in administrator's interface. User Agent of the client program is registered in file ua.txt at owerflow, which is accessible to viewing in administrator's interface.
Using .htaccess file it is possible to forbid access to your site for programs with certain User Agent value.
Toplist
Toplist - file top.txt - is formed in the beginning of each hour.
The quantity of members of the toplist is set in administrator's interface. If quantity of members of the toplist is set 0 - toplist will not form.
For each member of the toplist the line from the pattern of line (file toptpl.txt) is formed. Variables in pattern are replaced with the valid values.
Go in administrator's interface, press Edit Files menu item and edit file toptpl.txt.

In pattern of toplist line it is possible to use the following variables:
%num% - rank, number
%name% - title
%dom% - domain
%rin% - raw ins (last hour)
%uin% - unique ins (last hour)
%cl% - clicks to trades (last hour)
%gcl% - clicks to real content (last hour)
%out% - exits (last hour)
%drin% - raw ins (last 23 hours)
%duin% - unique ins (last 23 hours)
%dcl% - clicks to trades (last 23 hours)
%dgcl% - clicks to real content (last 23 hours)
%dout% - exits (last 23 hours)

For example, the pattern of line by default looks like:
%num% <a href="o.php?site=%dom%">%name%</a> %uin% %out%<br>

Resulting toplist for example looks like::
1 <a href="o.php?site=domain1.com">Trade 1</a> 1000 2000<br>
2 <a href="o.php?site=domain2.com">Trade 2</a> 500 600<br>
...


In case of need it is possible to use any quantity of breakers topbrN.txt, where N - an integer from 1 and further.
If necessary go in the administrator's interface, press Edit Files menu item and create files topbrN.txt.
Contents of breaker are inserted into the toplist file after N-member (of N-line).

For example create breakers:
topbr2.txt:

</td><td>

topbr4.txt:

</td><td>

topbr6.txt:

</td></tr></table>

and set quantity of members - 6.

You have file top.txt:

1 <a href="o.php?site=domain1.com">Trade 1</a> 1000 2000<br>
2 <a href="o.php?site=domain2.com">Trade 2</a> 500 600<br>
</td><td>
3 <a href="o.php?site=domain3.com">Trade 3</a> 400 500<br>
4 <a href="o.php?site=domain4.com">Trade 4</a> 300 400<br>
</td><td>
5 <a href="o.php?site=domain5.com">Trade 5</a> 200 300<br>
6 <a href="o.php?site=domain6.com">Trade 6</a> 100 200<br>
</td></tr></table>


Insert toplist in entrance page:

...
<table><tr><td>
<?php include("top.txt") ?>
...


In result the tabulared variant of toplist is created:

...
<table><tr><td>
1 <a href="o.php?site=domain1.com">Trade 1</a> 1000 2000<br>
2 <a href="o.php?site=domain2.com">Trade 2</a> 500 600<br>
</td><td>
3 <a href="o.php?site=domain3.com">Trade 3</a> 400 500<br>
4 <a href="o.php?site=domain4.com">Trade 4</a> 300 400<br>
</td><td>
5 <a href="o.php?site=domain5.com">Trade 5</a> 200 300<br>
6 <a href="o.php?site=domain6.com">Trade 6</a> 100 200<br>
</td></tr></table>
<font size=1>powered by </font><a href="/"><font size=1>Traffic-Drive</font></a>
...


Line
<font size=1>powered by </font><a href="/"><font size=1>Traffic-Drive</font></a>
is inserted into the end of toplist automatically.

back