opensidex("Radijas","on"); $station_name = "Radijas"; $refresh = "0"; // Page refresh time in seconds. Put 0 for no refresh $timeout = "5"; // Number of seconds before connecton times out - a higher value will slow the page down if any servers are offline // Note: dont include http:// // Main server: adresas kuriame laikai savo radija $ip[1] = "185.34.52.125"; $port[1] = "8000"; $servers = count($ip); ?> Serveris I?JUNGTAS!"; $error[$i] = "1"; } else { fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $info = str_replace('', "", $info); $info = str_replace('', "", $info); $stats = explode(',', $info); if (empty($stats[1]) ) { $listeners[$i] = "0"; $msg[$i] = "Netransliuojama!"; $error[$i] = "1"; } else { if ($stats[1] == "1") { $song[$i] = $stats[6]; $listeners[$i] = $stats[0]; $max[$i] = $stats[3]; $bitrate[$i] = $stats[5]; $peak[$i] = $stats[2]; if ($stats[0] == $max[$i]) { $msg[$i] .= ""; } else { echo "
DJ
"; echo "\n"; echo "Eteryje: DJ"; } $msg[$i] .= "Stotis transliuoja Mono
Drauge klausosi $listeners[$i] ?moniø. "; if ($stats[0] == $max[$i]) { $msg[$i] .= "
"; } $msg[$i] .= "\n

Daugiausia klausytojø- $peak[$i]"; } else { $listeners[$i] = "0"; $msg[$i] = " Stotis I?JUNGTA!"; $error[$i] = "1"; } } } $i++; } $total_listeners = array_sum($listeners) ; print "

\n
\n Unikaliø klausytojø - $total_listeners \n
\n
\n
\n
\n

Dabar groja: $song[1]

\n \n\n
\n
"; $i = "1"; while($i<=$servers) { print "

\n"; if ($max[$i] > 0) { $percentage = round(($listeners[$i] / $max[$i] * 100)); $timesby = (300 / $max[$i]); $barlength = round(($listeners[$i] * "$timesby")); } if ($error[$i] != "1") { ?> Serverio naudojimas- %

http://triumas.xz.lt/infusions/Eterio_info_panel/bar.gif" width="" height="15" alt="">
0% 100%
Statusas: $msg[$i]

\n
\n
\n"; $i++; } print "
\n"; ?>