more language cleanup and adding mysql-servers to customer add/delete in UI

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-04-29 09:36:46 +02:00
parent fe747b321c
commit 0dc77997fe
16 changed files with 84 additions and 131 deletions

View File

@@ -256,6 +256,14 @@ return [
'maxlength' => 9,
'mandatory' => true
],
'allowed_mysqlserver' => [
'visible' => count($mysql_servers) > 1,
'label' => lng('customer.mysqlserver'),
'type' => 'checkbox',
'values' => $mysql_servers,
'value' => [0],
'is_array' => 1
],
'phpenabled' => [
'label' => lng('admin.phpenabled') . '?',
'type' => 'checkbox',

View File

@@ -268,6 +268,14 @@ return [
'maxlength' => 9,
'mandatory' => true
],
'allowed_mysqlserver' => [
'visible' => count($mysql_servers) > 1,
'label' => lng('customer.mysqlserver'),
'type' => 'checkbox',
'values' => $mysql_servers,
'value' => isset($result['allowed_mysqlserver']) && !empty($result['allowed_mysqlserver']) ? json_decode($result['allowed_phpconfigs'], JSON_OBJECT_AS_ARRAY) : [],
'is_array' => 1
],
'phpenabled' => [
'label' => lng('admin.phpenabled') . '?',
'type' => 'checkbox',