SF.net SVN: postfixadmin:[1201] trunk/create-mailbox.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2011-10-11 20:14:32
|
Revision: 1201 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1201&view=rev Author: christian_boltz Date: 2011-10-11 20:14:26 +0000 (Tue, 11 Oct 2011) Log Message: ----------- 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 Modified Paths: -------------- trunk/create-mailbox.php Modified: trunk/create-mailbox.php =================================================================== --- trunk/create-mailbox.php 2011-10-10 22:15:16 UTC (rev 1200) +++ trunk/create-mailbox.php 2011-10-11 20:14:26 UTC (rev 1201) @@ -63,7 +63,7 @@ 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 @@ db_log ($fDomain, 'create_mailbox', "$fUsername"); $tDomain = $fDomain; - $tQuota = $CONF['maxquota']; + $tQuota = allowed_quota($tDomain, 0); if ($fMail == "on") { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |