From 630533c484ff6ffc735b70b064efc041100a2b9f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 9 Dec 2006 02:17:20 +0000 Subject: * Cleanup status * Import XMLRPC file --- packages/tinydns/tinydns_xmlrpc_sync.php | 111 +++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 packages/tinydns/tinydns_xmlrpc_sync.php (limited to 'packages/tinydns/tinydns_xmlrpc_sync.php') diff --git a/packages/tinydns/tinydns_xmlrpc_sync.php b/packages/tinydns/tinydns_xmlrpc_sync.php new file mode 100644 index 00000000..6c6ef5a2 --- /dev/null +++ b/packages/tinydns/tinydns_xmlrpc_sync.php @@ -0,0 +1,111 @@ +setCredentials('admin', $password); + if($g['debug']) + $cli->setDebug(1); + /* send our XMLRPC message and timeout after 240 seconds */ + $resp = $cli->send($msg, "999"); + if(!$resp) { + $error = "A communications error occured while attempting tinydns XMLRPC sync with {$url}:{$port}."; + log_error($error); + file_notice("sync_settings", $error, "tinydns Settings Sync", ""); + } elseif($resp->faultCode()) { + $error = "An error code was received while attempting tinydns XMLRPC sync with {$url}:{$port} - Code " . $resp->faultCode() . ": " . $resp->faultString(); + log_error($error); + file_notice("sync_settings", $error, "tinydns Settings Sync", ""); + } else { + log_error("tinydns XMLRPC sync successfully completed with {$url}:{$port}."); + } + log_error("[tinydns] tinydns_xmlrpc_sync.php is ending."); +} + +?> \ No newline at end of file -- cgit v1.2.3