Esempio n. 1
0
</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";
?>
, with a total of <a href="stats/"><?php 
$web = StatManager::getAllAddonDownloads("web") + 0;
$ingame = StatManager::getAllAddonDownloads("ingame") + 0;
$updates = StatManager::getAllAddonDownloads("updates") + 0;
echo $web + $ingame;
?>
</b></a> downloads and <b><?php 
echo $updates;
?>
</b> updates.