From ecaf83995fde3bff07b4f693ad9a311624bf7046 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 8 Feb 2005 18:11:57 +0000 Subject: Save target queue correctly after editing. --- usr/local/www/firewall_shaper_edit.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'usr/local/www/firewall_shaper_edit.php') diff --git a/usr/local/www/firewall_shaper_edit.php b/usr/local/www/firewall_shaper_edit.php index 0e9f547..5d27a30 100755 --- a/usr/local/www/firewall_shaper_edit.php +++ b/usr/local/www/firewall_shaper_edit.php @@ -127,11 +127,7 @@ if (isset($id) && $a_shaper[$id]) { $pconfig['dstmask'], $pconfig['dstnot'], $pconfig['dstbeginport'], $pconfig['dstendport']); - if (isset($a_shaper[$id]['targetpipe'])) { - $pconfig['target'] = "targetpipe:" . $a_shaper[$id]['targetpipe']; - } else if (isset($a_shaper[$id]['targetqueue'])) { - $pconfig['target'] = "targetqueue:" . $a_shaper[$id]['targetqueue']; - } + $pconfig['targetqueue'] = $a_shaper[$id]['targetqueue']; $pconfig['direction'] = $a_shaper[$id]['direction']; $pconfig['iptos'] = $a_shaper[$id]['iptos']; @@ -327,8 +323,7 @@ if ($_POST) { $shaperent['descr'] = $_POST['descr']; $shaperent['disabled'] = $_POST['disabled'] ? true : false; - list($targettype,$target) = explode(":", $_POST['target']); - $shaperent[$targettype] = $target; + $shaperent['targetqueue'] = $_POST['target']; if (isset($id) && $a_shaper[$id]) $a_shaper[$id] = $shaperent; -- cgit v1.1