diff --git a/htdocs/admin/tools/eaccelerator.php b/htdocs/admin/tools/eaccelerator.php index e98bf3120e6..65c5375b12e 100644 --- a/htdocs/admin/tools/eaccelerator.php +++ b/htdocs/admin/tools/eaccelerator.php @@ -247,55 +247,69 @@ $var=true; $var=true; -$res = @eaccelerator_cached_scripts(); // If success return an array -if (is_array($res)) +$resCached = @eaccelerator_cached_scripts(); // If success return an array +$resRemoved = @eaccelerator_removed_scripts(); + +if (is_array($resCached) || is_array($resRemoved)) { print "
"; print '
'; print ''; print ''; - $var = ! $var; - print ""; - print ""; - print ''; - print ""; - $var = ! $var; - print ""; - print ""; - print ''; - print ""; - $var = ! $var; - print ""; - print ""; - print ''; - print ""; - $var = ! $var; - print ""; - print ""; - print ''; - print ""; - $var = ! $var; - print ""; - print ""; - print ''; - print "
Actions
Caching
Optimizer
Clear cache
Clean cache
Purge cache
"; + + if (is_array($resCached)) + { + $var = ! $var; + print ""; + print "Caching"; + print ''; + print ""; + $var = ! $var; + print ""; + print "Optimizer"; + print ''; + print ""; + } + + if (is_array($resRemoved)) + { + $var = ! $var; + print ""; + print "Clear cache"; + print ''; + print ""; + $var = ! $var; + print ""; + print "Clean cache"; + print ''; + print ""; + $var = ! $var; + print ""; + print "Purge cache"; + print ''; + print ""; + } + + if (is_array($resCached)) + { + print "

"; + print "Cached scripts
"; + create_script_table($resCached); + } + + if (is_array($resRemoved)) + { + print "

"; + print "Removed scripts
"; + create_script_table($resRemoved); + } +} +else +{ + print "Check in your php.ini that eaccelerator.allowed_admin_path parameter is :"; + print "
"; + print $_SERVER["SCRIPT_FILENAME"]; } - -print "

"; -print "Cached scripts
"; -print ""; - -$res = @eaccelerator_cached_scripts(); // If success return an array -if (is_array($res)) create_script_table($res); -else print "Check in your php.ini that eaccelerator.allowed_admin_path parameter is "._FILE; - -print '

'; -print 'Removed scripts
'; - -$res = @eaccelerator_removed_scripts(); -if (is_array($res)) create_script_table($res); -else print "Check in your php.ini that eaccelerator.allowed_admin_path parameter is "._FILE; - if (function_exists('eaccelerator_get')) { @@ -304,17 +318,13 @@ if (function_exists('eaccelerator_get')) $res=eaccelerator_list_keys(); create_key_table($res); } -?> -

-
-
- -
- Eaccelerator is created by the eAccelerator team, http://eaccelerator.net

-
+print "

"; +print "
"; +print '
'; +print 'Eaccelerator is created by the eAccelerator team, http://eaccelerator.net

'; +print "
"; -