--- edit-mailbox.php.original 2008-12-28 07:06:19.000000000 -0700 +++ edit-mailbox.php 2008-12-28 07:06:19.000000000 -0700 @@ -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)) @@ -158,6 +159,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");