diff options
author | Scott Ullrich <sullrich@pfSense.org> | 2009-12-29 15:51:54 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfSense.org> | 2009-12-29 15:51:54 -0500 |
commit | 8eb2f33a3848d933a5147e5f8796b1068a5a6c0a (patch) | |
tree | 61a3e00580e21f840195b3a24f06fbbc5d0c279a /usr | |
parent | c221e54917e074e399428067031f920c112ff6a7 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/status_interfaces.php | 7 |
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']);?> Previous Sessions: <?=htmlspecialchars($ifinfo['ppp_uptime_accumulated']);?> + </td> + </tr> <?php endif; if ($ifinfo['macaddr']): ?> <tr> <td width="22%" class="vncellt">MAC address</td> |