Project

General

Profile

« Previous | Next » 

Revision 0380704f

Added by Ermal LUÇI almost 14 years ago

To avoid any possible issues during the different paths of the workflow create the zone since its first step

View differences:

usr/local/www/services_captiveportal_zones_edit.php
76 76
		$a_cp[$cpzone]['descr'] = $_POST['descr'];
77 77
		write_config();
78 78

  
79
		/* make sure ipfw is loaded */
80
		if (!is_module_loaded("ipfw.ko"))
81
			filter_load_ipfw();
82
		mwexec("/usr/local/sbin/ipfw_context -a {$cpzone}", true);
83

  
79 84
		header("Location: services_captiveportal.php?zone={$cpzone}");
80 85
		exit;
81 86
	}

Also available in: Unified diff