Project

General

Profile

« Previous | Next » 

Revision 0e7fe2ad

Added by Scott Ullrich over 17 years ago

Cleanup if(). Remove additional save message.

View differences:

usr/local/www/firewall_virtual_ip.php
72 72
}
73 73

  
74 74
if ($_POST['apply']) {
75
	if (file_exists("/tmp/carp_reboot_needed") == "del") {
75
	if (file_exists("/tmp/carp_reboot_needed")) {
76 76
		$savemsg = "The firewall is now rebooting, please wait.";	
77 77
		unlink_if_exists($d_vipconfdirty_path);
78 78
	}
......
89 89
<?php 
90 90
	if ($input_errors) 
91 91
		print_input_errors($input_errors);
92
	else
93
	if ($savemsg) 
92
	else if ($savemsg) 
94 93
		print_info_box($savemsg); 
95
	else
96
	if (file_exists($d_vipconfdirty_path))
94
	else if (file_exists($d_vipconfdirty_path))
97 95
		print_info_box_np("The VIP configuration has been changed.<br>You must apply the changes in order for them to take effect.");
98 96
?>
99 97
<p>
......
200 198
			reset_carp();
201 199
			$retval |= filter_configure();
202 200
			config_unlock();
203

  
204
			$savemsg = get_std_save_message($retval);
201
			
205 202
			unlink_if_exists($d_vipconfdirty_path);
206 203
		}
207 204
	}

Also available in: Unified diff