= $GLOBALS['HIT_SESSION'] ) { handleCheat('Exp_Session'); } $session = md5($GLOBALS['RANDOM'] . $_SERVER['REMOTE_ADDR'] . $_REQUEST['time'] . $_REQUEST['id']); if( $session != $_REQUEST['ses'] ) { handleCheat('Bad_Session'); } connectDB(); $result = mysql_query("SELECT * FROM a_Sessions WHERE Session='{$_REQUEST['ses']}'"); if( mysql_num_rows($result) == 0 ) { handleCheat('Bad_Session'); } else { mysql_query("DELETE FROM a_Sessions WHERE Session='{$_REQUEST['ses']}'"); } } // if using banned IPs, check banned IP list if( $GLOBALS['USE_H_BANNED_IPS'] ) { checkBannedIP(); } // if using IP log, check for existing IP if( $GLOBALS['USE_H_TRACK_IPS'] ) { checkExistingIP(); } if( $GLOBALS['USE_H_COOKIES'] ) { setcookie("hit_{$_REQUEST['id']}", $time, $time + $GLOBALS['HIT_COOKIE']); } connectDB(); mysql_query("UPDATE a_Hits SET Current_In=Current_In+1, Total_In=Total_In+1 WHERE Username='{$_REQUEST['id']}'"); if( $GLOBALS['USE_FORWARD_CAT'] ) { $GLOBALS['FORWARD_URL'] = getForward(); } closeDB(); header("Location: {$GLOBALS['FORWARD_URL']}"); } function displayGateway() { $time = NULL; $session = createSession($time); // Set cookie so only cookie enabled browsers can send hits if( $GLOBALS['USE_H_REQ_COOKIE'] ) { setcookie("gateway_{$_REQUEST['id']}", (int)$time, (int)$time + $GLOBALS['HIT_COOKIE']); } ?> Enter

Enter This Site