fix variable-typo to make phpenabled-flag work when adding new domains, thx to micw

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2017-01-16 08:43:54 +01:00
parent 9fdcd09089
commit c6962b0992

View File

@@ -455,7 +455,7 @@ if ($page == 'domains' || $page == 'overview') {
if ($userinfo['caneditphpsettings'] == '1' || $userinfo['change_serversettings'] == '1') { if ($userinfo['caneditphpsettings'] == '1' || $userinfo['change_serversettings'] == '1') {
$phpenabled = isset($POST_['phpenabled']) ? intval($_POST['phpenabled']) : 0; $phpenabled = isset($_POST['phpenabled']) ? intval($_POST['phpenabled']) : 0;
$openbasedir = isset($_POST['openbasedir']) ? intval($_POST['openbasedir']) : 0; $openbasedir = isset($_POST['openbasedir']) ? intval($_POST['openbasedir']) : 0;
if ((int) Settings::Get('system.mod_fcgid') == 1 || (int) Settings::Get('phpfpm.enabled') == 1) { if ((int) Settings::Get('system.mod_fcgid') == 1 || (int) Settings::Get('phpfpm.enabled') == 1) {
@@ -496,7 +496,7 @@ if ($page == 'domains' || $page == 'overview') {
} }
} else { } else {
$phpenabled = '1'; $phpenabled = '1';
$openbasedir = '1'; $openbasedir = '1';
if ((int) Settings::Get('phpfpm.enabled') == 1) { if ((int) Settings::Get('phpfpm.enabled') == 1) {
@@ -693,8 +693,8 @@ if ($page == 'domains' || $page == 'overview') {
if (count($ipandports) == 0) { if (count($ipandports) == 0) {
standard_error('noipportgiven'); standard_error('noipportgiven');
} }
if($phpenabled != '1') { if ($phpenabled != '1') {
$phpenabled = '0'; $phpenabled = '0';
} }
@@ -1485,7 +1485,7 @@ if ($page == 'domains' || $page == 'overview') {
if (! preg_match('/^https?\:\/\//', $documentroot)) { if (! preg_match('/^https?\:\/\//', $documentroot)) {
$documentroot = makeCorrectDir($documentroot); $documentroot = makeCorrectDir($documentroot);
} }
if ($phpenabled != '1') { if ($phpenabled != '1') {
$phpenabled = '0'; $phpenabled = '0';
} }