From 7ade9c023687a35715fea7143d6db2eca76a107a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 1 May 2009 10:55:09 +0000 Subject: [PATCH] Fix: hide "Actions" and php warning message if this script isn't in the allowed_admin_path setting --- htdocs/admin/tools/eaccelerator.php | 73 +++++++++++++++-------------- 1 file changed, 39 insertions(+), 34 deletions(-) diff --git a/htdocs/admin/tools/eaccelerator.php b/htdocs/admin/tools/eaccelerator.php index 737cc3406ef..e98bf3120e6 100644 --- a/htdocs/admin/tools/eaccelerator.php +++ b/htdocs/admin/tools/eaccelerator.php @@ -247,47 +247,52 @@ $var=true; $var=true; -?> -
-
- - - > - - - - > - - - - > - - - - > - - - - > - - - -
Actions
Caching
Optimizer
Clear cache
Clean cache
Purge cache
-
- +$res = @eaccelerator_cached_scripts(); // If success return an array +if (is_array($res)) +{ + 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
"; +} -

-Cached scripts
- -
"; +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(); +$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;