blob: ab93cce2ec92edf47695eb65133bc35ec9c00d26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
//set headers to mp3
$dir = $_GET['dir'];
$file = $_GET['file'];
header("Content-Transfer-Encoding: binary");
header("Content-Type: audio/mp3");
header('Content-length: ' . filesize($dir.$file));
header('Content-Disposition: attachment; filename="track.mp3"');
header('X-Pad: avoid browser bug');
Header('Cache-Control: no-cache');
readfile($dir.$file);
$URL="index.php?action=media&dir=$dir";
header ("Location: $URL");
?>
|