aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-02 20:49:01 +0000
committerErmal <eri@pfsense.org>2011-08-02 20:49:01 +0000
commit06a398a0794be677ec7d74996f7aa32db80348b8 (patch)
tree1c2e89a20433765b551700a3dd237cf4eca26d94 /config/snort/snort_interfaces.php
parent27f847ab1d5dcda308ab03c23cbbede9a4d8a675 (diff)
downloadpfsense-packages-06a398a0794be677ec7d74996f7aa32db80348b8.tar.gz
pfsense-packages-06a398a0794be677ec7d74996f7aa32db80348b8.tar.bz2
pfsense-packages-06a398a0794be677ec7d74996f7aa32db80348b8.zip
More corrections
Diffstat (limited to 'config/snort/snort_interfaces.php')
-rw-r--r--config/snort/snort_interfaces.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php
index 6b19c0a4..a0581d4f 100644
--- a/config/snort/snort_interfaces.php
+++ b/config/snort/snort_interfaces.php
@@ -317,16 +317,20 @@ enable JavaScript to view this content
id="frd<?=$nnats;?>"
ondblclick="document.location='snort_interfaces_edit.php?id=<?=$nnats;?>';">
<?php
- if (!$natent['interface'] || ($natent['interface'] == "wan"))
- echo "WAN";
- else if(strtolower($natent['interface']) == "lan")
- echo "LAN";
- else if(strtolower($natent['interface']) == "pppoe")
- echo "PPPoE";
- else if(strtolower($natent['interface']) == "pptp")
- echo "PPTP";
- else
- echo strtoupper($natent['interface']);
+ if (function_exists('convert_friendly_interface_to_friendly_descr'))
+ echo convert_friendly_interface_to_friendly_descr($natent['interface']);
+ else {
+ if (!$natent['interface'] || ($natent['interface'] == "wan"))
+ echo "WAN";
+ else if(strtolower($natent['interface']) == "lan")
+ echo "LAN";
+ else if(strtolower($natent['interface']) == "pppoe")
+ echo "PPPoE";
+ else if(strtolower($natent['interface']) == "pptp")
+ echo "PPTP";
+ else
+ echo strtoupper($natent['interface']);
+ }
?></td>
<td class="listr" onClick="fr_toggle(<?=$nnats;?>)"
id="frd<?=$nnats;?>"