Răsfoiți Sursa

test multi mx

andre 4 luni în urmă
părinte
comite
3c68236529
1 a modificat fișierele cu 13 adăugiri și 13 ștergeri
  1. 13 13
      core/Helper/DnsHelper.php

+ 13 - 13
core/Helper/DnsHelper.php

@@ -170,7 +170,16 @@ class DnsHelper
             };
             };
             array_push($zoneRecords, $record);
             array_push($zoneRecords, $record);
         }
         }
-        $result = localAPI('dnsmanager' ,
+
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $this->params,
+            'DEbug',
+            $zoneRecords
+        );
+
+/*        $result = localAPI('dnsmanager' ,
             array(
             array(
                 'dnsaction' => 'updateZone',
                 'dnsaction' => 'updateZone',
                 'zone_id' => $zoneID,
                 'zone_id' => $zoneID,
@@ -179,7 +188,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';
     }
     }
     
     
@@ -203,16 +212,7 @@ class DnsHelper
             if($record->type == 'MX') continue;
             if($record->type == 'MX') continue;
             array_push($zoneRecords, $record);
             array_push($zoneRecords, $record);
         }
         }
-
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $this->params,
-            'DEbug',
-            $zoneRecords
-        );
-
-/*        $result = localAPI('dnsmanager' ,
+        $result = localAPI('dnsmanager' ,
             array(
             array(
                 'dnsaction' => 'updateZone',
                 'dnsaction' => 'updateZone',
                 'zone_id' => $zoneID,
                 'zone_id' => $zoneID,
@@ -221,7 +221,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';
 }
 }