mirror of
https://github.com/Pecusx/piradio-mini.git
synced 2026-05-20 22:33:44 +02:00
initial commit
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
$line1 = file_get_contents( "/tmp/radiod/line1.txt" );
|
||||
$czyplayer = strpos($line1, "*");
|
||||
if ($czyplayer != false) {
|
||||
list($realHost,)=explode(':',$_SERVER['HTTP_HOST']);
|
||||
echo '<audio controls><source src="http://';
|
||||
echo $realHost;
|
||||
echo ':8001/mpd" type="audio/mp3">Your browser does not support the audio element.</audio>';
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user