if (!empty ($_GET['file'])){
$req = mysql_query("SELECT `name` FROM `download` WHERE `type` = 'file' and `id` = '" . abs(intval($_GET['file'])) . "' LIMIT 1 ");
$zag = mysql_fetch_array($req);
$hdr = htmlentities($zag['name'], ENT_QUOTES, 'UTF-8');
$textl = $hdr;
}else{
$textl = 'Загрузки';
}