예제 #1
0
echo StatManager::getMasterServerStats()['servers'];
?>
</b> Blockland servers online with <b><?php 
echo $ct = StatManager::getMasterServerStats()['users'];
?>
</b> <?php 
echo $ct == 1 ? "user" : "users";
?>
. Of those, <a href="stats/users.php"><?php 
echo $ct = sizeof(UserLog::getRecentlyActive());
?>
</a> <?php 
echo $ct == 1 ? "user" : "users";
?>
 are running Glass - which equates to <?php 
$nonglass = StatManager::getMasterServerStats()['users'];
$glass = sizeof(UserLog::getRecentlyActive());
$percentage = floor(100 / $nonglass * $glass);
if ($percentage > 100) {
    echo "<b>" . $percentage . "%</b> (how is this happening)";
} else {
    echo "<b>" . $percentage . "%</b>";
}
?>
		of Blockland as of this moment. Glass has <b>
		<?php 
echo $ct = UserLog::getUniqueCount();
?>
		</b>
        active <?php 
echo $ct == 1 ? "user" : "users";