<?php $data = file_get_contents('хттп://127.0.0.1:88/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(antara($data, "Content Type:</td>\n<td class=\"streamdata\">","</td>") ==''){$data = file_get_contents('хттп://127.0.0.1:88/status.xsl?mount=/nonstop');} $Mount_started = antara($data, "Content Type:</td>\n<td class=\"streamdata\">","</td>"); $Current_song = antara($data, "Current Song:</td>\n<td class=\"streamdata\">","</td>"); $Curr_listens=$Current_listeners2+$Current_listeners+$hellp_curr_listeners; $Peak_listens=$Peak_listeners2+$Peak_listeners+$hellp_peak_listeners; $staylst=$Curr_listens+1; echo ''.$Current_song.''; ?>
<?php $data = file_get_contents("хттп://127.0.0.1:88/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); } $Current_song = antara($data, "Current Song:</td>\n<td class=\"streamdata\">","</td>"); echo "Сейчас играет : ".$Current_song.""; ?>
Current Song:</td>\n<td class=\"streamdata\">
Could not parse XSLT file