From 0380704f81e5e9eed7e5fe866a69632a3dddd79f Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 15 Sep 2011 19:28:25 +0000 Subject: To avoid any possible issues during the different paths of the workflow create the zone since its first step --- usr/local/www/services_captiveportal_zones_edit.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'usr/local') diff --git a/usr/local/www/services_captiveportal_zones_edit.php b/usr/local/www/services_captiveportal_zones_edit.php index 169a761..3603a24 100644 --- a/usr/local/www/services_captiveportal_zones_edit.php +++ b/usr/local/www/services_captiveportal_zones_edit.php @@ -76,6 +76,11 @@ if ($_POST) { $a_cp[$cpzone]['descr'] = $_POST['descr']; write_config(); + /* make sure ipfw is loaded */ + if (!is_module_loaded("ipfw.ko")) + filter_load_ipfw(); + mwexec("/usr/local/sbin/ipfw_context -a {$cpzone}", true); + header("Location: services_captiveportal.php?zone={$cpzone}"); exit; } -- cgit v1.1