<?phppagegen();function pagegen(){ $html = implode('', file('http://thematrixonline.warnerbros.com/web/live/support/server_status.jsp')); $posa = strpos($html, "<!-- BEGIN Main Content -->"); if(!$posa){ echo "Warner Bros. Server Status page is currently offline."; return; } $posb = strpos($html, "<!-- END Main Content -->"); $html = substr($html, $posa, $posb - $posa); $html = str_replace("</div>","zyzzy",$html); $html = str_replace("<br>","xyxxy",$html); $html = strip_tags($html); $html = str_replace("Population","Load",$html); $html = str_replace("Admins Only","<font color=\"orange\">Admins</font>",$html); $html = str_replace("Open","<font color=\"green\">Open</font>",$html); $html = str_replace("Closed","<font color=\"red\">Closed</font>",$html); $html = str_replace("Full","<font color=\"red\">Full</font>",$html); $html = str_replace("xyxxy", "</b><br>", $html); $html = str_replace("zyzzy", "<br><br><b>", $html); $html = "<b>".$html; echo $html;}?>
Demo using live data (http://garth.hn.org/test/srvrsts.php) | Demo simulated page down (http://garth.hn.org/test/srvrsts2.php)
Should replace what I sent you before with this, T. This is faster.
I dunno about this server full thing. They better be joking and/or testing something. I can understand not allowing people to create new characters - but locking people out who already have chars on the server is... just plain stupid and a clear violation of the seven P's.