diff --git a/admin_settings.php b/admin_settings.php
index 1dc09367..21b8913d 100644
--- a/admin_settings.php
+++ b/admin_settings.php
@@ -105,14 +105,14 @@ if ($page == 'overview' && $userinfo['change_serversettings'] == '1') {
} elseif($page == 'phpinfo'
&& $userinfo['change_serversettings'] == '1'
) {
- ob_start();
- phpinfo();
- $phpinfo = array('phpinfo' => array());
- if (preg_match_all(
- '#(?:
)|(?:(.*?)\s*(?:(.*?)\s*(?:(.*?)\s*)?)?
)#s',
- ob_get_clean(), $matches, PREG_SET_ORDER
- )
- ) {
+ ob_start();
+ phpinfo();
+ $phpinfo = array('phpinfo' => array());
+ if (preg_match_all(
+ '#(?:)|(?:(.*?)\s*(?:(.*?)\s*(?:(.*?)\s*)?)?
)#s',
+ ob_get_clean(), $matches, PREG_SET_ORDER
+ )
+ ) {
foreach ($matches as $match) {
$end = array_keys($phpinfo);
$end = end($end);
@@ -143,6 +143,8 @@ if ($page == 'overview' && $userinfo['change_serversettings'] == '1') {
eval("\$phpinfohtml .= \"" . getTemplate("settings/phpinfo/phpinfo_table") . "\";");
}
$phpinfo = $phpinfohtml;
+ } else {
+ standard_error($lng['error']['no_phpinfo']);
}
eval("echo \"" . getTemplate("settings/phpinfo") . "\";");
diff --git a/lng/english.lng.php b/lng/english.lng.php
index 379783d7..81cb82dd 100644
--- a/lng/english.lng.php
+++ b/lng/english.lng.php
@@ -1835,3 +1835,4 @@ $lng['serversettings']['panel_password_special_char']['title'] = 'Special charac
$lng['serversettings']['panel_password_special_char']['description'] = 'One of these characters is required if the above option is set.';
$lng['phpfpm']['use_mod_proxy']['title'] = 'Use mod_proxy / mod_proxy_fcgi';
$lng['phpfpm']['use_mod_proxy']['description'] = 'Activate to use php-fpm via mod_proxy_fcgi. Requires at least apache-2.4.9';
+$lng['error']['no_phpinfo'] = 'Sorry, unable to read phpinfo()';
diff --git a/lng/german.lng.php b/lng/german.lng.php
index e6f4a69f..bc06d764 100644
--- a/lng/german.lng.php
+++ b/lng/german.lng.php
@@ -1559,3 +1559,4 @@ $lng['serversettings']['panel_password_special_char']['title'] = 'Sonderzeichen-
$lng['serversettings']['panel_password_special_char']['description'] = 'Mindestens eines dieser Sonderzeichen muss in dem Passwort vorkommen, sofern die Sonderzeichen-Option aktiviert ist.';
$lng['phpfpm']['use_mod_proxy']['title'] = 'Verwende mod_proxy / mod_proxy_fcgi';
$lng['phpfpm']['use_mod_proxy']['description'] = 'Diese Option kann aktiviert werden, um php-fpm via mod_proxy_fcgi einzubinden. Dies setzt mindestens apache-2.4.9 voraus';
+$lng['error']['no_phpinfo'] = 'Entschuldigung, es ist nicht möglich die phpinfo() auszulesen.';