summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac_edit.php
diff options
context:
space:
mode:
authorRafael Lucas <rafalucas.unicamp@gmail.com>2010-07-23 15:02:20 -0300
committerRafael Lucas <rafalucas.unicamp@gmail.com>2010-07-23 15:02:20 -0300
commite32848aeadc8b16453b8b7a228290d73006ecfe1 (patch)
tree22216afcd1bb67ec859f5dcaf5bcd703d8238097 /usr/local/www/services_captiveportal_mac_edit.php
parentd6d09c70f187910f3422fec366d5ce741483f398 (diff)
downloadpfsense-e32848aeadc8b16453b8b7a228290d73006ecfe1.zip
pfsense-e32848aeadc8b16453b8b7a228290d73006ecfe1.tar.gz
Corrections gettext calls on services_captiveportal_mac_edit.php
Diffstat (limited to 'usr/local/www/services_captiveportal_mac_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_mac_edit.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_mac_edit.php b/usr/local/www/services_captiveportal_mac_edit.php
index 1ac2e86..3e92bad 100755
--- a/usr/local/www/services_captiveportal_mac_edit.php
+++ b/usr/local/www/services_captiveportal_mac_edit.php
@@ -136,7 +136,14 @@ if ($_POST) {
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 = "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}");
header("Location: services_captiveportal_mac.php");
exit;
OpenPOWER on IntegriCloud