diff options
author | jim-p <jimp@pfsense.org> | 2011-05-16 09:52:44 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-05-16 09:52:44 -0400 |
commit | 0487143396bc3c349fbd47cce39921594d9f65d3 (patch) | |
tree | 71e7a6c731e639da0a050e0d7f8c3e9a773d7eb8 /config/ntop2 | |
parent | f962ea26a7b039c5692c2fcb4848e5229d38ce09 (diff) | |
download | pfsense-packages-0487143396bc3c349fbd47cce39921594d9f65d3.tar.gz pfsense-packages-0487143396bc3c349fbd47cce39921594d9f65d3.tar.bz2 pfsense-packages-0487143396bc3c349fbd47cce39921594d9f65d3.zip |
Use the settings variable and not $_POST directly.
Diffstat (limited to 'config/ntop2')
-rw-r--r-- | config/ntop2/ntop.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/ntop2/ntop.xml b/config/ntop2/ntop.xml index eff70ae3..d5eaab0e 100644 --- a/config/ntop2/ntop.xml +++ b/config/ntop2/ntop.xml @@ -115,7 +115,7 @@ if($ntop_config['password'] and $ntop_config['passwordagain']) { if($ntop_config['password'] == $ntop_config['passwordagain']) { $first = 0; - foreach($_POST['interface_array'] as $iface) { + foreach($ntop_config['interface_array'] as $iface) { $if = convert_friendly_interface_to_real_interface_name($iface); if($if) { if($first == 1) @@ -124,7 +124,7 @@ $first = 1; } } - exec("/usr/local/bin/ntop --set-admin-password=" . $_POST['password'] . " &", $ntopout); + exec("/usr/local/bin/ntop --set-admin-password=" . $ntop_config['password'] . " &", $ntopout); $start = "/usr/local/bin/ntop -i " . $ifaces_final . " -u root -d --ipv4 -M -x 8102 -X 8192 &"; write_rcfile(array( "file" => "ntop.sh", |