if( !isset($_GET['id']) ){
include("../inc/apodhead.php");
print("
Game Not Found
Invalid Game ID");
print('
');
include("../inc/apodfoot2.php");
exit;
}
$id=$_GET['id'];
$lk=$_GET['l'];
require("../inc/db.php");
require("../inc/keycode.php");
$db = mysql_connect($dbserver,$dbuser,$dbpw);
mysql_select_db($dbname,$db);
$gbMemID=key_decode_id($_COOKIE['ap4x']);
$gbMemName=key_decode_name($_COOKIE['ap4x']);
//-- GET GAME NAME ----------------------------
$url="";
if( ($result = mysql_query("select title,url,localname,islocal from ap_game_data where data_id=".$id,$db)) ){
if( ($rs= mysql_fetch_array($result)) ){
$url=$rs['url'];
$title=$rs['title'];
if($rs['islocal']!=0)$localname=$rs['localname'];
}
mysql_free_result($result);
}
if($url!=""){
mysql_query("update ap_game_data set hit_cnt=hit_cnt+1,last_dt=now(),last_ip='".$_SERVER['REMOTE_ADDR']."' where data_id=".$id." and last_ip<>'".$_SERVER['REMOTE_ADDR']."'",$db);
if($gbMemID!=0)mysql_query("update ap_game_fav set cnt=cnt+1,last_dt=now() where data_id=".$id." and member_id=".$gbMemID,$db);
}
mysql_close($db);
if($url==""){
include("../inc/apodhead.php");
print("
Game Not Found
Invalid Game ID");
print('');
include("../inc/apodfoot2.php");
exit;
}
if(isset($localname)){
print("");
}
else{
print('ArcadePod.Com'.
''.
''.
''.
''.
"".
'');
}
?>