diff options
Diffstat (limited to 'src/usr/local/www/widgets/widgets/interfaces.widget.php')
-rw-r--r-- | src/usr/local/www/widgets/widgets/interfaces.widget.php | 6 |
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 1a599cc..69a2869 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"':'')?>> |