<em class="time"><font size="3" color="white">Online: <?php $file_name='http://91.228.152.154:8000/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,300); fclose($r); $mass=explode(",", $text); echo $mass [9] .""; ?></font></em>
<?php function get_title ($mount){ $r=fopen($mount,'r'); $text=fread($r,2000); fclose($r); $mass=explode(",", $text); return $mass [17]; } $mount1 = "http://ip:порт/status2.xsl?mount=/*******"; $mount2 = "http://ip:порт/status2.xsl?mount=/*******"; $mount3 = "--//-- третьего --//--"; 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://ip:порт/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,300); fclose($r); $mass=explode(",", $text); $svoy=$mass [4]; $file_name='http://ip:порт/status2.xsl?mount=/*******'; $r=fopen($file_name,'r'); $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; } echo "<br>\n"; echo "<hr>Наша статистика:<br>\n"; echo "<hr>С первого маунта: ".$cur."<br>\n"; echo "Со второго маунта: ".$retr."<br>\n"; echo "Всего нас слушает: ".($svoy+$retr)."<br>\n"; echo "<hr>Зафиксирован рекорд в ".$max." слушателей<br>\n"; ?>