--- edit-mailbox.php.original 2010-08-08 08:41:14.000000000 -0600 +++ edit-mailbox.php 2010-08-08 08:41:34.000000000 -0600 @@ -115,17 +115,18 @@ $error = 1; } } - if ($CONF['quota'] == "YES") - { - if (!check_quota ($fQuota, $fDomain)) - { - $error = 1; - $tName = $fName; - $tQuota = $fQuota; - $tActive = $fActive; - $pEdit_mailbox_quota_text = $PALANG['pEdit_mailbox_quota_text_error']; - } - } +// Next section commented out by Gary V, mr88talent at yahoo dot com. This allows admins to increase quota. +// if ($CONF['quota'] == "YES") +// { +// if (!check_quota ($fQuota, $fDomain)) +// { +// $error = 1; +// $tName = $fName; +// $tQuota = $fQuota; +// $tActive = $fActive; +// $pEdit_mailbox_quota_text = $PALANG['pEdit_mailbox_quota_text_error']; +// } +// } if ($error != 1) { if (!empty ($fQuota)) @@ -160,6 +161,11 @@ $tMessage = $PALANG['pEdit_mailbox_result_error']; } else { + // Next three lines perform quota change - modification by Gary V, mr88talent at yahoo dot com + $tmp = preg_split ('/@/', $fUsername); + $USERID_LOCALPART = $tmp[0]; + system("sudo /usr/sbin/quotaedit.sh ".$fDomain." ".$USERID_LOCALPART." ". $quota); + db_log ($SESSID_USERNAME, $fDomain, 'edit_mailbox', $fUsername); header ("Location: list-virtual.php?domain=$fDomain");