source: trunk/web/app/mods/e_m3u.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 13 years ago

import initial

File size: 474 bytes
RevLine 
[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&egrave;s au download";
15  }
16
17?>
Note: See TracBrowser for help on using the repository browser.