|
@@ -117,17 +117,6 @@ class DnsHelper
|
|
|
|
|
|
|
|
public function updateDNS($zoneID,$dnsParams)
|
|
public function updateDNS($zoneID,$dnsParams)
|
|
|
{
|
|
{
|
|
|
- $nameServer = localAPI('DomainGetNameservers', ['domainid' => $zoneID]);
|
|
|
|
|
-
|
|
|
|
|
- logModuleCall(
|
|
|
|
|
- 'kerioEmail',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $zoneID,
|
|
|
|
|
- 'DEbug',
|
|
|
|
|
- $nameServer
|
|
|
|
|
- );
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
$dnsZone = localAPI('dnsmanager', array( 'dnsaction' => 'getZone', 'zone_id' => $zoneID));
|
|
$dnsZone = localAPI('dnsmanager', array( 'dnsaction' => 'getZone', 'zone_id' => $zoneID));
|
|
|
if($dnsZone['result'] != 'success') {
|
|
if($dnsZone['result'] != 'success') {
|
|
|
return 'Error: cloud not fetch zone for ID ' . $zoneID;
|
|
return 'Error: cloud not fetch zone for ID ' . $zoneID;
|
|
@@ -192,7 +181,7 @@ class DnsHelper
|
|
|
$zoneRecords
|
|
$zoneRecords
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
- $result = localAPI('dnsmanager' ,
|
|
|
|
|
|
|
+/* $result = localAPI('dnsmanager' ,
|
|
|
array(
|
|
array(
|
|
|
'dnsaction' => 'updateZone',
|
|
'dnsaction' => 'updateZone',
|
|
|
'zone_id' => $zoneID,
|
|
'zone_id' => $zoneID,
|
|
@@ -201,7 +190,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';
|
|
|
}
|
|
}
|
|
|
|
|
|