|
|
@@ -117,30 +117,13 @@ function KerioEmail_MetaData()
|
|
|
return $appContext->runApp(__FUNCTION__);
|
|
|
}
|
|
|
|
|
|
-function KerioEmail_AdminSingleSignOn($params)
|
|
|
+function KerioEmail_ClientArea()
|
|
|
{
|
|
|
require_once __DIR__ . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'App' . DIRECTORY_SEPARATOR . 'AppContext.php';
|
|
|
|
|
|
$appContext = new AppContext();
|
|
|
|
|
|
- return $appContext->runApp(__FUNCTION__, $params);
|
|
|
-}
|
|
|
-
|
|
|
-function KerioEmail_ClientArea($params)
|
|
|
-{
|
|
|
- require_once __DIR__ . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'App' . DIRECTORY_SEPARATOR . 'AppContext.php';
|
|
|
-
|
|
|
- $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;
|
|
|
+ return $appContext->runApp(__FUNCTION__);
|
|
|
}
|
|
|
|
|
|
function KerioEmail_ListAccounts($params)
|