From 9dfdfcef0604813948caa723ff7f70d5b95bba06 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Thu, 3 Mar 2005 01:29:38 +0000 Subject: * Make ntop save configuration information in config.xml * Wrap sync_package_ntop() around sync information. * Set $_POST to stored XML configuration if $_POST is not defined. --- packages/ntop/ntop.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/ntop/ntop.xml b/packages/ntop/ntop.xml index 56f19ed0..2aa5ba5b 100644 --- a/packages/ntop/ntop.xml +++ b/packages/ntop/ntop.xml @@ -3,7 +3,6 @@ Diagnostics: NTop ntop 3.0 - true yes Change @@ -54,8 +53,10 @@ + function sync_package_ntop() { conf_mount_rw(); config_lock(); + if($_POST == "") $_POST = $config['installedpackages']['ntop']['config']; if($_POST['password'] == $_POST['passwordagain']) { $interfaces = " -i "; $ifaces=$_POST['iface']; @@ -82,7 +83,11 @@ echo "Passwords do not match!"; exit; } + } + + sync_package_ntop(); + mwexec("/usr/bin/killall ntop"); -- cgit v1.2.3