diff options
author | Scott Dale <sdale@pfsense.org> | 2007-05-09 02:08:50 +0000 |
---|---|---|
committer | Scott Dale <sdale@pfsense.org> | 2007-05-09 02:08:50 +0000 |
commit | 350cf3e191dacbf5591bfd5d1e8250cc251f729d (patch) | |
tree | 3e670c5a66bc21b9d1224fc91fca495324566e4c /usr | |
parent | 323feca7f5d3944504883e2ccebde1b610520c16 (diff) | |
download | pfsense-350cf3e191dacbf5591bfd5d1e8250cc251f729d.zip pfsense-350cf3e191dacbf5591bfd5d1e8250cc251f729d.tar.gz |
Show active schedules and their corresponding actions
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_rules.php | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 5357164..e2a34e7 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -543,6 +543,39 @@ echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript $schedule_span_end = "</U></span>"; } } + $printicon = false; + $alttext = ""; + $image = ""; + if (!isset($filterent['disabled'])){ + if ($schedstatus) + { + if ($iconfn == "block" || $iconfn == "reject") + { + $image = "icon_block"; + $alttext = "Traffic matching this rule is currently being denied"; + } + else + { + $image = "icon_pass"; + $alttext = "Traffic matching this rule is currently being allowed"; + } + $printicon = true; + } + else if ($filterent['sched']) + { + if ($iconfn == "block" || $iconfn == "reject") + { + $image = "icon_block_d"; + $alttext = "Traffic matching this rule is currently being allowed"; + } + else + { + $image = "icon_block"; + $alttext = "Traffic matching this rule is currently being denied"; + } + $printicon = true; + } + } ?> <td class="listlr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';"> <?=$textss;?><?php if (isset($filterent['protocol'])) echo strtoupper($filterent['protocol']); else echo "*"; ?><?=$textse;?> @@ -563,7 +596,7 @@ echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript <?=$textss;?><?php if (isset($config['interfaces'][$filterent['gateway']]['descr'])) echo htmlspecialchars($config['interfaces'][$filterent['gateway']]['descr']); else echo htmlspecialchars(pprint_port($filterent['gateway'])); ?><?=$textse;?> </td> <td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';"><font color="black"> - <?=$textss;?><?php echo $schedule_span_begin;?><?=htmlspecialchars($filterent['sched']);?><?php echo $schedule_span_end; ?><?=$textse;?> <?php if ($printicon) { ?><img src="./themes/<?= $g['theme']; ?>/images/icons/<?php echo $image; ?>.gif" title="<?php echo $alttext;?>" width="12" height="12" border="0"><?php } ?> + <?php if ($printicon) { ?><img src="./themes/<?= $g['theme']; ?>/images/icons/<?php echo $image; ?>.gif" title="<?php echo $alttext;?>" border="0"><?php } ?> <?=$textss;?><?php echo $schedule_span_begin;?><?=htmlspecialchars($filterent['sched']);?><?php echo $schedule_span_end; ?><?=$textse;?> </td> <td class="listbg" onClick="fr_toggle(<?=$nrules;?>)" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';" bcolor="#990000"><font color="white"> <?=$textss;?><?=htmlspecialchars($filterent['descr']);?> <?=$textse;?> |