|
|
@@ -29,10 +29,10 @@ class DnsHelper
|
|
|
$productManager->loadById($this->params['pid']);
|
|
|
$this->spfConfig = $productManager->get('spf_string');
|
|
|
$this->dmarcConfig = $productManager->get('dmarc_string');
|
|
|
-/* $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
+ $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
try {
|
|
|
- $api->login($this->params['serverhostname'], $this->params['username'], $this->params['password']);
|
|
|
- } catch (KerioApiException $error) { */
|
|
|
+ $api->login($this->params['serverhostname'], $this->params['serverusername'], $this->params['serverpassword']);
|
|
|
+ } catch (KerioApiException $error) {
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
|
@@ -40,8 +40,7 @@ class DnsHelper
|
|
|
'Error: cannot login to ' . $this->params['kerioServer'],
|
|
|
$this->server
|
|
|
);
|
|
|
- /* exit();
|
|
|
- } */
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public function KerioEmailCheckDNS()
|