<?php
ini_set ('display errors', 1); // 0 = uit, 1 = aan
error_reporting(E_ALL);
// The variable below is the only one you should change.
// Create copies of this file for each different reward ie. check2.php for �5,
check3.php for �4 etc
$payment = "0.44";
// Do not edit anything below this line
include "affconfig.php";
$ref = $_COOKIE["ref"];
if ($ref == '')
{
if($debugMessage)
echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in
cookie, trying to use sessions.</font><br>";
$ref = $_SESSION["ref"];
if($ref == '' && $debugMessage)
echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in
session.</font><br>";
}
if ($ref != '')
{
echo "<br><font color=#ff0000>: Referrer '$ref' found, registering
sale.</font><br>";
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 32)");
mysql_db_query($database, "INSERT INTO sales VALUES ('$ref', '$clientdate',
'$clienttime', '$clientbrowser', '$clientip', '$payment')")
or die("Database INSERT Error (line 34)");
}
?>
<?php
ini_set ('display errors', 1); // 0 = uit, 1 = aan
error_reporting(E_ALL);
$ref = isset($_COOKIE["ref"]) ? $_COOKIE["ref"] : '';
$ref = isset($_SESSION["ref"]) ? $_SESSION["ref"] : '';
// The variable below is the only one you should change.
// Create copies of this file for each different reward ie. check2.php for �5,
check3.php for �4 etc
$payment = "0.44";
// Do not edit anything below this line
include "affconfig.php";
$ref = $_COOKIE["ref"];
if ($ref == '')
{
if($debugMessage)
echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in
cookie, trying to use sessions.</font><br>";
$ref = $_SESSION["ref"];
if($ref == '' && $debugMessage)
echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in
session.</font><br>";
}
if ($ref != '')
{
echo "<br><font color=#ff0000>: Referrer '$ref' found, registering
sale.</font><br>";
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 32)");
mysql_db_query($database, "INSERT INTO sales VALUES ('$ref', '$clientdate',
'$clienttime', '$clientbrowser', '$clientip', '$payment')")
or die("Database INSERT Error (line 34)");
}
?>
<?php
ini_set ('display errors', 1); // 0 = uit, 1 = aan
error_reporting(E_ALL);
// The variable below is the only one you should change.
// Create copies of this file for each different reward ie. check2.php for �5, check3.php for �4 etc
$payment = "0.44";
// Do not edit anything below this line
include "affconfig.php";
$ref = isset($_COOKIE["ref"]) ? $_COOKIE["ref"] : '';
if ($ref == '')
{
if($debugMessage)
echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in
cookie, trying to use sessions.</font><br>";
$ref = isset($_SESSION["ref"]) ? $_SESSION["ref"] : '';
if($ref == '' && $debugMessage)
echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in
session.</font><br>";
}
if ($ref != '')
{
echo "<br><font color=#ff0000>: Referrer '$ref' found, registering
sale.</font><br>";
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 32)");
mysql_db_query($database, "INSERT INTO sales VALUES ('$ref', '$clientdate',
'$clienttime', '$clientbrowser', '$clientip', '$payment')")
or die("Database INSERT Error (line 34)");
}
?>