|
|
@@ -121,9 +121,17 @@ function KerioEmail_ClientArea()
|
|
|
{
|
|
|
require_once __DIR__ . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'App' . DIRECTORY_SEPARATOR . 'AppContext.php';
|
|
|
|
|
|
- $appContext = new AppContext();
|
|
|
-
|
|
|
- return $appContext->runApp(__FUNCTION__);
|
|
|
+ $appContext = new AppContext();
|
|
|
+ $productManager = new ProductManager;
|
|
|
+ $productManager->loadByHostingId($params['serviceid']);
|
|
|
+ $domainBaseSize = $productManager->get('domainBaseSize') ? $productManager->get('domainBaseSize') : 0;
|
|
|
+ $acc_base = $productManager->get('acc_base') ? $productManager->get('acc_base') : 0;
|
|
|
+ $response = $appContext->runApp('clientarea', $params);
|
|
|
+ $response['templateVariables']['acc_base'] = $acc_base;
|
|
|
+ $response['templateVariables']['acc_add'] = $params['configoptions']['acc_add'] ? $params['configoptions']['acc_add'] : 0;
|
|
|
+ $response['templateVariables']['domainBaseSize'] = $domainBaseSize;
|
|
|
+ $response['templateVariables']['domainAddSize'] = $params['configoptions']['domainAddSize'] ? $params['configoptions']['domainAddSize'] : 0;
|
|
|
+ return $response;
|
|
|
}
|
|
|
|
|
|
function KerioEmail_ListAccounts($params)
|