Loading...   


<?php
	echo '<center><br><img src="images/Darkness3/statusicon/forum_new-48.png"><br>
	<br>'; 

	$cachefile = '/var/www/status';

	$ret = @unserialize(@file_get_contents($cachefile)); 
	if( !$ret || time()-$ret[2]>58 ) {
		$html = file_get_contents("http://www.eqemulator.org/index.php?pageid=serverinfo&worldid=1355"); 
		preg_match('~Server Status.{1,100}<td>([^<]*)</td>~msU', $html, $matches);
		$status = trim($matches[1]); 
		preg_match('~Players Online.{1,100}<td>([^<]*)</td>~msU', $html, $matches);
		$players = trim($matches[1]); 
		$ret = array($status,$players,time()); 
		file_put_contents($cachefile,serialize($ret));
	}
	list($status,$players) = $ret;
	
	$collapseobj_custom_1 = $vbcollapse['collapseobj_custom_1'];
	$collapseimg_custom_1 = $vbcollapse['collapseimg_custom_1'];
	 
	eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_custom_1') . '";');
	
	echo '&nbsp;&nbsp;&nbsp;<b><u><FONT COLOR="YELLOW">Akka\'s Funhouse</b></u></FONT><br>';
	echo '&nbsp;&nbsp;&nbsp;<b>Server Status: <font color="green">' . $status . '</font></b><br>';
	echo '&nbsp;&nbsp;&nbsp;<b>Players Online: <font color="green">' . $players . '</font></b>';
	echo '<br><br>';
?>

Raw Paste Data