Файл: selemege.tk/plugins/notes/load.php
Строк: 44
<?
include_once '../../sys/inc/start.php';
include_once '../../sys/inc/sess.php';
include_once '../../sys/inc/home.php';
include_once '../../sys/inc/settings.php';
include_once '../../sys/inc/db_connect.php';
include_once '../../sys/inc/ipua.php';
include_once '../../sys/inc/fnc.php';
include_once '../../sys/inc/user.php';
include_once '../../sys/inc/downloadfile.php';
if (isset($_GET['id']) && mysql_result(mysql_query("SELECT COUNT(*) FROM `notes_files` WHERE `id` = '".intval($_GET['id'])."'"),0)==1 && (is_file(H.'sys/notes/files/'.intval($_GET['id']).'.dat')))
{
$file=mysql_fetch_assoc(mysql_query("SELECT * FROM `notes_files` WHERE `id` = '".intval($_GET['id'])."' LIMIT 1"));
DownloadFile(H.'sys/notes/files/'.$file['id'].'.dat', $file['name'].'.'.$file['ras'],ras_to_mime($file['ras']));
exit;
}
else
{
header("Location:/index.php");
exit;
}
?>