list-virtual.php

- do not hide "add alias" / "add mailbox" links if domain is a backup MX
  (includes some whitespace changes, the "real" change removes 3 lines of code
  checking for the backupmx setting)

edit-domain.php
- do not reset aliases, mailboxes and maxquota to disabled for backup MX domains

These changes should fix 
https://sourceforge.net/forum/forum.php?thread_id=2897067&forum_id=676076


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@571 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 16 years ago
parent 8b05971af9
commit 3a88303088

@ -80,9 +80,6 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
if ($fBackupmx == "on") if ($fBackupmx == "on")
{ {
$fAliases = -1;
$fMailboxes = -1;
$fMaxquota = -1;
$fBackupmx = 1; $fBackupmx = 1;
$sqlBackupmx = db_get_boolean(True); $sqlBackupmx = db_get_boolean(True);
} }

@ -193,20 +193,17 @@ if (isset ($limit)) {
$tDisplay_next = $fDisplay + $page_size; $tDisplay_next = $fDisplay + $page_size;
} }
$backup_mx = $limit['backupmx']; if($limit['aliases'] == 0) {
if($backup_mx == 'f' || $backup_mx == 0) { $tCanAddAlias = true;
if($limit['aliases'] == 0) { }
$tCanAddAlias = true; elseif($limit['alias_count'] < $limit['aliases']) {
} $tCanAddAlias = true;
elseif($limit['alias_count'] < $limit['aliases']) { }
$tCanAddAlias = true; if($limit['mailboxes'] == 0) {
} $tCanAddMailbox = true;
if($limit['mailboxes'] == 0) { }
$tCanAddMailbox = true; elseif($limit['mailbox_count'] < $limit['mailboxes']) {
} $tCanAddMailbox = true;
elseif($limit['mailbox_count'] < $limit['mailboxes']) {
$tCanAddMailbox = true;
}
} }
} }

Loading…
Cancel
Save