Parašė Arvydas· 2009 Spa. 24 11:10:20
#1
tai va tokia problema turiu susikodavęs panelę tai yra
www.gtas.lt/panele/eteris3.php
ir aš ją noriu uždėti ant tokio img:
duodu kodą panelės kodą:
<?php
error_reporting(0);
$scdef = "Atsiprasome, Siuo metu serveris yra isjungtas."; // Þinutë, kuri bus matoma serveriui bûnant offline.
$scip = "aipassafasf.lt"; // Shoutcast IP
$scport = "8000"; // Shoutcast PORT
$scpass = "hhafdhdfhfadhkj;aa"; // Shoutcast SLAPTAÞODIS
error_reporting(0);
$scsuccs = NULL;
$page = NULL;
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
echo''.$scdef.' ';
}
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);
}
######################################################################################################################
/////////////////////////konfiguracija 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//define xml elements
$loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "AIM", "ICQ");
$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] == "ICQ") || ($loop[$y] == "AIM"))
$$scphp = urldecode($$scphp);
// uncomment the next line to see all variables
// echo'$'.$scphp.' = '.$$scphp.'<br>';
$y++;
}
//end intro xml elements
######################################################################################################################
######################################################################################################################
/////////////////////////konfiguracija 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]);
$daina = str_replace('_',' ',substr ($song[0],0,90));
$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) {
default: $aimlogo = "$aim";
}
$_SESSION['dj'] = $dj;
echo'<tr><td width=100% align=center><b>Eteryje:</b><font size="2" face="Trebuchet MS" color="#333333">'.$aimlogo.'</font></td>';
echo'<br><tr><td width=100% align=center><b>Laida:</b><font size="2" face="Trebuchet MS" color="#333333">'.$icq.'</font><br></td>';
echo'<tr><td width=100% align=center><b>Daina:</b><font size="2" face="Trebuchet MS" color="#333333"><marquee>'.$daina.'</marquee></font></td>';
echo'</a>
</td></tr></table>
';
}
if($streamstatus == "0")
{
echo'<font size="2" face="tahoma" color="#6C6D7B">Techniniai nesklandumai!! .</font>';
}
echo "";
?>
prašau padėkite
Parašė iStyle· 2009 Spa. 24 11:10:32
#5
_BeeT parašė:
Galiu padaryti už kelis litukus, parašyk į skype: beet.php
Neužpiskit manęs su savo litukais.. Gi čia oras padaryt :D Čia pagalbos support,o ne koks uždarbis.lt