Procházet zdrojové kódy

clientareafunctions

andre před 3 roky
rodič
revize
62adfd7361
1 změnil soubory, kde provedl 11 přidání a 2 odebrání
  1. 11 2
      cwp7.php

+ 11 - 2
cwp7.php

@@ -584,14 +584,23 @@ function cwp7_setDNS($params) {
             array_push($zoneRecords, $record);
         };
     }
-
+    $result = localAPI('dnsmanager' ,
+        array(
+            'dnsaction' => 'updateZone',
+            'zone_id' => $zoneID,
+            'records' => $zoneRecords,
+        )
+    );
 	logModuleCall(
 		'cwp7',
 		__FUNCTION__,
 		$dnsZone,
 		'debug custom',
-		$zoneRecords
+		$result
 	);
+    if($result['result'] != 'success') {
+        return 'Error: cloud not update zone for ID ' . $zoneID;
+    }
 	return 'success';
 }