summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac_edit.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-07-17 17:56:11 -0400
committerChris Buechler <cmb@pfsense.org>2010-07-17 17:56:11 -0400
commit28f4a00a9ce3f67df8540d0573d4eda0816610f3 (patch)
tree4672b28e69ebd9a97a58cfb74b0c5b295281527d /usr/local/www/services_captiveportal_mac_edit.php
parentddd59e52bb12f3fb25529856209261f8d840cafb (diff)
downloadpfsense-28f4a00a9ce3f67df8540d0573d4eda0816610f3.zip
pfsense-28f4a00a9ce3f67df8540d0573d4eda0816610f3.tar.gz
correctly add new pass-through MAC entries
Diffstat (limited to 'usr/local/www/services_captiveportal_mac_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_mac_edit.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/services_captiveportal_mac_edit.php b/usr/local/www/services_captiveportal_mac_edit.php
index b55e750..d5dace5 100755
--- a/usr/local/www/services_captiveportal_mac_edit.php
+++ b/usr/local/www/services_captiveportal_mac_edit.php
@@ -131,11 +131,12 @@ if ($_POST) {
captiveportal_free_ipfw_ruleno($ruleno);
$rules = "delete {$ruleno}\n";
$rules .= "delete " . ++$ruleno . "\n";
- $rules .= captiveportal_passthrumac_configure_entry($mac);
- file_put_contents("{$g['tmp_path']}/tmpmacedit{$id}", $rules);
- mwexec("/sbin/ipfw -q {$g['tmp_path']}/tmpmacedit{$id}");
- @unlink("{$g['tmp_path']}/tmpmacedit{$id}");
}
+
+ $rules .= captiveportal_passthrumac_configure_entry($mac);
+ file_put_contents("{$g['tmp_path']}/tmpmacedit{$id}", $rules);
+ mwexec("/sbin/ipfw -q {$g['tmp_path']}/tmpmacedit{$id}");
+ @unlink("{$g['tmp_path']}/tmpmacedit{$id}");
header("Location: services_captiveportal_mac.php");
exit;
OpenPOWER on IntegriCloud