first commit
This commit is contained in:
parent
735274944f
commit
32f3e0c785
43 changed files with 10512 additions and 0 deletions
17
includes/nowLive.php
Normal file
17
includes/nowLive.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
$icecastJson = file_get_contents('http://pl4tform.org:8000/status-json.xsl');
|
||||
#echo "JSON?: $json";
|
||||
$icecastJson = json_decode($icecastJson, true);
|
||||
// echo $yummy;
|
||||
$title = $icecastJson['icestats']['source']['title'];
|
||||
// $title = str_replace("/var/www/nextcloud/data/radio_admin/files/radio_music_and_jingles/", "", $title);
|
||||
// $title = str_replace(".mp3", "", $title);
|
||||
$title = explode('/', $title);
|
||||
$title = end($title);
|
||||
$title = str_replace(".mp3", "", $title);
|
||||
$title = str_replace("_(youconvert.net)", "", $title);
|
||||
$nowLive = "<div id='nowLiveDiv' onclick='audioPlay(\"https://pl4tform.org/stream\")'><span id='nowLiveSpan'>Now live:</span> $title</div>";
|
||||
|
||||
echo "$nowLive";
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue