Файл: www/android/download.php
Строк: 26
<?
define('SECURED', true);
include 'ini.php';
include '../config.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_and` where `id`='$id';"));
if(mysql_affected_rows()==0) exit;
mysql_query("UPDATE `games_and` SET `downloads`=`downloads`+1 WHERE `id` = '$file[game_id]';");
if($_GET['jad'])
{
header("Location: http://gefan.ru/android/$file[jad_path]");
} else
{
if(isset($_GET['out'])) header("Location: $file[jar_path]");
else header("Location: http://gefan.ru/android/$file[jar_path]");
}
mysql_close();
?>