create-mailbox:

- always display correct available quota (using allowed_quota())

Patch by Dale Blount (lnxus@SF),
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3421296&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1201 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 13 years ago
parent ed7019ff5c
commit 8b636bd1ee

@ -63,7 +63,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if ($result['rows'] == 1)
{
$row = db_array ($result['result']);
$tQuota = $row['maxquota'];
$tQuota = allowed_quota($tDomain, 0);
# TODO: check for remaining domain quota, reduce $tQuota if it is lower
# Note: this is dependent on the domain, which means to do it correct we'd have to remove the domain dropdown and hardcode the domain name from ?domain=...
# allowed_quota() will provide the maximum allowed quota
@ -210,7 +210,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
db_log ($fDomain, 'create_mailbox', "$fUsername");
$tDomain = $fDomain;
$tQuota = $CONF['maxquota'];
$tQuota = allowed_quota($tDomain, 0);
if ($fMail == "on")
{

Loading…
Cancel
Save