_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; ?> &g=others"></object> <?php } else { if ($id == 2) { ?> <h3 class="configuration manager-images"><?php
includeTranslation($locale, 'main'); $drawsvgchart = new DrawSVGChart(); // Generation vars $link = FALSE; $evolution = FALSE; // Access graph? if ($graph == 'access') { // Values $elements = getMonthlyVisits(); $legend = array(array('#5276A9', T_("Visits"))); $evolution = TRUE; } else { if ($graph == 'share') { // Values $elements = largestShare(shareStats(), 8); $legend = array(array('#5276A9', T_("Size"))); } else { if ($graph == 'others') { // Values $elements = otherStats(); $legend = array(array('#5276A9', T_("Size"))); } } } // Generate the chart $svgchart = $drawsvgchart->createChart($elements, $legend, $link, $evolution, $graph); // No error? if (!$drawsvgchart->has_errors()) { header('Content-Type: image/svg+xml; charset=utf-8'); echo $drawsvgchart->getXMLOutput(); }