|
|
@@ -160,19 +160,33 @@ class Accounts extends DataTable implements ClientArea
|
|
|
);
|
|
|
return ['error' => $error->getMessage()];
|
|
|
}
|
|
|
- $api->logout();
|
|
|
foreach($domains as $maildomain) {
|
|
|
if(($maildomain['name']) === $this->getWhmcsParamByKey('domain')){
|
|
|
- $this->maildomain = $maildomain['id'];
|
|
|
+ $this->maildomainID = $maildomain['id'];
|
|
|
}
|
|
|
}
|
|
|
$productManager = new ProductManager();
|
|
|
$productManager->loadByHostingId($hosting->id);
|
|
|
|
|
|
+ $accounts = $api->getUsers([''],$this->maildomainID);
|
|
|
+
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'kerioEmail',
|
|
|
+ __FUNCTION__,
|
|
|
+ $accounts,
|
|
|
+ 'Debug Accounts',
|
|
|
+ $this->maildomainID
|
|
|
+ );
|
|
|
+
|
|
|
/**
|
|
|
* format model to array
|
|
|
*/
|
|
|
$data = [];
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ $api->logout();
|
|
|
/* foreach ($accounts as $account)
|
|
|
{
|
|
|
|