$row[1]) { require_once("ttt-do_reset.inc.php"); dailylog(); if ($iplogreset==1) { emptyips(); } } if (time() > $row[0]) { require_once("ttt-do_reset.inc.php"); anticheat(); toplist(); if ($iplogreset==0) { emptyips(); } } if ($_SERVER["REQUEST_METHOD"] == "HEAD") { $proxy = 2; } elseif ($_SERVER["HTTP_X_FORWARDED_FOR"] != "" OR $_SERVER["HTTP_VIA"] != "") { $proxy = 1; } else { $proxy = 0; } if ($iplog == 1) { mysql_query("UPDATE ttt_iplog SET hits=hits+1 WHERE ip='$ip' AND proxy='$proxy' AND trade_id=$trade_id") or print_error(mysql_error()); if (mysql_affected_rows() == 0) { mysql_query("INSERT INTO ttt_iplog (trade_id, proxy, ip, hits, clicks) VALUES ($trade_id, '$proxy', '$ip', 1, 0)") or print_error(mysql_error()); } } $cookie = explode("|",$_COOKIE["ttt_cookie"]); if (time()-86400 > $cookie[0]) { mysql_query("UPDATE ttt_stats SET in$thishour=in$thishour+1, uniq$thishour=uniq$thishour+1 WHERE trade_id=$trade_id") or print_error(mysql_error()); $cookie[0] = time(); } else { mysql_query("UPDATE ttt_stats SET in$thishour=in$thishour+1 WHERE trade_id=$trade_id") or print_error(mysql_error()); } close_conn(); $cookie[1] = $trade_id; ?> } ?>
![]() ![]() ![]() |
webmasters - trades
© Copyright 2003 bjpix.com