Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Radijos Panele

Parašė robert· 2009 Kov. 21 10:03:16
#5

   
openside("radijos panele");
?>
<?
//Configuration:
$server2 = "78.62.28.7";  //IP ADRESASS
$server2port = "8000";     //PORTAS
$server2pass = "pass";    //SLAPTAŽODIS

$dateix = fsockopen("$server2", $server2port, &$errno, &$errstr);
if( !$dateix )
{
echo "<font face='Verdana' size='2' color='black'><b>Išjungtas<b/></font><br>";
fclose($dateix);
}
else
{
fputs($dateix,"GET /admin.cgi?pass=$server2pass&mode=viewxml HTTP/1.0\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT;)\r\n\r\n");
while (!(feof($dateix)))
{
$zeilex .= fgets($dateix, 4096);
}
fclose($dateix);
}
$tmpx = explode("<CURRENTLISTENERS>", $zeilex);
$tmpx = explode("</CURRENTLISTENERS>", $tmpx[1]);
$server2lauscher = $tmpx[0];
$pl2 = " ";
$tmpx = explode("<SERVERGENRE>", $tmpx[1]);
$tmpx = explode("</SERVERGENRE>", $tmpx[1]);
$tmp2x = explode("+", $tmpx[0]);
$nick2 = $tmp2x[0];

if(count($tmp2x) == 2)
$pl2 = $tmp2x[1];

$tmpx = explode("<SERVERTITLE>", $tmpx[1]);
$tmpx = explode("</SERVERTITLE>", $tmpx[1]);
$server2title = $tmpx[0];
$tmpx = explode("<SONGTITLE>", $tmpx[1]);
$tmpx = explode("</SONGTITLE>", $tmpx[1]);
$song2title = $tmpx[0];
$tmpx = explode("<STREAMSTATUS>", $tmpx[1]);
$tmpx = explode("</STREAMSTATUS>", $tmpx[1]);
$stream2status = $tmpx[0];

if ($stream2status == "1")
{
echo "<center><img src='/komanda/$nick2.jpg' border='1' alt='Foto'/></a><br/></center> </a>";

if ($pl2 =="")
{
echo "";
}
else
{
echo "<a href=\"";
echo "$pl2";
echo "\" target=\"_blank\"></a>";
}

echo "<font face='Verdana' size='2'><center><b>Dabar groja:</b></center><br><center>
<marquee Behavior='scroll' Direction='left' ScrollDelay='100' width='100%' onmouseover='this.stop()' onmouseout='this.start()'>
<span>$song2title </span>
</marquee></center></font><br>";
echo "<font face='Verdana' size='2'><b><center>Klausytojų:</b> $server2lauscher</center><br><center>
<a target='_blank'href='http://$server2:$server2port/listen.pls'><img src='http://img463.imageshack.us/img463/2893/winampasok3.png' border='0'></a></center>";

}
//Offair? Dann hier das:
else
{
echo "<font face='Verdana' size='2' color='grey'><b>Offair</b></font>";
}
?>
<?
closeside();