summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.org>2009-12-29 15:51:54 -0500
committerScott Ullrich <sullrich@pfSense.org>2009-12-29 15:51:54 -0500
commit8eb2f33a3848d933a5147e5f8796b1068a5a6c0a (patch)
tree61a3e00580e21f840195b3a24f06fbbc5d0c279a /usr/local/www/status_interfaces.php
parentc221e54917e074e399428067031f920c112ff6a7 (diff)
downloadpfsense-8eb2f33a3848d933a5147e5f8796b1068a5a6c0a.zip
pfsense-8eb2f33a3848d933a5147e5f8796b1068a5a6c0a.tar.gz
These patches give you a display of the uptime of the active PPP link
on the "Status-> Interfaces" page, and also logging on /conf (to survive reboot) of uptimes of each session after it is closed. In addition, the status_interfaces.php page displays the cumulative uptime total so users can manage their links that are on pay by the minute arrangements. Shortcomings: partial minutes are just added as cumulative seconds where most providers probably charge you for a minute after you're 1 second into that minute. I may fix this later. Submitted-by: Gabriel B
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-xusr/local/www/status_interfaces.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php
index 3271627..8cd1504 100755
--- a/usr/local/www/status_interfaces.php
+++ b/usr/local/www/status_interfaces.php
@@ -149,6 +149,13 @@ include("head.inc");
</a>
</td>
</tr>
+ <?php endif; if ($ifinfo['ppp_uptime'] || $ifinfo['ppp_uptime_accumulated']): ?>
+ <tr>
+ <td width="22%" class="vncellt">PPP uptime</td>
+ <td width="78%" class="listr">
+ <?=htmlspecialchars($ifinfo['ppp_uptime']);?>&nbsp;&nbsp;Previous Sessions:&nbsp;<?=htmlspecialchars($ifinfo['ppp_uptime_accumulated']);?>&nbsp;&nbsp;
+ </td>
+ </tr>
<?php endif; if ($ifinfo['macaddr']): ?>
<tr>
<td width="22%" class="vncellt">MAC address</td>
OpenPOWER on IntegriCloud