andre 4 mesi fa
parent
commit
548b283579

+ 9 - 0
app/UI/Client/Setting/Providers/InfoSettingDataProvider.php

@@ -61,6 +61,15 @@ class InfoSettingDataProvider extends BaseDataProvider
         $dnsRecords = $dns->getRecords($maildomain);
         $dnsRecords['selfdns'] ? $selfDns = 1 : $selfDns = 0;
         $this->mxthurdata = $this->getWhmcsParamByKey('serverhostname');
+
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $dnsRecords,
+            'DEbug',
+            $this->mxthurdata
+        );
+
         if(empty($dnsRecords['mx'])){
             $mx = 'unset';
         } else {

+ 2 - 3
core/Helper/DnsHelper.php

@@ -170,7 +170,6 @@ class DnsHelper
             array_push($zoneRecords, $record);
         }
 
-
         logModuleCall(
             'kerioEmail',
             __FUNCTION__,
@@ -179,7 +178,7 @@ class DnsHelper
             $zoneRecords
         );
 
-        $result = localAPI('dnsmanager' ,
+/*        $result = localAPI('dnsmanager' ,
             array(
                 'dnsaction' => 'updateZone',
                 'zone_id' => $zoneID,
@@ -188,7 +187,7 @@ class DnsHelper
         );
         if($result['result'] != 'success') {
             return 'Error: cloud not update zone for ID ' . $zoneID;
-        } 
+        } */
         return 'success';
     }