<font color="9db1cc"><?php error_reporting(0); header("Content-Type: text/html; charset=UTF-8"); 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); } $fl = file_get_contents("s5.radioheart.ru:8006/status2.xsl?mount=/radiojpr"); $rj = antara($fl,"<td>Stream Title:</td>\n<td class=\"streamdata\">","</td>"); if($rj == "0" or $rj == ""){ echo "<img src='http://jpr-style.com.ua/avatar/DjRobot.jpg'>"; $fl = file_get_contents('s5.radioheart.ru:8006/status2.xsl?mount=/nonstop'); }else { switch ($rj) { case "NickRich": echo "<img src='jpr-style.com.ua/avatar/NickRich.jpg' wight=100%>"; break; case "NickRich": echo "<img src='jpr-style.com.ua/avatar/NickRich.jpg' wight=100%>"; break; } } $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>"); ?></font>