diff options
Diffstat (limited to 'src')
-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; |