'; if (($_GET['t']) == "11") { echo ''; } elseif (($_GET['t']) == "14") { echo ''; } elseif (($_GET['t']) == "18") { echo ''; } } else die('Error: Missing parameters'); function ConvertSeconds($seconds) { $tmpseconds = substr("00".$seconds % 60, -2); if ($seconds > 59) { if ($seconds > 3599) { $tmphours = substr("0".intval($seconds / 3600), -2); $tmpminutes = substr("0".intval($seconds / 60 - (60 * $tmphours)), -2); return ($tmphours.":".$tmpminutes.":".$tmpseconds); } else { return ("00:".substr("0".intval($seconds / 60), -2).":".$tmpseconds); } } else { return ("00:00:".$tmpseconds); } } $shoutcast = new ShoutCast(); $shoutcast->host = "localhost"; $shoutcast->port = 8000; $shoutcast->passwd = ""; if ($shoutcast->openstats()) { if ($shoutcast->GetStreamStatus()) { echo "RMRK Radio is up! (Current listeners: ".$shoutcast->GetCurrentListenersCount().", peak: ".$shoutcast->GetPeakListenersCount().")

\"Play   \"Play   \"Get
"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "
Current Song: ".$shoutcast->GetCurrentSongTitle()."
BitRate: ".$shoutcast->GetBitRate()."
 
Average listen time: ".ConvertSeconds($shoutcast->GetAverageListenTime())."

"; echo "Song history;
\n"; $history = $shoutcast->GetSongHistory(); if (is_array($history)) { for ($i=0;$i\n"; } } else { echo "No song history available.."; } echo "

"; echo ""; $listeners = $shoutcast->GetListeners(); if (is_array($listeners)) { } } else { echo "There isn't any broadcast available right now, sorry! =( "; } } else { echo "There isn't any broadcast available right now, sorry! =("; } ?>