echo file_get_contents('http://90.151.96.164:8000/status.xsl');
<?php $fl = file_get_contents('http://***.***.***.***:9000/status-index.xsl?mount=/****); 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); } $song = antara($fl, "<td>Current Song:</td>\n<td class=\"streamdata\">", "</td>"); echo "В эфире",$song; ?>
<?php error_reporting(0); function get_title ($mount){ $r=fopen($mount,'r'); if ($r==FALSE) { $ret=""; } else { $text=fread($r,2000); fclose($r); $mass=explode(",", $text); $ret= $mass [17]; } return $ret; } $mount1 = "http://xx.xx.xx.x:8000/status2.xsl?mount=/твой_маунт"; $mount2 = "--//-- второго --//--"; $mount3 = "--//-- третьего --//--"; $timeout = 1; $oldt = ini_set('default_socket_timeout', $timeout); if(get_title($mount1) !='') { echo get_title($mount1); } elseif(get_title($mount2) !='') { echo get_title($mount2); } else { echo get_title($mount3); } include "max.php"; $file_name='http://xx.xx.xx.xx:8000/status2.xsl'; $r=fopen($file_name,'r'); if ($r==FALSE) { $svoy=0; } else { $text=fread($r,300); fclose($r); $mass=explode(",", $text); $svoy=$mass [4]; } if ($r==FALSE) { $retr=0; } else { $text=fread($r,300); fclose($r); $mass=explode(",", $text); $retr=$mass [15]; } $cur=$svoy; if ($cur>$max) { $txtout='<?php'."\r\n"; $txtout=$txtout. '$max=' .$cur. ";\r\n"; $txtout=$txtout."\r\n".'?>'; $fp = fopen ("max.php", "w"); fwrite($fp,$txtout); fclose($fp); $max=$cur; } ?>
</script> <div id="now-on-air"> <script type="text/javascript"> var auto_refresh = setInterval(function(){air_load()}, 10000); function air_load(){$('#now-on-air').load('/info.php?' + Math.random()).fadeIn('slow');} $(function(){air_load()}); </script> <div id="now-on-air"> </div>