Parašė bicas· 2008 Gru. 30 23:12:39
#1
Wazap. Norejau paklaust gal kas mokat ideti radijo panel i theme.php faila. Tiksliai tarp sito:
<tr>
<td class='h_eteris'></td>
</tr>
</table>
</td>
</tr>\n";
Panel code:
openside("radijos panele");
?>
<?
//Configuration:
$server2 = "bye"; //IP des Shoutcast Servers
$server2port = "nesakysiu"; //Port des Shoutcast Server - Bsp.: 8000
$server2pass = "passwordas :)"; //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")
{
//OnAir? Dann das hier:
echo "<center><img src='/komanda/$nick2.jpg' border='1' alt='Foto'/></a><br/></center> </a>";
//Welcher Moderator?
//Playlist vorhanden?
if ($pl2 =="")
{
echo "";
}
else
{
echo "<a href=\"";
echo "$pl2";
echo "\" target=\"_blank\"></a>";
}
//Was wird gespielt?
echo "<font face='Verdana' size='2'><center><b>Dabar eteryje 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://Motoder.Ax.LT:8000/listen.pls'><img src='http://img463.imageshack.us/img463/2893/winampasok3.png' border='0' title='M-FM Radijas' alt='M-FM Radijas'></a></center>";
}
//Offair? Dann hier das:
else
{
echo "<font face='Verdana' size='2' color='grey'><b>Offair</b></font>";
}
?>
<?
closeside();
Foto paveiksliuko, i kuri noriu iterpti ta panele: Sito paveiksliuko theme.php kodas nurodytas paciam virsuje!
LABAI ACIU!!! :)