Revision 3a343d73
Added by Jim Pingle almost 13 years ago
usr/local/www/firewall_shaper_layer7.php | ||
---|---|---|
151 | 151 |
unset($non_dupes); |
152 | 152 |
if(sizeof($dupes) == 0 && !$input_errors) { |
153 | 153 |
$l7r->wconfig(); |
154 |
write_config();
|
|
155 |
mark_subsystem_dirty('shaper'); |
|
154 |
if (write_config())
|
|
155 |
mark_subsystem_dirty('shaper');
|
|
156 | 156 |
|
157 | 157 |
read_layer7_config(); |
158 | 158 |
} |
... | ... | |
195 | 195 |
} |
196 | 196 |
} else if ($_POST['delete']) { |
197 | 197 |
$container->delete_l7c(); |
198 |
write_config();
|
|
199 |
mark_subsystem_dirty('shaper'); |
|
198 |
if (write_config())
|
|
199 |
mark_subsystem_dirty('shaper');
|
|
200 | 200 |
unset($container); |
201 | 201 |
|
202 | 202 |
header("Location: firewall_shaper_layer7.php"); |
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.