Revision 808614b1
Added by Renato Botelho about 15 years ago
usr/local/www/firewall_aliases.php | ||
---|---|---|
147 | 147 |
} |
148 | 148 |
} |
149 | 149 |
if($is_alias_referenced == true) { |
150 |
$savemsg = sprintf(gettext("Cannot delete rule. Currently in use by %s"), $referenced_by);
|
|
150 |
$savemsg = sprintf(gettext("Cannot delete rule. Currently in use by %s"), $referenced_by); |
|
151 | 151 |
} else { |
152 | 152 |
unset($a_aliases[$_GET['id']]); |
153 | 153 |
write_config(); |
... | ... | |
169 | 169 |
<form action="firewall_aliases.php" method="post"> |
170 | 170 |
<?php if ($savemsg) print_info_box($savemsg); ?> |
171 | 171 |
<?php if (is_subsystem_dirty('aliases')): ?><p> |
172 |
<?php print_info_box_np gettext("The alias list has been changed.<br>You must apply the changes in order for them to take effect.");?>
|
|
172 |
<?php print_info_box_np(gettext("The alias list has been changed.") . "<br>" . gettext("You must apply the changes in order for them to take effect."));?>
|
|
173 | 173 |
<?php endif; ?> |
174 | 174 |
|
175 | 175 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
... | ... | |
214 | 214 |
<table border="0" cellspacing="0" cellpadding="1"> |
215 | 215 |
<tr> |
216 | 216 |
<td valign="middle"><a href="firewall_aliases_edit.php?id=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" title="<?=gettext("edit alias"); ?>"></a></td> |
217 |
<td><a href="firewall_aliases.php?act=del&id=<?=$i;?>" onclick="return confirm(gettext('Do you really want to delete this alias? All elements that still use it will become invalid (e.g. filter rules)!'))"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("delete alias"); ?>"></a></td>
|
|
217 |
<td><a href="firewall_aliases.php?act=del&id=<?=$i;?>" onclick="return confirm(<?=gettext('Do you really want to delete this alias? All elements that still use it will become invalid (e.g. filter rules)!');?>)"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("delete alias"); ?>"></a></td>
|
|
218 | 218 |
</tr> |
219 | 219 |
</table> |
220 | 220 |
</td> |
Also available in: Unified diff
Review firewall_aliases.php