Liddll
31.08.2007, 13:15
suche:
header('Content-Type: '.$dl_content_type.'\'');
header('Content-disposition: '.$dl_content_disposition.'filename="'.$download_infos['datei_name'].'.'.$download_infos['datei_endung'].'"');
ersetze mit:
if ($download_infos['datei_endung'] == 'pdf') {
header('Content-type: application/pdf');
header('Content-Length: '.filesize("jgs_db_download/download-".$download_infos['zeit']."-".$download_infos['id'].".".$download_infos['datei_endung']));
header('Content-Disposition: attachment; filename="'.$download_infos['datei_name'].'.'.$download_infos['datei_endung'].'"');
readfile("jgs_db_download/download-".$download_infos['zeit']."-".$download_infos['id'].".".$download_infos['datei_endung']);
exit();
}
else
{
header('Content-Type: '.$dl_content_type.'\'');
header('Content-disposition: '.$dl_content_disposition.'filename="'.$download_infos['datei_name'].'.'.$download_infos['datei_endung'].'"');
}
header('Content-Type: '.$dl_content_type.'\'');
header('Content-disposition: '.$dl_content_disposition.'filename="'.$download_infos['datei_name'].'.'.$download_infos['datei_endung'].'"');
ersetze mit:
if ($download_infos['datei_endung'] == 'pdf') {
header('Content-type: application/pdf');
header('Content-Length: '.filesize("jgs_db_download/download-".$download_infos['zeit']."-".$download_infos['id'].".".$download_infos['datei_endung']));
header('Content-Disposition: attachment; filename="'.$download_infos['datei_name'].'.'.$download_infos['datei_endung'].'"');
readfile("jgs_db_download/download-".$download_infos['zeit']."-".$download_infos['id'].".".$download_infos['datei_endung']);
exit();
}
else
{
header('Content-Type: '.$dl_content_type.'\'');
header('Content-disposition: '.$dl_content_disposition.'filename="'.$download_infos['datei_name'].'.'.$download_infos['datei_endung'].'"');
}