create-domain.php: if the user makes a domain a backup mx, then accept whatever they type in for mailboxes/aliases

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@569 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent 5a9de37a65
commit f59423c8d6

@ -108,9 +108,6 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
if ($fBackupmx == "on")
{
$fAliases = -1;
$fMailboxes = -1;
$fMaxquota = -1;
$fBackupmx = 1;
$sqlBackupmx = db_get_boolean(true);
}
@ -119,6 +116,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
$fBackupmx = 0;
$sqlBackupmx = db_get_boolean(false);
}
$sql_query = "INSERT INTO $table_domain (domain,description,aliases,mailboxes,maxquota,transport,backupmx,created,modified) VALUES ('$fDomain','$fDescription',$fAliases,$fMailboxes,$fMaxquota,'$fTransport',$sqlBackupmx,NOW(),NOW())";
$result = db_query($sql_query);
if ($result['rows'] != 1)

Loading…
Cancel
Save