From 0487143396bc3c349fbd47cce39921594d9f65d3 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 16 May 2011 09:52:44 -0400 Subject: Use the settings variable and not $_POST directly. --- config/ntop2/ntop.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/ntop2/ntop.xml') 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", -- cgit v1.2.3