Rev | Line | |
---|
[1] | 1 | <?php |
---|
| 2 | |
---|
| 3 | function e_m3u($env) |
---|
| 4 | { if(($url = $env->data->inc_download_compteur($_GET[$env->param("download")])) !== false) |
---|
| 5 | { $playlist = |
---|
| 6 | "#EXTM3U\n" |
---|
| 7 | ."#EXTINF:-1,playlist.mp3\n" |
---|
| 8 | .$url."\n"; |
---|
| 9 | header("Content-type: audio/x-mpegurl"); |
---|
| 10 | header('Content-Disposition: inline; filename=playlist.m3u'); |
---|
| 11 | header("Content-Length: ".strlen($playlist)); |
---|
| 12 | echo $playlist; |
---|
| 13 | } |
---|
| 14 | else echo "Erreur lors de l'accès au download"; |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.