Project

General

Profile

« Previous | Next » 

Revision 8eb2f33a

Added by Scott Ullrich over 15 years ago

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

View differences:

usr/local/www/status_interfaces.php
149 149
			</a>
150 150
		</td>
151 151
	</tr>
152
	<?php  endif; if ($ifinfo['ppp_uptime'] || $ifinfo['ppp_uptime_accumulated']): ?>
153
	<tr>
154
                <td width="22%" class="vncellt">PPP uptime</td>
155
                <td width="78%" class="listr">
156
                        <?=htmlspecialchars($ifinfo['ppp_uptime']);?>&nbsp;&nbsp;Previous Sessions:&nbsp;<?=htmlspecialchars($ifinfo['ppp_uptime_accumulated']);?>&nbsp;&nbsp;
157
                </td>
158
        </tr>
152 159
	<?php  endif; if ($ifinfo['macaddr']): ?>
153 160
	<tr>
154 161
		<td width="22%" class="vncellt">MAC address</td>

Also available in: Unified diff