add possibility to show subdomains fully in php-settings listing; UI adjustments

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-08-26 09:54:06 +02:00
parent 7f6ea29e15
commit 546040541c
10 changed files with 33 additions and 5 deletions

View File

@@ -41,7 +41,13 @@ class PHPConf
if ($subdomains_count == 0 && empty($domains)) {
$domains = lng('admin.phpsettings.notused');
} else {
$domains .= !empty($subdomains_count) ? ((!empty($domains) ? '+ ' : '') . $subdomains_count . ' ' . lng('customer.subdomains')) : '';
if (Settings::Get('panel.phpconfigs_hidesubdomains') == '1') {
$domains .= !empty($subdomains_count) ? ((!empty($domains) ? '+ ' : '') . $subdomains_count . ' ' . lng('customer.subdomains')) : '';
} else {
foreach ($attributes['fields']['subdomains'] as $configdomain) {
$domains .= $idna->decode($configdomain) . "<br>";
}
}
}
return $domains;