@opentable("<center>Dabar laida</center>");
?>
<?php
$scip = "ip";
$scport = "port";
$scpass = "pass";
$scsuccs = NULL;
$page = NULL;
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if ($scsuccs != 1) {
fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
$loop = array("ICQ");
$y=0;
while (isset($loop[$y])) {
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
$$scphp = urldecode($$scphp);
$y++;
}
$r=1;
fclose($scfp);
}
if($icq == "N/A"){
echo "<center><img src='http://www.clubhitfm.lt/images/laidos/Laida_nevyksta.jpg'><br><br>Eteryje Laida: Laida nevyksta</b>";
} else {
echo "<center><img src='http://www.clubhitfm.lt/images/laidos/$icq.jpg'><br><br><span style='color:white'>Eteryje Laida: </span><b><span style='color:white'>$icq</span></b>";
}
?>
<?
@closetable();