forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.7 KiB
54 lines
1.7 KiB
2 years ago
|
<?
|
||
|
$dir = $_GET['caminho'];
|
||
|
$escreve = fopen('play.m3u', 'w');
|
||
|
$tipo = $_GET["tipo"];
|
||
|
$nome = $_GET["nome"];
|
||
|
$arquivo = $_GET['arquivo'];
|
||
|
|
||
|
if ($tipo == 'geral') {
|
||
|
foreach (new DirectoryIterator($dir) as $file) {
|
||
|
if (substr($file, 0, 1) != '.') {
|
||
|
fwrite($escreve, $url_musicas . $nome . '/' . $file . chr(13) . chr(10));
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
fwrite($escreve, $url_musicas . str_replace('../', '', $dir) . '/' . $arquivo . chr(13) . chr(10));
|
||
|
}
|
||
|
fclose($escreve);
|
||
|
?>
|
||
|
|
||
|
<!This code for IE><style type="text/css">
|
||
|
<!--
|
||
|
body {
|
||
|
margin-left: 0px;
|
||
|
margin-top: 0px;
|
||
|
margin-right: 0px;
|
||
|
margin-bottom: 0px;
|
||
|
}
|
||
|
-->
|
||
|
</style>
|
||
|
<EMBED SRC="play.m3u" HIDDEN="true" AUTOSTART="true" width="128" height="128">
|
||
|
<!This code for Netscape>
|
||
|
<OBJECT ID="MediaPlayer"
|
||
|
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
|
||
|
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
|
||
|
standby="Loading Microsoft Windows Media Player components..."
|
||
|
TYPE="application/x-oleobject" width="357" height="65">
|
||
|
|
||
|
<PARAM NAME="FileName" VALUE="play.m3u">
|
||
|
<PARAM NAME="AnimationatStart" VALUE="false">
|
||
|
<PARAM NAME="TransparentatStart" VALUE="true">
|
||
|
<PARAM NAME="AutoStart" VALUE="true">
|
||
|
<PARAM NAME="ShowControls" VALUE="1">
|
||
|
|
||
|
<Embed TYPE="application/x-mplayer2"
|
||
|
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
|
||
|
SRC="play.m3u"
|
||
|
Name=MediaPlayer
|
||
|
ShowControls=0
|
||
|
Width=2
|
||
|
Height=2
|
||
|
</embed>
|
||
|
</OBJECT>
|
||
|
|