From a3656f432ba69d8a17266d0c86681da8e3be4a88 Mon Sep 17 00:00:00 2001 From: Daniel Schubert Date: Thu, 2 Feb 2017 17:39:50 +0100 Subject: [PATCH] =?UTF-8?q?OSX=20Firefox=20Spezial=20"return=20true"=20ein?= =?UTF-8?q?gef=C3=BCgt;=20typo=20fixed;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VinylDownload.class.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/VinylDownload.class.php b/VinylDownload.class.php index 3698292..14ff574 100644 --- a/VinylDownload.class.php +++ b/VinylDownload.class.php @@ -6,8 +6,8 @@ class VinylDownload { public $database, $file, $code; public function __construct() { - @set_time_limit(0); - ini_set('memory_limit', '512M'); +// @set_time_limit(0); +// ini_set('memory_limit', '512M'); } private function db_connect(){ @@ -61,15 +61,16 @@ class VinylDownload {

- - - + + +

'; @@ -85,11 +86,11 @@ class VinylDownload { switch ($format) { case 'mp3': $file = $this->mp3_file; - $filename = 'Rainer_von_Vielen-Überall_Chaos_2017-MP3.zip'; + $filename = "Rainer_von_Vielen-Überall_Chaos_2017-MP3.zip"; break; case 'wav': $file = $this->wav_file; - $filename = 'Rainer_von_Vielen-Überall_Chaos_2017-WAV.zip'; + $filename = "Rainer_von_Vielen-Überall_Chaos_2017-WAV.zip"; break; } @@ -107,10 +108,8 @@ class VinylDownload { ob_start(); - $mm_type='application/zip'; - - header("Content-Type: ".$mm_type); - header('Content-Disposition: attachment; filename="'.$filename.'"'); + header("Content-Type: application/octet-stream"); + header("Content-Disposition: attachment; filename=".$filename.""); header("Content-Description: File Transfer"); header("Content-Length: " .(string)(filesize($file)) ); header("Cache-Control: public, must-revalidate");