= 1024) { $i++; $x = $x / 1024; } return number_format($x, ($i > 0)?2:0, '.', ',').' '.$a[$i]; } // Generates a simple & colourful horizontal bar graph. $x:$y is used:free function space_graph ($x, $y) { $colr = 183; $colg = 225; $colb = 149; // #B7E195 $colr = base_convert($colr + floor(($x/$y)*(50+exp($x*3/$y))), 10, 16); $colg = base_convert($colg - floor(($x/$y)*(100+exp($x*4/$y))), 10, 16); $colb = base_convert($colb - floor(($x/$y)*(70+exp($x*4/$y))), 10, 16); $s = ''; $s .= ''; $s .= '
  
'; return $s; } // Messy algorithm to generate neat page selectors function pageselstr ($pg, $pgs) { $pg += 1; $st = max(1, $pg - 2) - max(0, 2 - ($pgs - $pg)); $nd = $pg + 2 + max(0, 3 - $pg); $d = $st - 1 - 1; if (abs($nd - $pg) > 2) $sp[] = $nd - 2; if (abs($pg - $st) > 2) $sp[] = $st + 2; if (($d-2)/3 >= 2) { $sp[] = (ceil($d/3)+1); $sp[] = (ceil($d/3)*2+1); } elseif (($d-1)/2 > 0) $sp[] = (ceil($d/2)+1); $d = $pgs - $nd - 1; if (($d-2)/3 >= 2) { $sp[] = (ceil($d/3)+$nd); $sp[] = (ceil($d/3)*2+$nd); } elseif (($d-1)/2 > 0) $sp[] = (ceil($d/2)+$nd); $sp[] = $st;$sp[] = $nd;$sp[] = $pg;$sp[] = 1;$sp[] = $pgs; $lp = 1; $pgstr = 'Page: '; if ($pgs < 1) $pgstr .= '-'; for ($i = 1; $i <= $pgs; $i++) { if (in_array($i, $sp)) { if ($i - $lp <= 2 && $i > 2 && !in_array($i-1, $sp)) $pgstr .= ''.($i-1).' '; if ($i - $lp > 2) $pgstr .= '..'; if ($i == $pg) $pgstr .= ' ['.$i.'] '; else { $pgstr .= ' '.$i.' '; } $lp = $i; } } return $pgstr; } // Returns qstring with updated key / value pairs. function qstring_update ($arr) { $qs = ''; $combo = array_merge($_GET, $arr); foreach ($combo as $a => $b) { if ($qs) $qs .= '&'; $qs .= urlencode($a).'='.urlencode($b); } return $qs; } // Returns standard column headers for the lists function colheadstr ($nme, $id) { $cursrt = isset($_GET['ordby']) ? $_GET['ordby'] : 0; $srtdir = isset($_GET['dir']) ? $_GET['dir'] : ""; return ''.$nme.' '.(($cursrt == $id)?''.(($srtdir)?'v':'^').'':''); } // Array sorting callback function function arrsort ($a, $b) { global $ordby, $ordbystr; if ($ordbystr) $val = strnatcmp($a[$ordby], $b[$ordby]); else $val = ($a[$ordby] == $b[$ordby]) ? 0 : (($a[$ordby] < $b[$ordby]) ? -1: 1); if (isset($_GET['dir']) && $_GET['dir']) $val = -1*$val; return $val; } // Global info array $info = eaccelerator_info(); ?> eAccelerator control panel
eAccelerator control panel
'Status', 1 => 'Script Cache'); foreach ($items as $i => $item) { echo ''.(($sec != $i)?''.$item.'':$item).''; } ?>
Usage statistics
Caching enabled yes   ':'no   ' ?>
Optimizer enabled yes   ':'no   ' ?>
Check mtime enabled yes   ':'no   ' ?>
Total memory
Memory in use
Free memory
Cached scripts
Removed scripts
Build information
eAccelerator version
Shared memory type
Semaphore type


Maintenance
Removed all scripts and data from shared memory and / or disk.
Removed all expired scripts and data from shared memory and / or disk.
Delete all 'removed' scripts from shared memory.
$pgs) $pg = $pgs-1; if ($pg < 0) $pg = 0; $scripts = array_slice($scripts, $pg*$npp, $npp); $numres = count($scripts); ?>
Search
Match filename:  


No scripts found
'; else { ?> %s', $scripts[$i]['file'], $scripts[$i]['file']); } elseif ($removed) { $file_col = sprintf('%s', $scripts[$i]['file']); } else { $file_col = $scripts[$i]['file']; } if ($scripts[$i]['ttl'] != 0) { $ttl_col = $scripts[$i]['ttl'] - time(); if ($ttl_col <= 0) { $ttl_col = "expired"; } } else { $ttl_col = "∞"; } ?>
Showing of
()