Revision 03976254
Added by Jim Pingle over 14 years ago
usr/local/www/firewall_rules.php | ||
---|---|---|
370 | 370 |
</table> |
371 | 371 |
</td> |
372 | 372 |
</tr> |
373 |
<?php // Show the anti-lockout rule if it's enabled, and we are on LAN with an if count > 1, or WAN with an if count of 1. |
|
374 |
if (!isset($config['system']['webgui']['noantilockout']) && |
|
375 |
(((count($config['interfaces']) > 1) && ($if == 'lan')) |
|
376 |
|| ((count($config['interfaces']) == 1) && ($if == 'wan')))): ?> |
|
377 |
<tr valign="top" id="antilockout"> |
|
378 |
<td class="list"> </td> |
|
379 |
<td class="listt" align="center"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass.gif" width="11" height="11" border="0"></td> |
|
380 |
<td class="listlr" style="background-color: #E0E0E0"></td> |
|
381 |
<td class="listr" style="background-color: #E0E0E0">*</td> |
|
382 |
<td class="listr" style="background-color: #E0E0E0">*</td> |
|
383 |
<td class="listr" style="background-color: #E0E0E0">*</td> |
|
384 |
<td class="listr" style="background-color: #E0E0E0"><?=$iflist[$if];?> Address</td> |
|
385 |
<td class="listr" style="background-color: #E0E0E0">*</td> |
|
386 |
<td class="listr" style="background-color: #E0E0E0">*</td> |
|
387 |
<td class="listr" style="background-color: #E0E0E0">*</td> |
|
388 |
<td class="listr" style="background-color: #E0E0E0"></td> |
|
389 |
<td class="listbg"><?=gettext("Anti-Lockout Rule");?></td> |
|
390 |
<td valign="middle" nowrap class="list"> |
|
391 |
<table border="0" cellspacing="0" cellpadding="1"> |
|
392 |
<tr> |
|
393 |
<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected rules before this rule");?>"></td> |
|
394 |
<td><a href="system_advanced_admin.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit rule");?>" width="17" height="17" border="0"></a></td> |
|
395 |
</tr> |
|
396 |
<tr> |
|
397 |
<td align="center" valign="middle"></td> |
|
398 |
<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus_d.gif" title="<?=gettext("add a new rule based on this one");?>" width="17" height="17" border="0"></td> |
|
399 |
</tr> |
|
400 |
</table> |
|
401 |
</td> |
|
402 |
</tr> |
|
403 |
<?php endif; ?> |
|
404 |
|
|
373 | 405 |
<?php if (isset($config['interfaces'][$if]['blockpriv'])): ?> |
374 | 406 |
<tr valign="top" id="frrfc1918"> |
375 | 407 |
<td class="list"> </td> |
Also available in: Unified diff
If the anti-lockout rule is active, show it in the rules list for the LAN interface (or WAN if the interface count is 1, same rules as in filter.inc for putting the rule in the ruleset)