Revision 3a343d73
Added by Jim Pingle almost 13 years ago
usr/local/www/firewall_rules.php | ||
---|---|---|
210 | 210 |
delete_nat_association($a_filter[$_GET['id']]['associated-rule-id']); |
211 | 211 |
} |
212 | 212 |
unset($a_filter[$_GET['id']]); |
213 |
$retval = write_config(); |
|
214 |
if ($retval) |
|
213 |
if (write_config()) |
|
215 | 214 |
mark_subsystem_dirty('filter'); |
216 | 215 |
header("Location: firewall_rules.php?if={$if}"); |
217 | 216 |
exit; |
... | ... | |
229 | 228 |
delete_nat_association($a_filter[$rulei]['associated-rule-id']); |
230 | 229 |
unset($a_filter[$rulei]); |
231 | 230 |
} |
232 |
$retval = write_config(); |
|
233 |
if ($retval) |
|
231 |
if (write_config()) |
|
234 | 232 |
mark_subsystem_dirty('filter'); |
235 | 233 |
header("Location: firewall_rules.php?if={$if}"); |
236 | 234 |
exit; |
... | ... | |
241 | 239 |
unset($a_filter[$_GET['id']]['disabled']); |
242 | 240 |
else |
243 | 241 |
$a_filter[$_GET['id']]['disabled'] = true; |
244 |
$retval = write_config(); |
|
245 |
if ($retval) |
|
242 |
if (write_config()) |
|
246 | 243 |
mark_subsystem_dirty('filter'); |
247 | 244 |
header("Location: firewall_rules.php?if={$if}"); |
248 | 245 |
exit; |
... | ... | |
286 | 283 |
} |
287 | 284 |
|
288 | 285 |
$a_filter = $a_filter_new; |
289 |
$retval = write_config(); |
|
290 |
if ($retval) |
|
286 |
if (write_config()) |
|
291 | 287 |
mark_subsystem_dirty('filter'); |
292 | 288 |
header("Location: firewall_rules.php?if={$if}"); |
293 | 289 |
exit; |
Also available in: Unified diff
Refine saving/applying on more pages - don't show apply or take an action unless the user is allowed to do that.