SF.net SVN: postfixadmin:[1413] trunk/functions.inc.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2012-12-28 22:34:19
|
Revision: 1413 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1413&view=rev Author: christian_boltz Date: 2012-12-28 22:34:13 +0000 (Fri, 28 Dec 2012) Log Message: ----------- functions.inc.php: - check_quota(): first check if enforcing quotas is disabled via $CONF[quota] Modified Paths: -------------- trunk/functions.inc.php Modified: trunk/functions.inc.php =================================================================== --- trunk/functions.inc.php 2012-11-13 16:59:32 UTC (rev 1412) +++ trunk/functions.inc.php 2012-12-28 22:34:13 UTC (rev 1413) @@ -612,6 +612,11 @@ function check_quota ($quota, $domain, $username="") { global $CONF; $rval = false; + + if ($CONF['quota'] == "NO") { + return true; # enforcing quotas is disabled - just allow it + } + $limit = get_domain_properties ($domain); if ($limit['maxquota'] == 0) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |