mirror of
https://github.com/Froxlor/Froxlor.git
synced 2024-09-21 10:27:29 +00:00
do not show apcuinfo or opcacheinfo to users with change_serversettings=0
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
parent
fede81700e
commit
5a807e3dbe
@ -54,7 +54,7 @@ if (!function_exists('apcu_cache_info') || !function_exists('apcu_sma_info')) {
|
||||
Response::standardError(lng('error.no_apcuinfo'));
|
||||
}
|
||||
|
||||
if ($page == 'showinfo') {
|
||||
if ($page == 'showinfo' && $userinfo['change_serversettings'] == '1') {
|
||||
$cache = apcu_cache_info();
|
||||
$mem = apcu_sma_info();
|
||||
$time = time();
|
||||
|
@ -50,7 +50,7 @@ if (!function_exists('opcache_get_configuration')) {
|
||||
Response::standardError(lng('error.no_opcacheinfo'));
|
||||
}
|
||||
|
||||
if ($page == 'showinfo') {
|
||||
if ($page == 'showinfo' && $userinfo['change_serversettings'] == '1') {
|
||||
$time = time();
|
||||
$log->logAction(FroxlorLogger::ADM_ACTION, LOG_NOTICE, "viewed OPcache info");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user