diff options
author | Ermal <eri@pfsense.org> | 2011-06-27 20:43:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-06-27 20:43:58 +0000 |
commit | ca1a3fc230880beae13ea37c2f71218951eb622e (patch) | |
tree | 635d7309355d7de8f5a0efc3122da6ad59dd173d | |
parent | b0d6223f89007156e93fa6bb76fe92f9300b11b3 (diff) | |
download | pfsense-ca1a3fc230880beae13ea37c2f71218951eb622e.zip pfsense-ca1a3fc230880beae13ea37c2f71218951eb622e.tar.gz |
Clean up leftover code not needed for anything.
-rwxr-xr-x | usr/local/www/services_captiveportal_hostname_edit.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/usr/local/www/services_captiveportal_hostname_edit.php b/usr/local/www/services_captiveportal_hostname_edit.php index a199341..cc09459 100755 --- a/usr/local/www/services_captiveportal_hostname_edit.php +++ b/usr/local/www/services_captiveportal_hostname_edit.php @@ -118,17 +118,11 @@ if ($_POST) { $ip['bw_up'] = $_POST['bw_up']; if ($_POST['bw_down']) $ip['bw_down'] = $_POST['bw_down']; - if (isset($id) && $a_allowedhostnames[$id]) { - $oldip = $a_allowedhostnames[$id]['hostname']; - if (!empty($a_allowedhostnames[$id]['sn'])) - $oldip .= "/{$a_allowedhostnames[$id]['sn']}"; + if (isset($id) && $a_allowedhostnames[$id]) $a_allowedhostnames[$id] = $ip; - } else { - $oldip = $ip['hostname']; - if (!empty($$ip['sn'])) - $oldip .= "/{$$ip['sn']}"; + else $a_allowedhostnames[] = $ip; - } + allowedhostnames_sort(); write_config(); |