if( !isset($_GET['id']) ){
include("../inc/apodhead.php");
print("
Game Not Found
Invalid Game ID");
print('
');
include("../inc/apodfoot2.php");
exit;
}
$id=$_GET['id'];
require("../inc/db.php");
$db = mysql_connect($dbserver,$dbuser,$dbpw);
mysql_select_db($dbname,$db);
//-- GET GAME NAME ----------------------------
$url="";
if(isset($_GET['ux']))$url=urldecode($_GET['ux']);
else{
if( ($result = mysql_query("select url_download from ap_game_data where data_id=".$id,$db)) ){
if( ($rs= mysql_fetch_array($result)) )$url=$rs['url_download'];
mysql_free_result($result);
}
}
if($url!=""){
mysql_query("update ap_game_data set hit_null=hit_null+1,last_dt=now(),last_ip='".$_SERVER['REMOTE_ADDR']."' where data_id=".$id." and last_ip<>'".$_SERVER['REMOTE_ADDR']."'",$db);
}
mysql_close($db);
if($url==""){
include("../inc/apodhead.php");
print("
Game Not Found
Invalid Game ID");
print('');
include("../inc/apodfoot2.php");
exit;
}
print('ArcadePod.Com'.
''.
''.
"".
'');
?>