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

Parašė Soo-2· 2009 Vas. 1 14:02:42
#1

Kas galite padeti i radio panele pajungti kad rodytu DJ'asu foto. niekas nesigauna man, id4t idedu bet nerodo foto. :| galite kas pagelbet?

Radio paneles kodas:

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


$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);
}




$y=0;
while($y!=''){
$pageed = ereg_replace(".*<$y>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$y>.*", "", $pageed);
if($y==$SERVERGENRE || $y==$SERVERTITLE || $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;
$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);
}

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>
";



?>





DJ'asu foto kodas:

if($servertitle=="DJ AKER") {
$djphoto='djaker.jpg';
global $djphoto;
} elseif($servertitle=="DJ_wydmys") {
$djphoto='DJwydmys.jpg';
global $djphoto;
}
echo "<img src='".IMAGES.$djphoto."' alt='".$servertitle."'><br/>Eteryje: ".$servertitle."<br/>";



Redagavo Soo-2· 2009 Vas. 1 15:02:18

Parašė Soo-2· 2009 Vas. 1 18:02:01
#2

kas cia gali buti blogai? Man nerodo DJ'aus kuris darab eteryje foto. Bet ir jokio error. Kas pades?

if($servertitle=="AutoDJ") {
$djphoto='autodj.png';
global $djphoto;
} elseif($servertitle=="DJ_wydmys") {
$djphoto='DJwydmys.jpg';
global $djphoto;
}

echo "<img src='imges/".$djphoto."' alt='".$servertitle."'><br/> ".$servertitle."<br/>";




Redagavo Soo-2· 2009 Vas. 1 18:02:30

Parašė MAnjack· 2009 Vas. 1 19:02:39
#3

Gal negauda duomenų iš serverio.

Parašė mNm.· 2009 Vas. 1 19:02:31
#4

if($servertitle=="AutoDJ") {
$djphoto='autodj.png';
global $djphoto;
} elseif($servertitle=="DJ_wydmys") {
$djphoto='DJwydmys.jpg';
global $djphoto;
}

echo "<img src='imges/".$djphoto."' alt='".$servertitle."'><br/> ".$servertitle."<br/>";





raidė nepraleista?

Redagavo mNm.· 2009 Vas. 1 19:02:11

Parašė Soo-2· 2009 Vas. 1 19:02:46
#5

visvien nerodo. kas galit gera koda duoti? :|

Redagavo Soo-2· 2009 Vas. 1 19:02:43

Parašė robert· 2009 Vas. 1 19:02:15
#6

if($servertitle=="AutoDJ") {
$djphoto='autodj.png';
global $djphoto;
} elseif($servertitle=="DJ_wydmys") {
$djphoto='DJwydmys.jpg';
global $djphoto;
}

echo "<img src='".IMAGES."".$djphoto."' alt='".$servertitle."'><br/> ".$servertitle."<br/>";




Bandyk taip

Parašė Soo-2· 2009 Vas. 1 19:02:25
#7

Nerodo. Gal kas turite tikrai veikencia panele radio? Joje turi buti:
1. DJ'aus paveikliukas kuris keiciasi kai pasikeicia ir DJ'us.
2. Koks DJ'us eteryje.
3. Grojama daina.

Redagavo Soo-2· 2009 Vas. 10 22:02:45