From c49db631492406ef03faf7df060318fbedfd83cb Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 5 Mar 2015 09:40:32 -0500 Subject: [PATCH] Jettison unused dragtable code from firewall_rules.php, it was broken and inactive and only causing trouble. --- usr/local/www/firewall_rules.php | 94 +------------------------------- 1 file changed, 2 insertions(+), 92 deletions(-) diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 6110afb5e4..c05b0010a9 100644 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -75,54 +75,6 @@ if ($_POST['if']) $ifdescs = get_configured_interface_with_descr(); -// Drag and drop reordering -if($_REQUEST['dragdroporder']) { - // First create a new ruleset array and tmp arrays - $a_filter_before = array(); - $a_filter_order = array(); - $a_filter_order_tmp = array(); - $a_filter_after = array(); - $found = false; - $drag_order = $_REQUEST['dragtable']; - // Next traverse through rules building a new order for interface - for ($i = 0; isset($a_filter[$i]); $i++) { - if(( $_REQUEST['if'] == "FloatingRules" && isset($a_filter[$i]['floating']) ) || ( $a_filter[$i]['interface'] == $_REQUEST['if'] && !isset($a_filter[$i]['floating']) )) { - $a_filter_order_tmp[] = $a_filter[$i]; - $found = true; - } else if (!$found) - $a_filter_before[] = $a_filter[$i]; - else - $a_filter_after[] = $a_filter[$i]; - } - // Reorder rules with the posted order - for ($i = 0; $i

-You must apply the changes in order for them to take effect."), "apply" , gettext("Apply changes") , "firewall_rules.php?if={$_REQUEST['if']}&dragdroporder=true&{$dragtable}"); -} else { - print_info_box_np(gettext("The firewall rule configuration has been changed.") . "
" . gettext("You must apply the changes in order for them to take effect."), "apply", "", true); -} -?> +" . gettext("You must apply the changes in order for them to take effect."), "apply", "", true); ?>
-

- loader -

 

-
@@ -467,7 +407,7 @@ if($_REQUEST['undodrag']) { - + -