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

Parašė Gasper· 2007 Lie. 19 21:07:00
#6

tu dar viena problema cia tokia panele puslapio
MiniNavigacija|Paveiksliukas|Navigacija
tai norecaiu vietoj MiniNavigacija ideti radio panele bet nesigaun :/

<?php

echo "

<table align=center border=0 cellpadding='0' cellspacing='0' width='$theme_width' style='border-right: solid # 2px;'>

<tr>

<td width=199 height=49 align=center style='border-right: solid #5c5e5d 2px;' bgcolor='#3d3f3e'><a href=".BASEDIR."index.php><img src=".THEME."nuorodos/home.jpg border=0></a><img src=".THEME."nuorodos/hr.jpg border=0><a href=".BASEDIR."search.php><img src=".THEME."nuorodos/search.jpg border=0></a><img src=".THEME."nuorodos/hr.jpg border=0><a href=".BASEDIR."contact.php><img src=".THEME."nuorodos/contact.jpg border=0></a></td>

<td width=472 height=49 bgcolor='#3d3f3e' align=left>
<td width=199 height=51 style='border-left: solid # 2px;' bgcolor='#3d3f3e' background='".THEME."images/headeris3.jpg' align=right  class='headeris5'></td>

<table align=center border=0 cellpadding='0' cellspacing='0' width='662'>
</tr>
</table>

</tr>
</table>



<table align=center border=0 cellpadding='0' cellspacing='0' width='$theme_width' bgcolor='#3d3f3e'>

<tr>

<td width=195 >

<table align=center border=0 cellpadding='0' cellspacing='0' width='195' height='194' bgcolor='#3d3f3e'>
<td background='".THEME."images/navigacija.jpg' class='nuorodos'>"; echo showsublinks("<br><img src=".THEME."images/bullet.gif border=0>",white); echo "</td>
</table>



<td width=663>

<table align=left border=0 cellpadding='0' cellspacing='0' width='460' class='headeris'>

<tr>

<td width='460' height='194' background='".THEME."images/headeris.jpg'></td>
<table align=center border=0 cellpadding='0' cellspacing='0' width='193' bgcolor='#3d3f3e'>

<tr>

<td width=150 valign=top height=150  background='".THEME."images/navigacija2.jpg' style='padding: 4px;'><br>";

if (iMEMBER) {

   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");

echo "<p><a href='http://88.198.62.46:4444/listen.pls'>
<center><img alt=Givex fm!' src='http://www.givex.xz.lt/radio/klausykgivex.jpg' border='0' width='90' height='80'></a></center>
<a href='http://88.198.62.46:4444/listen.pls'>";


} else {

   echo "<br><div align='center'>".(isset($loginerror) ? $loginerror : "")."

<p><a href='http://88.198.62.46:4444/listen.pls'>
<center><img alt=Givex fm!' src='http://www.givex.xz.lt/radio/klausykgivex.jpg' border='0' width='90' height='80'></a></center>
<a href='http://88.198.62.46:4444/listen.pls'>

</div>\n";

}

echo "</td>

</td>
</tr>
</table>

</td>

</tr>

</table>";



?>



Ten kur paryskinau turetu isideti eterio panele stai jos kodas :


error_reporting(0);
$scdef = "Serveris neveikia";               // Default station name to display when server or stream is down
$scip = "88.198.62.46"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "4444";                   // port of shoutcast server
$scpass = "svetimi321";                 // 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.'';
 }
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] == "AIM"))
   $$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 'Gasper': $aimlogo = "Gasper"; break;
 case 'Saulius': $aimlogo = "Saulius"; break;
 case 'Lukas': $aimlogo = "Lukas"; break;
 case 'Rimas': $aimlogo = "Rimas"; break;
 case 'Givexiukas': $aimlogo = "Givexiukas"; break;
 case 'Dafmenas': $aimlogo = "Dafmenas"; break;
 case 'Lukas ir Saulius': $aimlogo = "Blevyzgos"; break;
default:  $aimlogo = "Givexiukas";
}
$_SESSION['djus'] = $aim;
echo'<div align="center">
 <table cellpadding="0" cellspacing="0" width="1">
  <!-- MSTaašype="nolayout" -->
  <tr>
   <td height="36" bgcolor="">
   <p align="center">
   <a href="http://88.198.62.46:4444/listen.pls"><img border="0" src="radio/dj/'.$aimlogo.'.jpg" width="140" heigth="100"></a></td>
  </tr>
  <tr>
   <td height="17" valign="bottom" bgcolor="">
   <div align="center">
    <table cellpadding="0" cellspacing="0" width="111">
     <tr>
   <td height="17">
   <p align="center">
   <font face="Tahoma" style="font-size: 8pt" color="#000000"><b>Eteryje:</b></font>
   <font face="Tahoma" style="font-size: 8pt" color="#ff6633"><blink>'.$aim.'</blink></font></td>
  </tr>
  <tr>
   <td height="17">
   <p align="center">
   <font face="Tahoma" style="font-size: 8pt" color="#000000"><b>Groja:</b></font>
   <font face="Arial" style="font-size: 7pt" color="#ff9933">'.$daina.'</font></td>

  </tr>
  </tr>
  </table>
                 </div>
   </td>
  </tr>
  <tr>
   <td>
   </td>
  </tr>
 </table>
</div>';
}
if($streamstatus == "0")
{
echo'<font size="2" face="tahoma" color="#ff0000">Šiuo metu radija yra išjungta.</font>';
}

?>



Labai dekingas bucaiu dar karta

Redagavo ozzWANTED· 2007 Lie. 19 22:07:06