include("Shoutcast/config.php");
function import($file) {
ob_start();
require $file;
return ob_get_clean();
}
function genAjax($key,$responsetime){
$ret = '';
$ret .= '';
$ret .= '';
return $ret;
}
function historyAjax($key,$responsetime){
$songno = substr($key,7,2);
$ret = '';
$ret .= '';
$ret .= '';
return $ret;
}
$mmplayer = "Shoutcast/".$config['ip'].":".$config['port'];
$headinjection = '
';
$playercode = '
';
$html = import("Shoutcast/template.html");
$html = str_replace("",$headinjection."",$html);
$html = str_replace("{{player}}",$playercode,$html);
$html = str_replace("{{songtitle}}",genAjax("songtitle",$config['refreshtime']),$html);
$html = str_replace("{{servertitle}}",genAjax("servertitle",$config['refreshtime']),$html);
$html = str_replace("{{serverurl}}",genAjax("serverurl",$config['refreshtime']),$html);
$html = str_replace("{{servergenre}}",genAjax("servergenre",$config['refreshtime']),$html);
$html = str_replace("{{currentlisteners}}",genAjax("currentlisteners",$config['refreshtime']),$html);
$html = str_replace("{{peaklisteners}}",genAjax("peaklisteners",$config['refreshtime']),$html);
$html = str_replace("{{maxlisteners}}",genAjax("maxlisteners",$config['refreshtime']),$html);
$html = str_replace("{{songurl}}",genAjax("songurl",$config['refreshtime']),$html);
$html = str_replace("{{bitrate}}",genAjax("bitrate",$config['refreshtime']),$html);
$html = str_replace("{{averagetime}}",genAjax("averagetime",$config['refreshtime']),$html);
$html = str_replace("{{history0}}",historyAjax("history0",$config['refreshtime']),$html);
$html = str_replace("{{history1}}",historyAjax("history1",$config['refreshtime']),$html);
$html = str_replace("{{history2}}",historyAjax("history2",$config['refreshtime']),$html);
$html = str_replace("{{history3}}",historyAjax("history3",$config['refreshtime']),$html);
$html = str_replace("{{history4}}",historyAjax("history4",$config['refreshtime']),$html);
$html = str_replace("{{history5}}",historyAjax("history5",$config['refreshtime']),$html);
$html = str_replace("{{history6}}",historyAjax("history6",$config['refreshtime']),$html);
$html = str_replace("{{history7}}",historyAjax("history7",$config['refreshtime']),$html);
$html = str_replace("{{history8}}",historyAjax("history8",$config['refreshtime']),$html);
$html = str_replace("{{history9}}",historyAjax("history9",$config['refreshtime']),$html);
$html = str_replace("{{history10}}",historyAjax("history10",$config['refreshtime']),$html);
echo $html;
?>
Or if you prefer..
Click here to listen using Winamp
Check out what songs are in the playlist..
Click here to the see the up-to-date playlist |