<tr> <?php echo th(N_("cache.cache")), th(N_("cache.slots")), th(N_("cache.size")), th(N_("cache.avail")), th(N_("cache.blocksgraph")), th(N_("cache.operations")), th(N_("cache.status")), th(N_("cache.hits")), th(N_("cache.hits_graph")), th(N_("cache.hits_avg_h")), th(N_("cache.hits_avg_s")), th(N_("cache.updates")), th(N_("cache.skips")), th(N_("cache.ooms")), th(N_("cache.errors")), th(N_("cache.readonly_protected")), th(N_("cache.cached")), th(N_("cache.deleted")), th(N_("cache.gc_timer")); ?> </tr> <?php $numkeys = explode(',', 'slots,size,avail,hits,updates,skips,ooms,errors,cached,deleted'); $l_clear = _T('Clear'); $l_disabled = _T('Disabled'); $l_disable = _T('Disable'); $l_enable = _T('Enable'); $l_compiling = _T('Compiling'); $l_normal = _T('Normal'); $l_confirm = _T('Sure?'); foreach (getCacheInfos() as $i => $ci) { $class = $cycleClass->next(); echo <<<TR \t<tr {$class}> TR; $pvalue = (int) ($ci['avail'] / $ci['size'] * 100); $pempty = 100 - $pvalue; if ($config['percent_graph_type'] == 'used') { // swap $tmp = $pvalue; $pvalue = $pempty; $pempty = $tmp; } $w = $config['percent_graph_width'] + 2; if (empty($ci['istotal'])) { $graph = freeblock_to_graph($ci['free_blocks'], $ci['size']);
<tr> <th><?php echo $ci['cache_name']; ?> <?php echo _T("size"); ?> <br><?php echo _T("offset"); ?> </th> <?php foreach ($ci['free_blocks'] as $block) { $size = size($block['size']); $offset = size($block['offset']); $c = $b->next(); echo "\n\t\t<td {$c}><nobr>{$size}<br>{$offset}</nobr></td>"; } ?> </tr> </table> <?php } ?> <div style="clear: both"> </div> <?php if ($cachelist) { $isphp = $cachelist['type'] == $type_php; if (function_exists("ob_filter_path_nicer")) { ob_start("ob_filter_path_nicer");