function otherStats() { // Fill the array with the values $others_stats = array(T_("Backgrounds") => sizeDir(JAPPIX_BASE . '/store/backgrounds/'), T_("Cache") => sizeDir(JAPPIX_BASE . '/store/cache/'), T_("Logs") => sizeDir(JAPPIX_BASE . '/store/logs/'), T_("Music") => sizeDir(JAPPIX_BASE . '/store/music/'), T_("Share") => sizeDir(JAPPIX_BASE . '/store/share/'), T_("Send") => sizeDir(JAPPIX_BASE . '/store/send/'), T_("Updates") => sizeDir(JAPPIX_BASE . '/store/updates/')); // Sort this array arsort($others_stats); return $others_stats; }
&g=share"></object> <?php } ?> <h4><?php _e("Other statistics"); ?> </h4> <ul class="stats"> <li class="total"><b><?php _e("Total"); ?> </b><span><?php echo formatBytes(sizeDir(JAPPIX_BASE . '/store/')); ?> </span></li> <?php // Append the human-readable array values $others_stats = otherStats(); foreach ($others_stats as $others_name => $others_value) { echo '<li><b>' . $others_name . '</b><span>' . formatBytes($others_value) . '</span></li>'; } ?> </ul> <object class="stats" type="image/svg+xml" data="./php/stats-svg.php?l=<?php echo $locale; ?>