|
|
@@ -156,8 +156,7 @@ class Aliases extends DataTable implements ClientArea
|
|
|
return ['error' => $error->getMessage()];
|
|
|
}
|
|
|
foreach($domains as $maildomain) {
|
|
|
-// if(($maildomain['name']) === $this->getWhmcsParamByKey('domain')){
|
|
|
- if(($maildomain['name']) === 'curarex.ch'){
|
|
|
+ if(($maildomain['name']) === $this->getWhmcsParamByKey('domain')){
|
|
|
$this->maildomainID = $maildomain['id'];
|
|
|
$this->maildomain = $maildomain['name'];
|
|
|
}
|
|
|
@@ -176,21 +175,9 @@ class Aliases extends DataTable implements ClientArea
|
|
|
}
|
|
|
$api->logout();
|
|
|
|
|
|
-/* $accounts =(new KerioManager())
|
|
|
- ->getApiByHosting($hid)
|
|
|
- ->soap
|
|
|
- ->repository()
|
|
|
- ->accounts
|
|
|
- ->getByDomainName($hosting->domain); */
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $accCount,
|
|
|
- 'Debug Error',
|
|
|
- $this->maildomain
|
|
|
- );
|
|
|
-
|
|
|
+ if ($accCount > 0) {
|
|
|
return FALSE;
|
|
|
+ }
|
|
|
+ return TRUE;
|
|
|
}
|
|
|
}
|