From 8811a0f62cce9a064f3c0762fd327e676ee1938f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 19 Sep 2007 23:32:42 +0000 Subject: [PATCH] Look: Traduction et mise au norme look page admin eaccelerator --- htdocs/admin/tools/eaccelerator.php | 152 +++++++++++++++------------- 1 file changed, 81 insertions(+), 71 deletions(-) diff --git a/htdocs/admin/tools/eaccelerator.php b/htdocs/admin/tools/eaccelerator.php index 154605afe0a..8ec51a3f619 100644 --- a/htdocs/admin/tools/eaccelerator.php +++ b/htdocs/admin/tools/eaccelerator.php @@ -33,6 +33,10 @@ if (!$user->admin) accessforbidden(); +/* +* Affichage page +*/ + llxHeader(); @@ -44,7 +48,6 @@ if (!function_exists('eaccelerator_info')) } -/* {{{ process any commands */ $info = eaccelerator_info(); if (isset($_POST['caching'])) { if ($info['cache']) { @@ -70,7 +73,8 @@ if (!is_array($info)) { dolibarr_print_error('','An error occured getting eAccelerator information, this is caused if eAccelerator isn\'t initalised properly'); exit; } -/* }}} */ + + function compare($x, $y) { @@ -84,9 +88,10 @@ function compare($x, $y) return 1; } + function revcompare($x, $y) { - global $sortby; + global $sortby, $langs; if ( $x[$sortby] == $y[$sortby] ) return 0; @@ -96,11 +101,12 @@ function revcompare($x, $y) return -1; } -/* {{{ create_script_table */ -function create_script_table($list) -{ - global $sortby; + function create_script_table($list) +{ + global $sortby,$bc,$langs; + $var=true; + if (isset($_GET['order']) && ($_GET['order'] == "asc" || $_GET['order'] =="desc")) { $order = $_GET['order']; } else { @@ -123,13 +129,13 @@ function create_script_table($list) } ?> - +
- - - - - + + + + + - - - - - - - - - - + > + + + + +
">Filename ">MTime ">Size ">Reloads ">Hits ">trans("Filename"); ?> ">trans("Date"); ?> ">trans("Size"); ?> ">trans("Reloads"); ?> ">trans("Hits"); ?> 
KB ()
KB ()
- - +
+ - + - - - - - + + + @@ -201,77 +206,82 @@ function create_key_table($list) { $html=new Form($db); print_fiche_titre('Dolibarr eAccelerator '.$info['version'].' control panel','','setup'); + +$var=true; + ?>
- -
Name CreatedSizetrans("Size"); ?> ttl
KB> + KB
+ +
- +> - + - +> - + - +> - + - +> - + - +> - + - +> - + - +> - +
Information
Caching enabled
Optimizer enabled
Memory usage% - (MB/ - MB)% + ( MB / + MB)
Free memory in reserved cacheMBMB
Cached scripts
Removed scripts
Cached keys
- + +$var=true; + +?>
- +
- + > - + - + > - + - + > - + - + > - + - + > - +
Actions
Caching
Optimizer
Clear cache
Clean cache
Purge cache


+Cached scripts
-
Cached scripts
php.ini that eaccelerator.allowed_admin_path ?>

+Removed scripts
-
Removed scripts
php.ini
that eaccelerator.allowed_admin_path if (function_exists('eaccelerator_get')) { ?>

+ Cached keys
-
Cached keys