Размер файла: 609B
<?
define('SECURED', true);
include 'ini.php';
include 'inc/func_validate.php';
//echo $config[url];
session_name('sid');
session_start();
define('SID', session_name().'='.session_id());
$id=intval($_GET['ID']);
$file=mysql_fetch_array(mysql_query("select * from `files` where `id`='$id';"));
if(mysql_affected_rows()==0) exit;
mysql_query("UPDATE `games` SET `downloads`=`downloads`+1 WHERE `id` = '$file[game_id]';");
if($_GET['jad'])
{
header("Location: http://$config[url]/$file[jad_path]");
} else
{
header("Location: http://$config[url]/$file[jar_path]");
}
mysql_close();
?>