<?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://00.00.00.00:8000/status2.xsl?mount=/ТВОЙ_МАУНТ"; $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); } ?>
</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>