############################################################# ## iDevAffiliate Version 4.0 - Copyright by iDevDirect.com ## Site: http://www.idevdirect.com/ ## Support: http://www.idevdirect.com/support/ ## Email: support@idevdirect.com ############################################################# error_reporting(0); session_start(); include ("config/config.php"); include ("skins/$skindir/header.php"); if ((file_exists('commissionstats/commissionstats.php')) && ($commissionstats == 1)) { $display = $display + 1; } if (($show_comalert == 1) && ($allow_comalert == 1)) { $display = $display + 2; } if (($_REQUEST['ref']) && ($second_tier == 1)) { $checkref=mysql_query("select ta, ti from idevaff_tlog where ta = '" . $_REQUEST['ref'] . "' and ti = '$ip_addr'"); if (mysql_num_rows($checkref) < 1) { mysql_query ("insert into idevaff_tlog (ta, ti) values ('" . $_REQUEST['ref'] . "', '$ip_addr')"); } } if ($paytype == 1) { $par_type = $p9; $par_pay = $p14; } else { if ($ap_1 == 1) { $par_type = $p7; $par_pay = $p14; } elseif ($ap_3 == 1) { $par_type = $p8; $par_pay = $p15; } elseif ($ap_2 == 1) { $par_type = $p9; $par_pay = $p14; } } ?>