// Flister
header('Content-Type: text/html; charset=ISO-8859-2');
include('core/config.php');
$file = trim($_GET['file']);
$file_db = explode(".", $file);
$filename_db = explode("/", $file);
$filename = str_replace(" ", "_", $filename_db[count($filename_db)-1]);
if(!in_array($file_db[count($file_db)-1], $no_ex) and !in_array($filename_db[count($filename_db)-1], $default_no_list) and !in_array($file, $no_list)){
if(file_exists($file)){
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$filename);
readfile($file);
}else{
include('core/nem_letezo_fajl.php');
exit;
}
}else{
include('core/nem_letoltheto.php');
exit;
}
?>