Commit 577ecaf7 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) add aliasses to firewall_nat_out.php overview

parent d85c2cc1
...@@ -397,6 +397,9 @@ include("head.inc"); ...@@ -397,6 +397,9 @@ include("head.inc");
</td> </td>
<td class="hidden-xs hidden-sm"> <td class="hidden-xs hidden-sm">
<?= $natent['source']['network'] == "(self)" ? "This Firewall" : $natent['source']['network']; ?> <?= $natent['source']['network'] == "(self)" ? "This Firewall" : $natent['source']['network']; ?>
<?php if (isset($natent['source']['network']) && is_alias($natent['source']['network'])): ?>
&nbsp;<a href="/firewall_aliases_edit.php?name=<?=htmlspecialchars($natent['source']['network']);?>"><i class="fa fa-list"></i> </a>
<?php endif; ?>
</td> </td>
<td class="hidden-xs hidden-sm"> <td class="hidden-xs hidden-sm">
<?=!empty($natent['protocol']) ? $natent['protocol'] . '/' : "" ;?> <?=!empty($natent['protocol']) ? $natent['protocol'] . '/' : "" ;?>
...@@ -405,6 +408,9 @@ include("head.inc"); ...@@ -405,6 +408,9 @@ include("head.inc");
<td class="hidden-xs hidden-sm"> <td class="hidden-xs hidden-sm">
<?=isset($natent['destination']['not']) ? "!&nbsp;" :"";?> <?=isset($natent['destination']['not']) ? "!&nbsp;" :"";?>
<?=isset($natent['destination']['any']) ? "*" : $natent['destination']['address'] ;?> <?=isset($natent['destination']['any']) ? "*" : $natent['destination']['address'] ;?>
<?php if (isset($natent['destination']['address']) && is_alias($natent['destination']['address'])): ?>
&nbsp;<a href="/firewall_aliases_edit.php?name=<?=htmlspecialchars($natent['destination']['address']);?>"><i class="fa fa-list"></i> </a>
<?php endif; ?>
</td> </td>
<td class="hidden-xs hidden-sm"> <td class="hidden-xs hidden-sm">
<?=!empty($natent['protocol']) ? $natent['protocol'] . '/' : "" ;?> <?=!empty($natent['protocol']) ? $natent['protocol'] . '/' : "" ;?>
...@@ -423,6 +429,9 @@ include("head.inc"); ...@@ -423,6 +429,9 @@ include("head.inc");
$nat_address = $natent['target']; $nat_address = $natent['target'];
?> ?>
<?=htmlspecialchars($nat_address);?> <?=htmlspecialchars($nat_address);?>
<?php if (isset($natent['target']) && is_alias($natent['target'])): ?>
&nbsp;<a href="/firewall_aliases_edit.php?name=<?=htmlspecialchars($natent['target']);?>"><i class="fa fa-list"></i> </a>
<?php endif; ?>
</td> </td>
<td class="hidden-xs hidden-sm"> <td class="hidden-xs hidden-sm">
<?=empty($natent['natport']) ? "*" : htmlspecialchars($natent['natport']);?> <?=empty($natent['natport']) ? "*" : htmlspecialchars($natent['natport']);?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment