<?php error_reporting(0); header("Content-Type: text/html; charset=UTF-8"); $fl = file_get_contents('http://188.40.124.23:8344/status.xsl?mount=/radio'); function antara($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } if($rj == "0" or $rj == ""){ $fl = file_get_contents('http://188.40.124.23:8344/status.xsl?mount=/ices'); $song = antara($fl, "<td>Current Song:</td>\n<td class=\"streamdata\">", "</td>"); echo "<img src='http://www.radio-redfox.ru/nonstops.jpg'><br><marquee>Сейчас играет: ".$song."</marquee>"; }else { $fl = file_get_contents('http://188.40.124.23:8344/status.xsl?mount=/radio'); $stream = antara($fl,"<td>Stream Title:</td>\n<td class=\"streamdata\">","</td>"); $description = antara($fl, "<td>Stream Description:</td>\n<td class=\"streamdata\">", "</td>"); $listeners = antara($fl, "<td>Current Listeners:</td>\n<td class=\"streamdata\">", "</td>"); $max = antara($fl, "<td>Peak Listeners:</td>\n<td class=\"streamdata\">", "</td>"); $song = antara($fl, "<td>Current Song:</td>\n<td class=\"streamdata\">", "</td>"); switch ($stream) { case "RJ Smile | icq: 554418640": echo "<img src='http://www.radio-redfox.ru/info/RJSmile.gif' wight=100%>"; break; } echo "<span style='font: 400 11px verdana, arial, sans-serif;'><b> <table width='530'> <tr><td width='5'></td> <td valign='top'><span style='font: 400 11px verdana, arial, sans-serif;'><b>В эфире: ".$stream."<hr></span></td><td width='5'></td></tr></table></b></span>"; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////// ?></font> <meta http-equiv="refresh" content="20;url=/info.php"> <meta http-equiv="content-type" content="text/html; charset=utf-8" />