|
|
@@ -45,7 +45,7 @@ class Settings extends DataTable implements ClientArea
|
|
|
->addColumn((new Column('domain'))
|
|
|
->setOrderable(DataProvider::SORT_ASC)
|
|
|
->setSearchable(true, Column::TYPE_STRING))
|
|
|
- ->addColumn((new Column('active'))
|
|
|
+ ->addColumn((new Column('active(mx)'))
|
|
|
->setOrderable()
|
|
|
->setSearchable(true, Column::TYPE_STRING))
|
|
|
->addColumn((new Column('spf'))
|
|
|
@@ -112,7 +112,7 @@ class Settings extends DataTable implements ClientArea
|
|
|
$api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
try {
|
|
|
$api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword'));
|
|
|
- $domainID = $api->getDomainId($this->getWhmcsParamByKey('domain'));
|
|
|
+ $domains = $api->getDomains(['id','name','aliasList']);
|
|
|
} catch (KerioApiException $error) {
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
@@ -123,6 +123,13 @@ class Settings extends DataTable implements ClientArea
|
|
|
);
|
|
|
return ['error' => $error->getMessage()];
|
|
|
}
|
|
|
+ foreach($domains as $domain) {
|
|
|
+ if(($domain['name']) === $this->getWhmcsParamByKey('domain')){
|
|
|
+ $aliasList = $domain['aliasList'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
$fields = array(
|
|
|
"id",
|
|
|
"name",
|