aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-15 20:46:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-15 20:46:32 +0000
commit1d01dc525218eb7b3b79b819e0e3f0e29b10d822 (patch)
tree7732d8c6eb4922d46b7decf0ab996213bf793d51 /packages
parente0045b072b6b40661eeeb4071f55a1b436b0a497 (diff)
downloadpfsense-packages-1d01dc525218eb7b3b79b819e0e3f0e29b10d822.tar.gz
pfsense-packages-1d01dc525218eb7b3b79b819e0e3f0e29b10d822.tar.bz2
pfsense-packages-1d01dc525218eb7b3b79b819e0e3f0e29b10d822.zip
Misc cleanups
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