From e4c784bfeb5d9bad4c65c421cefb767af0b164dd Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 7 Jul 2016 16:27:41 +0930 Subject: Fix #6582 Allow import of ports This change does: 1) Allow bulk import of a port alias. That happens when the Import button is pressed from the Ports tab of the firewall_aliases screen. 2) Allow bulk import of an IP alias, automatically determine if the imported data fits a host or network alias type. That happens when the Import button is pressed from the IP tab of the firewall_aliases screen. 3) When Import is pressed from the "All" tab of the firewall_aliases screen, make an IP alias. 4) Do not display the Import button when on the URL tab of the firewall_aliases screen. --- src/usr/local/www/firewall_aliases.php | 8 +- src/usr/local/www/firewall_aliases_import.php | 102 ++++++++++++++++++++------ 2 files changed, 85 insertions(+), 25 deletions(-) (limited to 'src/usr/local') diff --git a/src/usr/local/www/firewall_aliases.php b/src/usr/local/www/firewall_aliases.php index f5afe68..b97fa63 100644 --- a/src/usr/local/www/firewall_aliases.php +++ b/src/usr/local/www/firewall_aliases.php @@ -306,10 +306,16 @@ display_top_tabs($tab_array); - + + +