summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2017-02-26 22:36:53 +0100
committerGitHub <noreply@github.com>2017-02-26 22:36:53 +0100
commitdc0f5e46a03e0ea797fb74df03e09c58f44a5c1a (patch)
treec09d7b2ce7f9d6dcbf0d9880414fb9ded919184d /src/usr/local/www
parent69860ee4f5ff9f1e5b87bc6fdcb6dfea66062726 (diff)
downloadpfsense-dc0f5e46a03e0ea797fb74df03e09c58f44a5c1a.zip
pfsense-dc0f5e46a03e0ea797fb74df03e09c58f44a5c1a.tar.gz
Show PPPoE/PPTP/L2TP uptime on the Interfaces widget (Feature #6032)
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/widgets/widgets/interfaces.widget.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/local/www/widgets/widgets/interfaces.widget.php b/src/usr/local/www/widgets/widgets/interfaces.widget.php
index 41dc871..69c5a44 100644
--- a/src/usr/local/www/widgets/widgets/interfaces.widget.php
+++ b/src/usr/local/www/widgets/widgets/interfaces.widget.php
@@ -104,7 +104,11 @@ foreach ($ifdescrs as $ifdescr => $ifname):
<?php endif; ?>
</td>
<td>
- <?=htmlspecialchars($ifinfo['media']);?>
+ <?php if ($ifinfo['pppoelink'] == "up" || $ifinfo['pptplink'] == "up" || $ifinfo['l2tplink'] == "up"):?>
+ <?=sprintf(gettext("Uptime: %s"), htmlspecialchars($ifinfo['ppp_uptime']));?>
+ <?php else: ?>
+ <?=htmlspecialchars($ifinfo['media']);?>
+ <?php endif; ?>
</td>
<td <?=($ifinfo['dhcplink'] ? ' title="via dhcp"':'')?>>
OpenPOWER on IntegriCloud