andre пре 4 месеци
родитељ
комит
548b283579
2 измењених фајлова са 11 додато и 3 уклоњено
  1. 9 0
      app/UI/Client/Setting/Providers/InfoSettingDataProvider.php
  2. 2 3
      core/Helper/DnsHelper.php

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

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

+ 2 - 3
core/Helper/DnsHelper.php

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