andre пре 6 месеци
родитељ
комит
7b00b207ef
1 измењених фајлова са 4 додато и 5 уклоњено
  1. 4 5
      core/Helper/DnsHelper.php

+ 4 - 5
core/Helper/DnsHelper.php

@@ -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()