Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del Isistampimo

Parašė Soo-2· 2009 Vas. 3 15:02:04
#4

sis kodas rodo kiek klausytoju klauso radio ...

openside("radijos panele");
?>
<?
//Configuration:
$server2 = "jusu ip"; //IP des Shoutcast Servers
$server2port = "jusu port"; //Port des Shoutcast Server - Bsp.: 8000
$server2pass = "slaptazodi"; //Passwort des Shoutcast Servers

$dateix = fsockopen("$server2", $server2port, &$errno, &$errstr);
if( !$dateix )
{
echo "<font face='Verdana' size='2' color='black'><b>Isjunkta<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 "
<a href='http://82.135.230.57:8020/listen.pls'><center><img border='0' src='http://img520.imageshack.us/img520/3645/1590104514xc6.png/'></a>
<font face='Verdana' size='2'><b><center>Klausytoju:</b> $server2lauscher/300</center><br><center>";

}
?>
<?
closeside();



Redagavo Soo-2· 2009 Vas. 3 15:02:38