diff options
author | Rafael Lucas <rafalucas.unicamp@gmail.com> | 2010-07-23 15:02:20 -0300 |
---|---|---|
committer | Rafael Lucas <rafalucas.unicamp@gmail.com> | 2010-07-23 15:02:20 -0300 |
commit | e32848aeadc8b16453b8b7a228290d73006ecfe1 (patch) | |
tree | 22216afcd1bb67ec859f5dcaf5bcd703d8238097 /usr/local/www/services_captiveportal_mac_edit.php | |
parent | d6d09c70f187910f3422fec366d5ce741483f398 (diff) | |
download | pfsense-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-x | usr/local/www/services_captiveportal_mac_edit.php | 7 |
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; |