diff options
author | Ermal <eri@pfsense.org> | 2010-06-10 13:32:56 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-10 13:32:56 +0000 |
commit | 64b4be44b1d194a1818c596d17f3c948ac32c59c (patch) | |
tree | e83d5023bcd910a6d04ebfdbfb7785b808920749 /usr/local/www/interfaces_ppps.php | |
parent | 8d73e7a932b632113be7129b347cd6a0cedb5ab6 (diff) | |
download | pfsense-64b4be44b1d194a1818c596d17f3c948ac32c59c.zip pfsense-64b4be44b1d194a1818c596d17f3c948ac32c59c.tar.gz |
Show friendly interface name on the gui for members when they are assigned interfaces.
Diffstat (limited to 'usr/local/www/interfaces_ppps.php')
-rw-r--r-- | usr/local/www/interfaces_ppps.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_ppps.php b/usr/local/www/interfaces_ppps.php index 9c76179..180c161 100644 --- a/usr/local/www/interfaces_ppps.php +++ b/usr/local/www/interfaces_ppps.php @@ -112,7 +112,14 @@ include("head.inc"); <?=htmlspecialchars($ppp['if']);?> </td> <td class="listr"> - <?=htmlspecialchars($ppp['ports']);?> + <?php + $portlist = explode(",", $ppp['ports']); + foreach ($portlist as $portid => $port) { + if ($port != get_real_interface($port)) + $portlist[$portid] = convert_friendly_interface_to_friendly_descr($port); + } + echo htmlspecialchars(implode(",", $portlist)); + ?> </td> <td class="listbg"> <?=htmlspecialchars($ppp['descr']);?> |