when adding subdomains as customer, respect the wwwserveralias and iswildcarddomain setting of the parent domain, also when editing a subdomain as customer, pre-set the values that were entered before
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -318,7 +318,9 @@ if ($page == 'overview') {
|
|||||||
`documentroot` = :documentroot,
|
`documentroot` = :documentroot,
|
||||||
`aliasdomain` = :aliasdomain,
|
`aliasdomain` = :aliasdomain,
|
||||||
`parentdomainid` = :parentdomainid,
|
`parentdomainid` = :parentdomainid,
|
||||||
|
`wwwserveralias` = :wwwserveralias,
|
||||||
`isemaildomain` = :isemaildomain,
|
`isemaildomain` = :isemaildomain,
|
||||||
|
`iswildcarddomain` = :iswildcarddomain,
|
||||||
`openbasedir` = :openbasedir,
|
`openbasedir` = :openbasedir,
|
||||||
`openbasedir_path` = :openbasedir_path,
|
`openbasedir_path` = :openbasedir_path,
|
||||||
`speciallogfile` = :speciallogfile,
|
`speciallogfile` = :speciallogfile,
|
||||||
@@ -332,6 +334,8 @@ if ($page == 'overview') {
|
|||||||
"documentroot" => $path,
|
"documentroot" => $path,
|
||||||
"aliasdomain" => $aliasdomain != 0 ? $aliasdomain : null,
|
"aliasdomain" => $aliasdomain != 0 ? $aliasdomain : null,
|
||||||
"parentdomainid" => $domain_check['id'],
|
"parentdomainid" => $domain_check['id'],
|
||||||
|
"wwwserveralias" => $domain_check['wwwserveralias'] == '1' ? '1' : '0',
|
||||||
|
"iswildcarddomain" => $domain_check['iswildcarddomain'] == '1' ? '1' : '0',
|
||||||
"isemaildomain" => $domain_check['subcanemaildomain'] == '3' ? '1' : '0',
|
"isemaildomain" => $domain_check['subcanemaildomain'] == '3' ? '1' : '0',
|
||||||
"openbasedir" => $domain_check['openbasedir'],
|
"openbasedir" => $domain_check['openbasedir'],
|
||||||
"openbasedir_path" => $openbasedir_path,
|
"openbasedir_path" => $openbasedir_path,
|
||||||
@@ -478,8 +482,8 @@ if ($page == 'overview') {
|
|||||||
$iswildcarddomain = ($_POST['selectserveralias'] == '0') ? '1' : '0';
|
$iswildcarddomain = ($_POST['selectserveralias'] == '0') ? '1' : '0';
|
||||||
$wwwserveralias = ($_POST['selectserveralias'] == '1') ? '1' : '0';
|
$wwwserveralias = ($_POST['selectserveralias'] == '1') ? '1' : '0';
|
||||||
} else {
|
} else {
|
||||||
$iswildcarddomain = '0';
|
$iswildcarddomain = $result['iswildcarddomain'];
|
||||||
$wwwserveralias = '0';
|
$wwwserveralias = $result['wwwserveralias'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result['parentdomainid'] != '0' && ($result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2') && isset($_POST['isemaildomain'])) {
|
if ($result['parentdomainid'] != '0' && ($result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2') && isset($_POST['isemaildomain'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user