Staram się includować statystyki Kanału Disco i Kanału Club
http://discoparty.pl/joomla/templates/ja_p...datki/disco.php
http://discoparty.pl/joomla/templates/ja_p...datki/club2.php
indlucuje tak:
<table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td><?PHP include ('dodatki/disco.php');?></td> <td><?PHP include ('dodatki/club2.php');?></td> <td><embed src="http://www.discoparty.pl/theme/rsr2/reklama1.swf" quality="high" scale="noscale" wmode="transparent" bgcolor="#b6b6b6" width="144" height="189" name="partnerzy" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></td> </tr> </table>
I niestety wyświetla te same dane chodź porty i ip w disco.php i club2.php są inne
daje kod statystyk:
Club.php
<center> <? $sc[czas] = 180; $sc[host] = "s6.radiohost.pl"; $sc[port] = 8006; $sc[template] = "<b> [genre]</b>"; $sc[template3] = "<b> [dj]</b>"; $sc[template2] = "<b> [ile]</b>"; ?> <html> <head> <script> <!-- function displayWindow(url, width, height) { var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' ); } //--> </SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <META HTTP-EQUIV="Refresh" CONTENT="<?=$sc[czas]?>; URL=""> </head> <body> <font color="black" face="arail" size="2"> <? { # echo $in; // [status] $m[0]="Server is currently"; $m[1]=""; if( $tmp[1][0] == "up" ) $dat[status] = "on"; elseif( $tmp[1][0] == "down" ) $dat[status] = "off"; else $dat[status] = "err"; if($dat[status]=="on") { // [dj] $m[0]="Stream Title:"; $m[1]="Content Type:"; if( $tmp[1] ) $dat[dj] = $tmp[1]; else $dat[dj] = "err"; // [gg] $m[0]="Stream AIM:"; $m[1]="Stream IRC:"; if( $tmp[1] ) $dat[gg] = $tmp[1]; else $dat[gg] = "err"; // [genre] $m[0]="Stream Genre:"; $m[1]="Stream URL:"; if( $tmp[1] ) $dat[genre] = $tmp[1]; else $dat[genre] = "err"; // [ile] $m[0]="kbps with"; $m[1]="listeners"; if( $tmp[1] ) $dat[ile] = $tmp[1][0]; else $dat[ile] = "err"; // [max] $m[0]="kbps with"; $m[1]="listeners"; // [peak] $m[0]="Listener Peak:"; $m[1]="Average"; if( $tmp[1] ) $dat[peak] = $tmp[1]; else $dat[peak] = "err"; } } else { $dat[status]="err"; } ?> </font> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td background="templates/ja_purity/dodatki/statyclub/statystyki.png" width="352" height="160" border="0" /> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td style="padding-left:15px;"><a href="http://www.discoparty.pl/club.m3u"><img src="templates/ja_purity/dodatki/statyclub/odpal13.png" width="111" height="114" border="0" onmouseover="if(document.images) this.src='templates/ja_purity/dodatki/statyclub/odpal4.png'" onmouseout="if(document.images) this.src='templates/ja_purity/dodatki/statyclub/odpal.png'" /></a></td> <td style="padding-left:22px;"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="templates/ja_purity/dodatki/statyclub/prezenter.png" width="185" height="17" border="0" alt="Rozmiar: 4756 bajtów" /></td> </tr> <tr> <td background="templates/ja_purity/dodatki/statyclub/wpis1.png" width="185" height="33" border="0"/> <div style="color: #000000; font-family: verdana; font-size: 11px; font-weight: bold; padding-left:10px; padding-right:4px; padding-bottom:4px;"> </div> </td> </tr> <tr> <td><img src="templates/ja_purity/dodatki/statyclub/audycja.png" width="185" height="17" border="0"/></td> </tr> <tr> <td background="templates/ja_purity/dodatki/statyclub/wpis2.png" width="185" height="37" border="0"/> <div style="color: #000000; font-family: verdana; font-size: 11px; font-weight: bold; padding-left:10px; padding-right:4px; padding-bottom:2px;"> </div> </td> </tr> <tr> <td><a href="http://www.discoparty.pl/~ramcast/ramCast/show.php" rel="lyteframe" title="Progam kanal disco" rev="width: 550px; height: 500px; scrolling: yes;"><img src="templates/ja_purity/dodatki/statyclub/ramowka.png" width="84" height="19" border="0" onmouseover="if(document.images) this.src='templates/ja_purity/dodatki/statyclub/ramowka21.png'" onmouseout="if(document.images) this.src='templates/ja_purity/dodatki/statyclub/ramowka.png'" /></a><a href="http://discoparty.pl/greetCastPRO/form.php?type=link" rel="lyteframe" title="Pozdrowienia kanal disco" rev="width:200px; height: 180px; scrolling: yes;"><img src="templates/ja_purity/dodatki/statyclub/pozdrowienia2.png" width="101" height="19" border="0" onmouseover="if(document.images) this.src='templates/ja_purity/dodatki/statyclub/pozdrowienia21.png'" onmouseout="if(document.images) this.src='templates/ja_purity/dodatki/statyclub/pozdrowienia2.png'" /></a></td> </tr> </table> </td> </tr> </table> </td> </tr> </table>
f5
f5 .. nikt nie wie?
może chcecie dokladniejszego wytłumaczenia ...?