diff options
author | jim-p <jimp@pfsense.org> | 2012-02-23 08:48:14 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-02-23 08:48:14 -0500 |
commit | 7be4635326d45a8bbcd653d8795e31fc4c70b32f (patch) | |
tree | 69b01de5cf4680bc0f00fd372910b04aa7711965 /usr/local/www/firewall_rules.php | |
parent | a86c158d032aa1d9255eb1db59217fb39c2980e8 (diff) | |
download | pfsense-7be4635326d45a8bbcd653d8795e31fc4c70b32f.zip pfsense-7be4635326d45a8bbcd653d8795e31fc4c70b32f.tar.gz |
If no rules are defined on the floating rules tab, show a more relevant message.
Diffstat (limited to 'usr/local/www/firewall_rules.php')
-rwxr-xr-x | usr/local/www/firewall_rules.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 49b3e7c..e68cd16 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -789,8 +789,12 @@ if($_REQUEST['undodrag']) { <td class="listt"></td> <td class="listlr" colspan="10" align="center" valign="middle"> <span class="gray"> - <?=gettext("No rules are currently defined for this interface"); ?><br> - <?=gettext("All incoming connections on this interface will be blocked until you add pass rules."); ?><br><br> + <?php if ($_REQUEST['if'] == "FloatingRules"): ?> + <?=gettext("No floating rules are currently defined."); ?><br/><br/> + <?php else: ?> + <?=gettext("No rules are currently defined for this interface"); ?><br/> + <?=gettext("All incoming connections on this interface will be blocked until you add pass rules."); ?><br/><br/> + <?php endif; ?> <?=gettext("Click the"); ?> <a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add new rule");?>" border="0" width="17" height="17" align="absmiddle"></a><?=gettext(" button to add a new rule.");?></span> </td> <?php endif; ?> |