show replacer-variables in php-config add/edit and fpm-versions add/edit; catch potential Exception thrown by Form::processForm() to display the error nicely; minor fixes in field-visibility for phpconfigs depending on php-interface and webserver; validate fcgid/fpm enable-flag correctly if not POST'ed at the same time (older behaviour)
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -116,5 +116,57 @@ return [
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
'fpmconfig_replacers' => [
|
||||
'replacers' => [
|
||||
[
|
||||
'var' => 'PEAR_DIR',
|
||||
'description' => lng('admin.phpconfig.pear_dir')
|
||||
],
|
||||
[
|
||||
'var' => 'OPEN_BASEDIR_C',
|
||||
'description' => lng('admin.phpconfig.open_basedir_c')
|
||||
],
|
||||
[
|
||||
'var' => 'OPEN_BASEDIR',
|
||||
'description' => lng('admin.phpconfig.open_basedir')
|
||||
],
|
||||
[
|
||||
'var' => 'OPEN_BASEDIR_GLOBAL',
|
||||
'description' => lng('admin.phpconfig.open_basedir_global')
|
||||
],
|
||||
[
|
||||
'var' => 'TMP_DIR',
|
||||
'description' => lng('admin.phpconfig.tmp_dir')
|
||||
],
|
||||
[
|
||||
'var' => 'CUSTOMER_EMAIL',
|
||||
'description' => lng('admin.phpconfig.customer_email')
|
||||
],
|
||||
[
|
||||
'var' => 'ADMIN_EMAIL',
|
||||
'description' => lng('admin.phpconfig.admin_email')
|
||||
],
|
||||
[
|
||||
'var' => 'DOMAIN',
|
||||
'description' => lng('admin.phpconfig.domain')
|
||||
],
|
||||
[
|
||||
'var' => 'CUSTOMER',
|
||||
'description' => lng('admin.phpconfig.customer')
|
||||
],
|
||||
[
|
||||
'var' => 'ADMIN',
|
||||
'description' => lng('admin.phpconfig.admin')
|
||||
],
|
||||
[
|
||||
'var' => 'DOCUMENT_ROOT',
|
||||
'description' => lng('admin.phpconfig.docroot')
|
||||
],
|
||||
[
|
||||
'var' => 'CUSTOMER_HOMEDIR',
|
||||
'description' => lng('admin.phpconfig.homedir')
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
@@ -119,5 +119,57 @@ return [
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
'fpmconfig_replacers' => [
|
||||
'replacers' => [
|
||||
[
|
||||
'var' => 'PEAR_DIR',
|
||||
'description' => lng('admin.phpconfig.pear_dir')
|
||||
],
|
||||
[
|
||||
'var' => 'OPEN_BASEDIR_C',
|
||||
'description' => lng('admin.phpconfig.open_basedir_c')
|
||||
],
|
||||
[
|
||||
'var' => 'OPEN_BASEDIR',
|
||||
'description' => lng('admin.phpconfig.open_basedir')
|
||||
],
|
||||
[
|
||||
'var' => 'OPEN_BASEDIR_GLOBAL',
|
||||
'description' => lng('admin.phpconfig.open_basedir_global')
|
||||
],
|
||||
[
|
||||
'var' => 'TMP_DIR',
|
||||
'description' => lng('admin.phpconfig.tmp_dir')
|
||||
],
|
||||
[
|
||||
'var' => 'CUSTOMER_EMAIL',
|
||||
'description' => lng('admin.phpconfig.customer_email')
|
||||
],
|
||||
[
|
||||
'var' => 'ADMIN_EMAIL',
|
||||
'description' => lng('admin.phpconfig.admin_email')
|
||||
],
|
||||
[
|
||||
'var' => 'DOMAIN',
|
||||
'description' => lng('admin.phpconfig.domain')
|
||||
],
|
||||
[
|
||||
'var' => 'CUSTOMER',
|
||||
'description' => lng('admin.phpconfig.customer')
|
||||
],
|
||||
[
|
||||
'var' => 'ADMIN',
|
||||
'description' => lng('admin.phpconfig.admin')
|
||||
],
|
||||
[
|
||||
'var' => 'DOCUMENT_ROOT',
|
||||
'description' => lng('admin.phpconfig.docroot')
|
||||
],
|
||||
[
|
||||
'var' => 'CUSTOMER_HOMEDIR',
|
||||
'description' => lng('admin.phpconfig.homedir')
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
@@ -102,7 +102,7 @@ return [
|
||||
'value' => '5s'
|
||||
],
|
||||
'phpfpm_pass_authorizationheader' => [
|
||||
'visible' => Settings::Get('phpfpm.enabled') == 1,
|
||||
'visible' => Settings::Get('phpfpm.enabled') == 1 && Settings::Get('system.webserver') == "apache2",
|
||||
'label' => lng('admin.phpsettings.pass_authorizationheader'),
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
|
||||
@@ -105,13 +105,14 @@ return [
|
||||
'value' => $result['fpm_reqslow']
|
||||
],
|
||||
'phpfpm_pass_authorizationheader' => [
|
||||
'visible' => Settings::Get('phpfpm.enabled') == 1,
|
||||
'visible' => Settings::Get('phpfpm.enabled') == 1 && Settings::Get('system.webserver') == "apache2",
|
||||
'label' => lng('admin.phpsettings.pass_authorizationheader'),
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
'checked' => $result['pass_authorizationheader']
|
||||
],
|
||||
'override_fpmconfig' => [
|
||||
'visible' => Settings::Get('phpfpm.enabled') == 1,
|
||||
'label' => lng('serversettings.phpfpm_settings.override_fpmconfig'),
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
|
||||
Reference in New Issue
Block a user