add php-configuration to domain-listing, fixes #1141; move backup-menu to 'System' instead of 'Resources'

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-06-07 15:08:36 +02:00
parent 5afe5a8c46
commit bfc816a51e
3 changed files with 37 additions and 12 deletions

View File

@@ -23,6 +23,7 @@
* @license https://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\Settings;
use Froxlor\UI\Callbacks\Domain;
use Froxlor\UI\Callbacks\Impersonate;
use Froxlor\UI\Callbacks\Style;
@@ -114,6 +115,13 @@ return [
'field' => 'phpenabled',
'callback' => [Text::class, 'boolean'],
],
'd.phpsettingid' => [
'label' => lng('admin.phpsettings.title'),
'field' => 'phpsettingid',
'searchable' => false,
'callback' => [Domain::class, 'getPhpConfigName'],
'visible' => (int)Settings::Get('system.mod_fcgid') == 1 || (int)Settings::Get('phpfpm.enabled') == 1
],
'd.openbasedir' => [
'label' => lng('domains.openbasedirenabled'),
'field' => 'openbasedir',