100) exit; if (strpos($gameFile, '<') !== false) exit; if (strpos($gameFile, ' ') !== false) exit; if (strpos($gameFile, '%3C') !== false) exit; if (strpos($gameFile, '%3E') !== false) exit; if (strpos($gameFile, '%20') !== false) exit; //$country_code='US'; $gameFilenoext=str_replace('.swf', '', $gameFile); $gameFilenoext=str_replace('.dcr', '', $gameFilenoext); $gameFilenoext=str_replace('.unity3d', '', $gameFilenoext); list($game_id, $game_name, $game_category) = mysql_fetch_array(mysql_query("SELECT idgame, name, category FROM 85play_games WHERE gameurlname = '$gameFilenoext'")); list($cat_name) = mysql_fetch_array(mysql_query("SELECT nameforurl FROM 85play_categ WHERE idcateg = $game_category")); header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.85play.com/$cat_name/$game_id/" . title_to_file($game_name) . ".html"); } ?> '; } ?> 0) { $namecattable=mysql_fetch_array($rungrab); $namecat=$namecattable[0]; $urlcat=$namecattable[1]; } else $namecat="Unique style"; ?> <? if ($start==1) echo "Direct play - ".$gameFile; else if ($start==2) echo "Play ".$gamename." ( ".$namecat." ) - Starting page"; else echo "Play ".$gamename." ( ".$namecat." )"; ?>