From e32848aeadc8b16453b8b7a228290d73006ecfe1 Mon Sep 17 00:00:00 2001 From: Rafael Lucas Date: Fri, 23 Jul 2010 15:02:20 -0300 Subject: Corrections gettext calls on services_captiveportal_mac_edit.php --- usr/local/www/services_captiveportal_mac_edit.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'usr') 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; -- cgit v1.1