use PhpHelper::parseArrayToPhpFile in new MysqlServer API command; show asterisk for mandatory fields in formfields; add ssl-flag for ssl-enabled ip in installation

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-02 10:00:59 +02:00
parent 00a3424f65
commit c4a2d87d70
8 changed files with 44 additions and 50 deletions

View File

@@ -462,13 +462,15 @@ class Core
`port` = :serverport,
`namevirtualhost_statement` = :nvh,
`vhostcontainer` = '1',
`vhostcontainer_servername_statement` = '1'
`vhostcontainer_servername_statement` = '1',
`ssl` = :ssl
");
$nvh = $this->validatedData['webserver'] == 'apache2' ? '1' : '0';
$stmt->execute([
'nvh' => $nvh,
'serverip' => $this->validatedData['serverip'],
'serverport' => 80
'serverport' => 80,
'ssl' => 0
]);
$defaultip = $db_user->lastInsertId();
@@ -477,7 +479,8 @@ class Core
$stmt->execute([
'nvh' => $this->validatedData['webserver'] == 'apache2' ? '1' : '0',
'serverip' => $this->validatedData['serverip'],
'serverport' => 443
'serverport' => 443,
'ssl' => 1
]);
$defaultsslip = $db_user->lastInsertId();
}