|
|
|
@@ -453,6 +453,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;
|
|
|
|
$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) {
|
|
|
|
@@ -493,7 +494,9 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$phpenabled = '1';
|
|
|
|
$openbasedir = '1';
|
|
|
|
$openbasedir = '1';
|
|
|
|
|
|
|
|
|
|
|
|
if ((int) Settings::Get('phpfpm.enabled') == 1) {
|
|
|
|
if ((int) Settings::Get('phpfpm.enabled') == 1) {
|
|
|
|
$phpsettingid = Settings::Get('phpfpm.defaultini');
|
|
|
|
$phpsettingid = Settings::Get('phpfpm.defaultini');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@@ -689,6 +692,10 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
standard_error('noipportgiven');
|
|
|
|
standard_error('noipportgiven');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($phpenabled != '1') {
|
|
|
|
|
|
|
|
$phpenabled = '0';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($openbasedir != '1') {
|
|
|
|
if ($openbasedir != '1') {
|
|
|
|
$openbasedir = '0';
|
|
|
|
$openbasedir = '0';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -768,6 +775,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
'ipandport' => serialize($ipandports),
|
|
|
|
'ipandport' => serialize($ipandports),
|
|
|
|
'ssl_redirect' => $ssl_redirect,
|
|
|
|
'ssl_redirect' => $ssl_redirect,
|
|
|
|
'ssl_ipandport' => serialize($ssl_ipandports),
|
|
|
|
'ssl_ipandport' => serialize($ssl_ipandports),
|
|
|
|
|
|
|
|
'phpenabled' => $phpenabled,
|
|
|
|
'openbasedir' => $openbasedir,
|
|
|
|
'openbasedir' => $openbasedir,
|
|
|
|
'phpsettingid' => $phpsettingid,
|
|
|
|
'phpsettingid' => $phpsettingid,
|
|
|
|
'mod_fcgid_starter' => $mod_fcgid_starter,
|
|
|
|
'mod_fcgid_starter' => $mod_fcgid_starter,
|
|
|
|
@@ -816,6 +824,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
'email_only' => $email_only,
|
|
|
|
'email_only' => $email_only,
|
|
|
|
'subcanemaildomain' => $subcanemaildomain,
|
|
|
|
'subcanemaildomain' => $subcanemaildomain,
|
|
|
|
'caneditdomain' => $caneditdomain,
|
|
|
|
'caneditdomain' => $caneditdomain,
|
|
|
|
|
|
|
|
'phpenabled' => $phpenabled,
|
|
|
|
'openbasedir' => $openbasedir,
|
|
|
|
'openbasedir' => $openbasedir,
|
|
|
|
'speciallogfile' => $speciallogfile,
|
|
|
|
'speciallogfile' => $speciallogfile,
|
|
|
|
'specialsettings' => $specialsettings,
|
|
|
|
'specialsettings' => $specialsettings,
|
|
|
|
@@ -852,6 +861,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
`email_only` = :email_only,
|
|
|
|
`email_only` = :email_only,
|
|
|
|
`subcanemaildomain` = :subcanemaildomain,
|
|
|
|
`subcanemaildomain` = :subcanemaildomain,
|
|
|
|
`caneditdomain` = :caneditdomain,
|
|
|
|
`caneditdomain` = :caneditdomain,
|
|
|
|
|
|
|
|
`phpenabled` = :phpenabled,
|
|
|
|
`openbasedir` = :openbasedir,
|
|
|
|
`openbasedir` = :openbasedir,
|
|
|
|
`speciallogfile` = :speciallogfile,
|
|
|
|
`speciallogfile` = :speciallogfile,
|
|
|
|
`specialsettings` = :specialsettings,
|
|
|
|
`specialsettings` = :specialsettings,
|
|
|
|
@@ -1326,6 +1336,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;
|
|
|
|
$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) {
|
|
|
|
@@ -1360,6 +1371,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
$mod_fcgid_maxrequests = $result['mod_fcgid_maxrequests'];
|
|
|
|
$mod_fcgid_maxrequests = $result['mod_fcgid_maxrequests'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$phpenabled = $result['phpenabled'];
|
|
|
|
$openbasedir = $result['openbasedir'];
|
|
|
|
$openbasedir = $result['openbasedir'];
|
|
|
|
$phpsettingid = $result['phpsettingid'];
|
|
|
|
$phpsettingid = $result['phpsettingid'];
|
|
|
|
$mod_fcgid_starter = $result['mod_fcgid_starter'];
|
|
|
|
$mod_fcgid_starter = $result['mod_fcgid_starter'];
|
|
|
|
@@ -1472,6 +1484,10 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
$documentroot = makeCorrectDir($documentroot);
|
|
|
|
$documentroot = makeCorrectDir($documentroot);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($phpenabled != '1') {
|
|
|
|
|
|
|
|
$phpenabled = '0';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($openbasedir != '1') {
|
|
|
|
if ($openbasedir != '1') {
|
|
|
|
$openbasedir = '0';
|
|
|
|
$openbasedir = '0';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -1580,6 +1596,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
'dkim' => $dkim,
|
|
|
|
'dkim' => $dkim,
|
|
|
|
'selectserveralias' => $serveraliasoption,
|
|
|
|
'selectserveralias' => $serveraliasoption,
|
|
|
|
'ssl_redirect' => $ssl_redirect,
|
|
|
|
'ssl_redirect' => $ssl_redirect,
|
|
|
|
|
|
|
|
'phpenabled' => $phpenabled,
|
|
|
|
'openbasedir' => $openbasedir,
|
|
|
|
'openbasedir' => $openbasedir,
|
|
|
|
'phpsettingid' => $phpsettingid,
|
|
|
|
'phpsettingid' => $phpsettingid,
|
|
|
|
'mod_fcgid_starter' => $mod_fcgid_starter,
|
|
|
|
'mod_fcgid_starter' => $mod_fcgid_starter,
|
|
|
|
@@ -1615,7 +1632,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
$wwwserveralias = ($serveraliasoption == '1') ? '1' : '0';
|
|
|
|
$wwwserveralias = ($serveraliasoption == '1') ? '1' : '0';
|
|
|
|
$iswildcarddomain = ($serveraliasoption == '0') ? '1' : '0';
|
|
|
|
$iswildcarddomain = ($serveraliasoption == '0') ? '1' : '0';
|
|
|
|
|
|
|
|
|
|
|
|
if ($documentroot != $result['documentroot'] || $ssl_redirect != $result['ssl_redirect'] || $wwwserveralias != $result['wwwserveralias'] || $iswildcarddomain != $result['iswildcarddomain'] || $openbasedir != $result['openbasedir'] || $phpsettingid != $result['phpsettingid'] || $mod_fcgid_starter != $result['mod_fcgid_starter'] || $mod_fcgid_maxrequests != $result['mod_fcgid_maxrequests'] || $specialsettings != $result['specialsettings'] || $aliasdomain != $result['aliasdomain'] || $issubof != $result['ismainbutsubto'] || $email_only != $result['email_only'] || ($speciallogfile != $result['speciallogfile'] && $speciallogverified == '1') || $letsencrypt != $result['letsencrypt'] || $hsts_maxage != $result['hsts'] || $hsts_sub != $result['hsts_sub'] || $hsts_preload != $result['hsts_preload']) {
|
|
|
|
if ($documentroot != $result['documentroot'] || $ssl_redirect != $result['ssl_redirect'] || $wwwserveralias != $result['wwwserveralias'] || $iswildcarddomain != $result['iswildcarddomain'] || $phpenabled != $result['phpenabled'] || $openbasedir != $result['openbasedir'] || $phpsettingid != $result['phpsettingid'] || $mod_fcgid_starter != $result['mod_fcgid_starter'] || $mod_fcgid_maxrequests != $result['mod_fcgid_maxrequests'] || $specialsettings != $result['specialsettings'] || $aliasdomain != $result['aliasdomain'] || $issubof != $result['ismainbutsubto'] || $email_only != $result['email_only'] || ($speciallogfile != $result['speciallogfile'] && $speciallogverified == '1') || $letsencrypt != $result['letsencrypt'] || $hsts_maxage != $result['hsts'] || $hsts_sub != $result['hsts_sub'] || $hsts_preload != $result['hsts_preload']) {
|
|
|
|
inserttask('1');
|
|
|
|
inserttask('1');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1756,6 +1773,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
$update_data['zonefile'] = $zonefile;
|
|
|
|
$update_data['zonefile'] = $zonefile;
|
|
|
|
$update_data['wwwserveralias'] = $wwwserveralias;
|
|
|
|
$update_data['wwwserveralias'] = $wwwserveralias;
|
|
|
|
$update_data['iswildcarddomain'] = $iswildcarddomain;
|
|
|
|
$update_data['iswildcarddomain'] = $iswildcarddomain;
|
|
|
|
|
|
|
|
$update_data['phpenabled'] = $phpenabled;
|
|
|
|
$update_data['openbasedir'] = $openbasedir;
|
|
|
|
$update_data['openbasedir'] = $openbasedir;
|
|
|
|
$update_data['speciallogfile'] = $speciallogfile;
|
|
|
|
$update_data['speciallogfile'] = $speciallogfile;
|
|
|
|
$update_data['phpsettingid'] = $phpsettingid;
|
|
|
|
$update_data['phpsettingid'] = $phpsettingid;
|
|
|
|
@@ -1787,6 +1805,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
`zonefile` = :zonefile,
|
|
|
|
`zonefile` = :zonefile,
|
|
|
|
`wwwserveralias` = :wwwserveralias,
|
|
|
|
`wwwserveralias` = :wwwserveralias,
|
|
|
|
`iswildcarddomain` = :iswildcarddomain,
|
|
|
|
`iswildcarddomain` = :iswildcarddomain,
|
|
|
|
|
|
|
|
`phpenabled` = :phpenabled,
|
|
|
|
`openbasedir` = :openbasedir,
|
|
|
|
`openbasedir` = :openbasedir,
|
|
|
|
`speciallogfile` = :speciallogfile,
|
|
|
|
`speciallogfile` = :speciallogfile,
|
|
|
|
`phpsettingid` = :phpsettingid,
|
|
|
|
`phpsettingid` = :phpsettingid,
|
|
|
|
@@ -1806,6 +1825,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
|
|
|
|
|
|
|
|
$_update_data['customerid'] = $customerid;
|
|
|
|
$_update_data['customerid'] = $customerid;
|
|
|
|
$_update_data['adminid'] = $adminid;
|
|
|
|
$_update_data['adminid'] = $adminid;
|
|
|
|
|
|
|
|
$_update_data['phpenabled'] = $phpenabled;
|
|
|
|
$_update_data['openbasedir'] = $openbasedir;
|
|
|
|
$_update_data['openbasedir'] = $openbasedir;
|
|
|
|
$_update_data['phpsettingid'] = $phpsettingid;
|
|
|
|
$_update_data['phpsettingid'] = $phpsettingid;
|
|
|
|
$_update_data['mod_fcgid_starter'] = $mod_fcgid_starter;
|
|
|
|
$_update_data['mod_fcgid_starter'] = $mod_fcgid_starter;
|
|
|
|
@@ -1824,6 +1844,7 @@ if ($page == 'domains' || $page == 'overview') {
|
|
|
|
UPDATE `" . TABLE_PANEL_DOMAINS . "` SET
|
|
|
|
UPDATE `" . TABLE_PANEL_DOMAINS . "` SET
|
|
|
|
`customerid` = :customerid,
|
|
|
|
`customerid` = :customerid,
|
|
|
|
`adminid` = :adminid,
|
|
|
|
`adminid` = :adminid,
|
|
|
|
|
|
|
|
`phpenabled` = :phpenabled,
|
|
|
|
`openbasedir` = :openbasedir,
|
|
|
|
`openbasedir` = :openbasedir,
|
|
|
|
`phpsettingid` = :phpsettingid,
|
|
|
|
`phpsettingid` = :phpsettingid,
|
|
|
|
`mod_fcgid_starter` = :mod_fcgid_starter,
|
|
|
|
`mod_fcgid_starter` = :mod_fcgid_starter,
|
|
|
|
|