diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-16 10:10:57 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-16 10:10:57 -0400 |
commit | 881c7fe70cb8a66ec1255aca55df807d84c8892c (patch) | |
tree | c371565c9392794572e3dfe8de8c7178d5b5cc14 /src/usr/local | |
parent | 54885c789240f4bf4a20d6a0d11dd199cd7361e5 (diff) | |
download | pfsense-881c7fe70cb8a66ec1255aca55df807d84c8892c.zip pfsense-881c7fe70cb8a66ec1255aca55df807d84c8892c.tar.gz |
Fixed #5145
Direction value was not being saved in config
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/services_captiveportal_ip.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/services_captiveportal_ip_edit.php | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/local/www/services_captiveportal_ip.php b/src/usr/local/www/services_captiveportal_ip.php index dd449c4..bece2cb 100644 --- a/src/usr/local/www/services_captiveportal_ip.php +++ b/src/usr/local/www/services_captiveportal_ip.php @@ -110,7 +110,7 @@ $tab_array[] = array(gettext("Allowed Hostnames"), false, "services_captiveporta $tab_array[] = array(gettext("Vouchers"), false, "services_captiveportal_vouchers.php?zone={$cpzone}"); $tab_array[] = array(gettext("File Manager"), false, "services_captiveportal_filemanager.php?zone={$cpzone}"); display_top_tabs($tab_array, true); - + ?> <div class="table-responsive"> <table class="table table-hover table-striped table-condensed"> diff --git a/src/usr/local/www/services_captiveportal_ip_edit.php b/src/usr/local/www/services_captiveportal_ip_edit.php index fbae54f..18c6590 100644 --- a/src/usr/local/www/services_captiveportal_ip_edit.php +++ b/src/usr/local/www/services_captiveportal_ip_edit.php @@ -138,12 +138,16 @@ if ($_POST) { $ip['ip'] = $_POST['ip']; $ip['sn'] = $_POST['sn']; $ip['descr'] = $_POST['descr']; + $ip['dir'] = $_POST['dir']; + if ($_POST['bw_up']) { $ip['bw_up'] = $_POST['bw_up']; } + if ($_POST['bw_down']) { $ip['bw_down'] = $_POST['bw_down']; } + if (isset($id) && $a_allowedips[$id]) { $oldip = $a_allowedips[$id]['ip']; if (!empty($a_allowedips[$id]['sn'])) { @@ -151,6 +155,7 @@ if ($_POST) { } else { $oldmask = 32; } + $a_allowedips[$id] = $ip; } else { $a_allowedips[] = $ip; |