|
|
@@ -199,6 +199,7 @@ function zimbraSingle_ClientArea($params) {
|
|
|
}
|
|
|
$webmailUrl = zimbraSingleFindAll($accountInfo, 'PUBLICMAILURL');
|
|
|
$clientInfo['webmailurl'] = $webmailUrl[0]['DATA'];
|
|
|
+ $clientInfo['quota'] = $params['configoption2'];
|
|
|
return array(
|
|
|
'vars' => $clientInfo,
|
|
|
);
|
|
|
@@ -606,6 +607,7 @@ function zimbraSingle_ChangePackage($params) {
|
|
|
);
|
|
|
return 'Error: could not set class of service for '. $params['username'];
|
|
|
}
|
|
|
+ $baseQuota = $params['configoption2'] ? $params['configoption2'] : 1;
|
|
|
$addonQuota = $params['configoptions']['addonQuota'] ? $params['configoptions']['addonQuota'] : 0;
|
|
|
$newAddQuota = $params['configoptions']['newAddQuota'] ? $params['configoptions']['newAddQuota'] : 0;
|
|
|
$attrs['zimbraMailQuota'] = ($baseQuota + $addonQuota +$newAddQuota) * 1073741824;
|