Feature #447 » status_interfaces.php.patch.txt
1 |
--- backup-stock-image-20100320/www/status_interfaces.php 2010-03-23 13:43:20.000000000 +0700 |
---|---|
2 |
+++ status_interfaces.php.new 2010-03-23 10:11:06.000000000 +0700 |
3 |
@@ -143,17 +143,19 @@ |
4 |
<a href="status_interfaces.php?action=Disconnect&if=<?php echo $ifdescr; ?>"> |
5 |
<input type="button" name="<?php echo $ifdescr; ?>" value="Disconnect" class="formbtns"> |
6 |
<?php else: ?> |
7 |
- <a href="status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>"> |
8 |
- <input type="button" name="<?php echo $ifdescr; ?>" value="Connect" class="formbtns"> |
9 |
+ <?php if (!$ifinfo['missing_device']): ?> |
10 |
+ <a href="status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>"> |
11 |
+ <input type="button" name="<?php echo $ifdescr; ?>" value="Connect" class="formbtns"> |
12 |
+ <?php endif; ?> |
13 |
<?php endif; ?> |
14 |
</a> |
15 |
</td> |
16 |
</tr> |
17 |
<?php endif; if ($ifinfo['ppp_uptime'] || $ifinfo['ppp_uptime_accumulated']): ?> |
18 |
<tr> |
19 |
- <td width="22%" class="vncellt">PPP uptime</td> |
20 |
+ <td width="22%" class="vncellt">PPP uptime (historical)</td> |
21 |
<td width="78%" class="listr"> |
22 |
- <?=htmlspecialchars($ifinfo['ppp_uptime']);?>Previous Sessions: <?=htmlspecialchars($ifinfo['ppp_uptime_accumulated']);?> |
23 |
+ <span id="uptime"><?=htmlspecialchars($ifinfo['ppp_uptime']);?></span><span id="uptime_hist"> (<?=htmlspecialchars($ifinfo['ppp_uptime_accumulated']);?>)</span> |
24 |
</td> |
25 |
</tr> |
26 |
<?php endif; if ($ifinfo['macaddr']): ?> |