summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_hostname_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-27 20:43:58 +0000
committerErmal <eri@pfsense.org>2011-06-27 20:43:58 +0000
commitca1a3fc230880beae13ea37c2f71218951eb622e (patch)
tree635d7309355d7de8f5a0efc3122da6ad59dd173d /usr/local/www/services_captiveportal_hostname_edit.php
parentb0d6223f89007156e93fa6bb76fe92f9300b11b3 (diff)
downloadpfsense-ca1a3fc230880beae13ea37c2f71218951eb622e.zip
pfsense-ca1a3fc230880beae13ea37c2f71218951eb622e.tar.gz
Clean up leftover code not needed for anything.
Diffstat (limited to 'usr/local/www/services_captiveportal_hostname_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_hostname_edit.php12
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();
OpenPOWER on IntegriCloud