Project

General

Profile

« Previous | Next » 

Revision b446562b

Added by Renato Botelho almost 11 years ago

Simplify logic

View differences:

usr/local/www/vpn_ipsec_keys.php
54 54
	}
55 55
}
56 56

  
57
if ($_POST) {
58
        if ($_POST['apply']) {
59
		$retval = 0;
60
		$retval = vpn_ipsec_configure();
61
		/* reload the filter in the background */
62
		filter_configure();
63
		$savemsg = get_std_save_message($retval);
64
		if (is_subsystem_dirty('ipsec'))
65
			clear_subsystem_dirty('ipsec');
66
	}
57
if (isset($_POST['apply'])) {
58
	$retval = vpn_ipsec_configure();
59
	/* reload the filter in the background */
60
	filter_configure();
61
	$savemsg = get_std_save_message($retval);
62
	if (is_subsystem_dirty('ipsec'))
63
		clear_subsystem_dirty('ipsec');
67 64
}
68 65

  
69 66
if ($_GET['act'] == "del") {

Also available in: Unified diff