Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kaip pasalinti???

Parašė Soo-2· 2009 Sau. 31 23:01:31
#1

Sveiki. Iskilo problema. Idejus radio panele man meta klaida:

Notice: Undefined offset: 3 in d:\program files\easyphp1-8\www\themes\DanceHitRadio\on_air.php on line 24

Notice: Undefined offset: 11 in d:\program files\easyphp1-8\www\themes\DanceHitRadio\on_air.php on line 46




o cia pats kodas, padekite:

<?php
global $scsuccs,$page,$SERVERGENRE,$SERVERTITLE,$SONGTITLE;
$scip="ipas";
$scport="8002";
$scpass="123456";


$scfp = fsockopen($scip, $scport);


if(!$scfp) {
$scsuccs=1;

}

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("STREAMSTATUS", "BITRATE", "CURRENTLISTENERS");
$y=0;
while($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)
$$scphp = urldecode($$scphp);

$y++;
}

$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);

$pageed = ereg_replace(".*<SERVERTITLE>", "", $page);
$pageed = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$servert = explode("<SERVERTITLE>", $pageed);




$r=1;
while($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]);

$r++;
}

fclose($scfp);
}

if($streamstatus == "1"){


echo "
<table width=100% align=center border=0 cellpadding=0 cellspacing=0>
<tr><b>
<center>
<img src='http://img140.imageshack.us/img140/3669/autodjly5.png/'>

<td><div align=center><font size=2 face=Tahoma><strong>
Eteryje: <br><font color=#f0051>$servert[0] <br><br></font>
Daina: <br><font color=#f0051>$song[0]</font></b>
<br>


</table>

";

}


?>



Redagavo Soo-2· 2009 Sau. 31 23:01:53