witam bardzo serdecznie mam problem z wyswietlaniem statystyk shoutcast w pewnym themie

Link do strony to http://mma-polska... (tam gdzie pisze "Radio Oaza Radio Oaza!" powinny wyswietlac sie statystyki a ich nie ma)

posiadam 2 pliki. plik theme ktory includuje plik eteris.php

a zawartosc pliku eteris.php to

Kod
<script type="text/javascript" src="jquery-1.2.6.min.js"></script>

<script type="text/javascript">

/***
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
***/

function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

</script>







<style type="text/css">

/*** set the width and height to match your images **/

#slideshow {
    position:relative;
    height:150px;
}

#slideshow IMG {
    position:absolute;
    top:0;
    left:0;
    z-index:8;
    opacity:0.0;
}

#slideshow IMG.active {
    z-index:10;
    opacity:1.0;
}

#slideshow IMG.last-active {
    z-index:9;
}

</style>



<?php

error_reporting(0);
$scdef = "Radio Oaza"; // Default station name to display when server or stream is down
$scip = "sc.ipip.cz"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "8012"; // port of shoutcast server
$scpass = "xrsl483"; // password to shoutcast server
//End configuration
error_reporting(0);
$scsuccs = NULL;
$page = NULL;
include('config_radio.php'); //you may edit this path to fit your server environment otherwise leave it alone
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
echo''.$scdef.' Radio Oaza!';
}
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);
}
################################################################################
######################################
/////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//define xml elements
$loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "AIM");
$y=0;
while (isset($loop[$y])) {
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if (($loop[$y] == "SERVERGENRE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "SONGTITLE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "currentlisteners"))
$$scphp = urldecode($$scphp);

// uncomment the next line to see all variables
// echo'$'.$scphp.' = '.$$scphp.'<br>';
$y++;
}
//end intro xml elements
################################################################################
######################################
################################################################################
######################################
/////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//get song info and history
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);
$r=1;
while (isset($songatime[$r])) {
$t=$r-1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$song[$t] = urldecode($song[$t]);
$dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
$dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$r++;
}
$daina = str_replace('_',' ',substr ($song[0],0,90));
//end song info

fclose($scfp);
}

//display stats
if($streamstatus == "1"){
switch ($aim) {
case 'Serveris': $aimlogo = "<img src='http://mma-polska.eu/themes/pliusoradijas/images/djft.png' class='djimg' alt='' width='129' align='middle' height='127' border='0' />"; break;
default: $aimlogo = "dj";
}
$_SESSION['djus'] = $aim;
echo'









<table width="819" height="189" border="0" cellpadding="0" cellspacing="0" background="http://mma-polska.eu/themes/pliusoradijas/images/eteris.png">
  <tr>
    <td valign="middle" height="39"><a class="menujuosta" href="/index.php">pagrindinis</a><a class="menujuosta" href="/viewpage.php?page_id=2">apie mus</a><a class="menujuosta" href="/viewpage.php?page_id=3">programa</a><a class="menujuosta" href="/viewpage.php?page_id=1">kolektyvas</a><a class="menujuosta" href="/infusions/song_charts/charts.php">top20</a><a class="menujuosta" href="/contact.php">kontaktai</a>
   </td>
    <td width="356" rowspan="2"><div id="slideshow">











   <img src="http://mma-polska.eu/themes/pliusoradijas/slideshow/image1.jpg" rel="&lt;h3&gt;Step up 3&lt;/h3&gt;Jaunam gatvës đokëjui Lukui gresia benamio likimas. Jei neras kokios nors iđeities, já netrukus iđmes..." alt="Slideshow Image 1" class="active" /> <img src="http://mma-polska.eu/themes/pliusoradijas/slideshow/image2.jpg" alt="Slideshow Image 2" /> <img src="http://mma-polska.eu/themes/pliusoradijas/slideshow/image1.jpg" alt="Slideshow Image 3" /> <img src="http://mma-polska.eu/themes/pliusoradijas/slideshow/image2.jpg" alt="Slideshow Image 4" /> <img src="http://mma-polska.eu/themes/pliusoradijas/slideshow/image1.jpg" alt="Slideshow Image 5" /></div></td>
  </tr>
  <tr>
    <td width="463"><table height="130" width="458" border="0" cellspacing="0" cellpadding="0">

      <tr>
        <td width="129" height="135" rowspan="3"><div align="center">'.$aimlogo.'</div></td>
        <td width="118" height="42">&nbsp;</td>
        <td width="211"><span class="eteryje">'.$aim.'</span></td>
      </tr>
      <tr>
        <td height="28" colspan="2"><table width="272" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><div id="eteris" align="center"><span class="muzika"><marquee scrolldelay="25">'.$daina.'</marquee></span></div></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="57" colspan="2"><table width="320" height="49" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="10">&nbsp;</td>
            <td width="91"><center><a class="rasom" href="#">Parašyk žinutę<br>į eterį</a></center></span></td>
            <td width="10">&nbsp;</td>
            <td width="96" align="center" valign="middle"><div class="klausykmusu" align="center"><span class="klausyk">Klausyk mūsų</span></div></td>
            <td width="113"><a href="http://klausyk.dimetil.lt:8002/listen.pls"><img class="djimg" src="http://mma-polska.eu/themes/pliusoradijas/images/winamp.png" border="0" align="middle" /></a> <a href="http://klausyk.dimetil.lt:8002/listen.pls"><img class="djimg" src="http://mma-polska.eu/themes/pliusoradijas/images/media.png" border="0" align="middle" /></a> <a href="http://klausyk.dimetil.lt:8002/listen.pls"><img class="djimg" src="http://mma-polska.eu/themes/pliusoradijas/images/web.png" border="0" align="middle" /></a></td>
          </tr>
        </table></td>
      </tr>
      
      <tr>
        <td colspan="3">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>

';

}
if($streamstatus == "0")
{
echo'<font size="2" face="tahoma" color="#6C6D7B">Điuo metu radija yra iđjungta.</font>';


}

?>