enable/disable php for standard-subdomain when adding a new customer according to the customer-phpenabled value, fixes #1708

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2017-01-23 08:14:14 +01:00
parent e00cb8926d
commit c2b864a20f

View File

@@ -910,7 +910,8 @@ if ($page == 'customers'
'customerid' => $customerid, 'customerid' => $customerid,
'adminid' => $userinfo['adminid'], 'adminid' => $userinfo['adminid'],
'docroot' => $documentroot, 'docroot' => $documentroot,
'adddate' => date('Y-m-d') 'adddate' => date('Y-m-d'),
'phpenabled' => $phpenabled
); );
$ins_stmt = Database::prepare(" $ins_stmt = Database::prepare("
INSERT INTO `" . TABLE_PANEL_DOMAINS . "` SET INSERT INTO `" . TABLE_PANEL_DOMAINS . "` SET
@@ -928,6 +929,7 @@ if ($page == 'customers'
`dkim_id` = '0', `dkim_id` = '0',
`dkim_privkey` = '', `dkim_privkey` = '',
`dkim_pubkey` = '', `dkim_pubkey` = '',
`phpenabled` = :phpenabled,
`add_date` = :adddate" `add_date` = :adddate"
); );
Database::pexecute($ins_stmt, $ins_data); Database::pexecute($ins_stmt, $ins_data);