$text = explode("content-type:text/html", $read); $text = explode(",", $text[1]); } else { $er = "Connection Refused!"; } $czo = $text[3]; return $czo; } chan('Polska na topie I', 'sc1.readycast.org:8888', '8888', 'polska1'); chan('Polska na topie II', '89.248.166.198:8017', '8017', 'polska2'); chan('UK Charts', 'sc1.readycast.org:8026', '8026', 'ukcharts'); chan('Trance', 'sc1.readycast.org:8558', '8558', 'trance'); chan('Chillout I', 'sc1.readycast.org:8440', '8440', 'chillout'); chan('Chillout II', 'esr.rootnode.net:8021', '8021', 'chillout2'); chan('Disco Polo I', 'sc1.readycast.org:8544', '8544', 'discopolo'); chan('Disco Polo II', 'esr.rootnode.net:8019', '8019', 'discopolo2'); echo "<br>"; $chan21 = sum2('sc1.readycast.org:8888', '8888'); $chan22 = sum2('89.248.166.198:8017', '8017'); $chan23 = sum2('sc1.readycast.org:8026', '8026'); $chan24 = sum2('sc1.readycast.org:8558', '8558'); $chan25 = sum2('sc1.readycast.org:8440', '8440'); $chan26 = sum2('sc1.readycast.org:8544', '8544'); $chan27 = sum2('esr.rootnode.net:8019', '8019'); $chan28 = sum2('esr.rootnode.net:8021', '8021'); $sumsum2 = $chan21 + $chan22 + $chan23 + $chan24 + $chan25 + $chan26 + $chan27 + $chan28; echo "Total now: " . $sumsum2; echo "<br>"; $record = "record.txt"; $record2 = file_get_contents($record); if (!file_exists($record)) {
$plik = $covers . $nazwa . ".jpg"; $plik2 = $covers . $nazwa . ".gif"; $plik3 = $covers . $nazwa . ".png"; if ($nazwa) { if (file_exists($plik)) { echo "<img src='{$plik}' width='200px' height='200px'>"; } else { if (file_exists($plik2)) { echo "<img src='{$plik2}'>"; } else { if (file_exists($plik3)) { echo "<img src='{$plik3}'>"; } else { echo "<img src='vinyl.png'>\n"; } } } } /* OKLADKI end */ echo "<br><br>Listeners: {$text['0']} of {$text['3']} (max: {$text['2']})<br>Quality: {$text['5']} kbps<br><br>"; } chan('Polska na topie', 'sc1.readycast.org:8888', '8888'); winstat('sc1.readycast.org', '8888'); chan('UK Charts', 'sc1.readycast.org:8026', '8026'); winstat('sc1.readycast.org', '8026'); chan('Trance', 'sc1.readycast.org:8558', '8558'); winstat('sc1.readycast.org', '8558'); chan('Chillout', 'sc1.readycast.org:8440', '8440'); winstat('sc1.readycast.org', '8440'); chan('Disco Polo', 'sc1.readycast.org:8544', '8544'); winstat('sc1.readycast.org', '8544');
} $nazwa = str_replace("</body></html>", "", $text[6]); $nazwa2 = str_replace("</body></html>", "", $text[6]); if (strlen($nazwa) > 35) { $nazwa = substr($nazwa, 0, 35) . "..."; } echo "<li><a href='../{$m3u}.m3u' title='{$nazwa2}'><b>{$channel}</b><br>{$nazwa}</a>\n"; } ?> <div id="main"> <div id="logo"> </div> </div> <div id="lista"> <ul class="uleczka"> <?php chan('POLSKA NA TOPIE', 'sc1.readycast.org:8888', '8888', 'polska'); chan('UK CHARTS', 'sc1.readycast.org:8026', '8026', 'ukcharts'); chan('DISCO POLO', 'sc1.readycast.org:8544', '8544', 'discopolo'); chan('TRANCE', 'sc1.readycast.org:8558', '8558', 'TRANCE'); chan('CHILLOUT', 'sc1.readycast.org:8440', '8440', 'chillout'); ?> </ul> </div> </body> </html>