require("../inc/apodhead.php");
$st=1;
if(isset($_GET['st']))$st=$_GET['st'];
if(isset($_GET['cat_id'])) {
if($_GET['sort']=='r')$sort='r';
if(file_exists("inc_display/".$_GET['cat_id'].$sort."-".$st.".inc")){
include("inc_display/".$_GET['cat_id'].$sort."-".$st.".inc");
if($st==1){
require("../inc/db.php");
$db = mysql_connect($dbserver,$dbuser,$dbpw);
mysql_select_db($dbname,$db);
mysql_query("update ap_game_cat set cat_cnt=cat_cnt+1,cat_ip='".$_SERVER['REMOTE_ADDR']."' where cat_id=".$_GET['cat_id']." and cat_ip<>'".$_SERVER['REMOTE_ADDR']."'",$db);
mysql_close($db);
}
}
else
print("
Category Not Found
Invalid Category ID