aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/tinydns/tinydns_xmlrpc_sync.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/tinydns/tinydns_xmlrpc_sync.php b/packages/tinydns/tinydns_xmlrpc_sync.php
index 69404df3..752fd0e3 100644
--- a/packages/tinydns/tinydns_xmlrpc_sync.php
+++ b/packages/tinydns/tinydns_xmlrpc_sync.php
@@ -30,27 +30,24 @@
/* NOTE: this file gets included from the pfSense filter.inc plugin process */
+require_once("config.inc");
require_once("/usr/local/pkg/tinydns.inc");
require_once("service-utils.inc");
if(!$config) {
log_error("\$config is not enabled from tinydns_xmlrpc_sync.php!!");
} else {
- if(!$g['booting'])
- tinydns_do_xmlrpc_sync();
-}
-
if($config['installedpackages']['carpsettings']['config'])
$password = $config['installedpackages']['carpsettings']['config'][0]['password'];
if($config['installedpackages']['carpsettings']['config'])
$syncip = $config['installedpackages']['carpsettings']['config'][0]['synchronizetoip'];
if($config['installedpackages']['carpsettings']['config'])
$syncxmlrpc = $config['installedpackages']['tinydns']['config'][0]['syncxmlrpc'];
-
/* option enabled? */
if($syncxmlrpc)
if($syncip)
if($password)
- tinydns_do_xmlrpc_sync($syncip, $password)
+ tinydns_do_xmlrpc_sync($syncip, $password);
+}
?> \ No newline at end of file