Commit 6bfb6942 authored by Fabian Franz's avatar Fabian Franz

translation and coding style status_interfaces.php

parent 809625fd
...@@ -80,13 +80,13 @@ include("head.inc"); ...@@ -80,13 +80,13 @@ include("head.inc");
<thead> <thead>
<tr> <tr>
<th colspan="2"> <th colspan="2">
<i class="fa fa-chevron-down" style="cursor: pointer;" data-toggle="collapse" data-target="#<?=htmlspecialchars($ifname);?>"></i> <i class="fa fa-chevron-down" style="cursor: pointer;" data-toggle="collapse" data-target="#<?= htmlspecialchars($ifname) ?>"></i>
<?=htmlspecialchars($ifname);?> <?=gettext("interface"); ?> (<?=htmlspecialchars($ifdescr);?>, <?=htmlspecialchars($ifinfo['hwif']);?>) <?= htmlspecialchars($ifname) ?> <?= gettext("interface") ?> (<?= htmlspecialchars($ifdescr) ?>, <?= htmlspecialchars($ifinfo['hwif']) ?>)
<?php <?php
if (!isset($first_row)): if (!isset($first_row)):
$first_row=false;?> $first_row=false; ?>
<div class="pull-right"> <div class="pull-right">
<i class="fa fa-expand" id="collapse_all" style="cursor: pointer;" data-toggle="tooltip" title="<?=gettext("collapse/expand all");?>"></i> &nbsp; <i class="fa fa-expand" id="collapse_all" style="cursor: pointer;" data-toggle="tooltip" title="<?= gettext("collapse/expand all") ?>"></i> &nbsp;
</div> </div>
<?php <?php
endif;?> endif;?>
...@@ -95,12 +95,12 @@ include("head.inc"); ...@@ -95,12 +95,12 @@ include("head.inc");
</thead> </thead>
</table> </table>
</div> </div>
<div class="interface_details collapse table-responsive" id="<?=htmlspecialchars($ifname);?>"> <div class="interface_details collapse table-responsive" id="<?= htmlspecialchars($ifname) ?>">
<table class="table table-striped"> <table class="table table-striped">
<tbody> <tbody>
<tr> <tr>
<td width="22%"><?=gettext("Status"); ?></td> <td width="22%"><?= gettext("Status") ?></td>
<td width="78%"><?=$ifinfo['status'];?></td> <td width="78%"><?= $ifinfo['status'] ?></td>
</tr> </tr>
<?php <?php
if (!empty($ifinfo['dhcplink'])): ?> if (!empty($ifinfo['dhcplink'])): ?>
...@@ -108,10 +108,10 @@ include("head.inc"); ...@@ -108,10 +108,10 @@ include("head.inc");
<td> <?=gettext("DHCP");?></td> <td> <?=gettext("DHCP");?></td>
<td> <td>
<form name="dhcplink_form" method="post"> <form name="dhcplink_form" method="post">
<input type="hidden" name="if" value="<?=$ifdescr; ?>" /> <input type="hidden" name="if" value="<?= $ifdescr ?>" />
<input type="hidden" name="status" value="<?=$ifinfo['dhcplink']; ?>" /> <input type="hidden" name="status" value="<?= $ifinfo['dhcplink'] ?>" />
<?=$ifinfo['dhcplink'];?>&nbsp;&nbsp; <?= $ifinfo['dhcplink'] ?>&nbsp;&nbsp;
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?=$ifinfo['dhcplink'] == "up" ? gettext("Release") : gettext("Renew"); ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?= $ifinfo['dhcplink'] == "up" ? gettext("Release") : gettext("Renew"); ?>" />
</form> </form>
</td> </td>
</tr> </tr>
...@@ -122,10 +122,10 @@ include("head.inc"); ...@@ -122,10 +122,10 @@ include("head.inc");
<td> <?=gettext("DHCP6");?></td> <td> <?=gettext("DHCP6");?></td>
<td> <td>
<form name="dhcp6link_form" method="post"> <form name="dhcp6link_form" method="post">
<input type="hidden" name="if" value="<?=$ifdescr; ?>" /> <input type="hidden" name="if" value="<?= $ifdescr ?>" />
<input type="hidden" name="status" value="<?=$ifinfo['dhcp6link']; ?>" /> <input type="hidden" name="status" value="<?= $ifinfo['dhcp6link'] ?>" />
<?=$ifinfo['dhcp6link'];?>&nbsp;&nbsp; <?= $ifinfo['dhcp6link'] ?>&nbsp;&nbsp;
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?= $ifinfo['dhcp6link'] == "up" ? gettext("Release") : gettext("Renew"); ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?= $ifinfo['dhcp6link'] == "up" ? gettext("Release") : gettext("Renew") ?>" />
</form> </form>
</td> </td>
</tr> </tr>
...@@ -136,10 +136,10 @@ include("head.inc"); ...@@ -136,10 +136,10 @@ include("head.inc");
<td><?=gettext("PPPoE"); ?></td> <td><?=gettext("PPPoE"); ?></td>
<td> <td>
<form name="pppoelink_form" method="post"> <form name="pppoelink_form" method="post">
<input type="hidden" name="if" value="<?=$ifdescr; ?>" /> <input type="hidden" name="if" value="<?= $ifdescr ?>" />
<input type="hidden" name="status" value="<?=$ifinfo['pppoelink']; ?>" /> <input type="hidden" name="status" value="<?= $ifinfo['pppoelink'] ?>" />
<?=$ifinfo['pppoelink'];?>&nbsp;&nbsp; <?= $ifinfo['pppoelink'] ?>&nbsp;&nbsp;
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?=$ifinfo['pppoelink'] == "up" ? gettext("Disconnect") : gettext("Connect"); ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?= $ifinfo['pppoelink'] == "up" ? gettext("Disconnect") : gettext("Connect") ?>" />
</form> </form>
</td> </td>
</tr> </tr>
...@@ -147,13 +147,13 @@ include("head.inc"); ...@@ -147,13 +147,13 @@ include("head.inc");
endif; endif;
if (!empty($ifinfo['pptplink'])): ?> if (!empty($ifinfo['pptplink'])): ?>
<tr> <tr>
<td><?=gettext("PPTP"); ?></td> <td><?= gettext("PPTP") ?></td>
<td> <td>
<form name="pptplink_form" method="post"> <form name="pptplink_form" method="post">
<input type="hidden" name="if" value="<?=$ifdescr; ?>" /> <input type="hidden" name="if" value="<?= $ifdescr ?>" />
<input type="hidden" name="status" value="<?=$ifinfo['pptplink']; ?>" /> <input type="hidden" name="status" value="<?= $ifinfo['pptplink'] ?>" />
<?=$ifinfo['pptplink'];?>&nbsp;&nbsp; <?= $ifinfo['pptplink'] ?>&nbsp;&nbsp;
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?=$ifinfo['pptplink'] == "up" ? gettext("Disconnect") : gettext("Connect");?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?= $ifinfo['pptplink'] == "up" ? gettext("Disconnect") : gettext("Connect") ?>" />
</form> </form>
</td> </td>
</tr> </tr>
...@@ -164,10 +164,10 @@ include("head.inc"); ...@@ -164,10 +164,10 @@ include("head.inc");
<td><?=gettext("L2TP"); ?></td> <td><?=gettext("L2TP"); ?></td>
<td> <td>
<form name="l2tplink_form" method="post"> <form name="l2tplink_form" method="post">
<input type="hidden" name="if" value="<?=$ifdescr; ?>" /> <input type="hidden" name="if" value="<?= $ifdescr ?>" />
<input type="hidden" name="status" value="<?=$ifinfo['l2tplink']; ?>" /> <input type="hidden" name="status" value="<?= $ifinfo['l2tplink'] ?>" />
<?=$ifinfo['l2tplink'];?>&nbsp;&nbsp; <?=$ifinfo['l2tplink'];?>&nbsp;&nbsp;
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?=$ifinfo['l2tplink'] == "up" ? gettext("Disconnect") : gettext("Connect");?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?= $ifinfo['l2tplink'] == "up" ? gettext("Disconnect") : gettext("Connect") ?>" />
</form> </form>
</td> </td>
</tr> </tr>
...@@ -178,14 +178,14 @@ include("head.inc"); ...@@ -178,14 +178,14 @@ include("head.inc");
<td><?=gettext("PPP"); ?></td> <td><?=gettext("PPP"); ?></td>
<td> <td>
<form name="ppplink_form" method="post"> <form name="ppplink_form" method="post">
<input type="hidden" name="if" value="<?=$ifdescr; ?>" /> <input type="hidden" name="if" value="<?= $ifdescr ?>" />
<input type="hidden" name="status" value="<?=$ifinfo['ppplink']; ?>" /> <input type="hidden" name="status" value="<?= $ifinfo['ppplink'] ?>" />
<?=$ifinfo['pppinfo'];?> <?= $ifinfo['pppinfo'] ?>
<?php if ($ifinfo['ppplink'] == "up"): ?> <?php if ($ifinfo['ppplink'] == "up"): ?>
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?=gettext("Disconnect"); ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?= gettext("Disconnect") ?>" />
<?php else: ?> <?php else: ?>
<?php if (!$ifinfo['nodevice']): ?> <?php if (!$ifinfo['nodevice']): ?>
<input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?=gettext("Connect"); ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?= gettext("Connect") ?>" />
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</form> </form>
...@@ -195,64 +195,64 @@ include("head.inc"); ...@@ -195,64 +195,64 @@ include("head.inc");
endif; endif;
if (!empty($ifinfo['ppp_uptime']) || !empty($ifinfo['ppp_uptime_accumulated'])): ?> if (!empty($ifinfo['ppp_uptime']) || !empty($ifinfo['ppp_uptime_accumulated'])): ?>
<tr> <tr>
<td><?=gettext("Uptime ");?><?=!empty($ifinfo['ppp_uptime_accumulated']) ? "(historical)" : ""; ?></td> <td><?= empty($ifinfo['ppp_uptime_accumulated']) ? gettext("Uptime") : gettext("Uptime (historical)") ?></td>
<td><?=$ifinfo['ppp_uptime'];?> <?=$ifinfo['ppp_uptime_accumulated'];?></td> <td><?= $ifinfo['ppp_uptime_accumulated'] ?> <?= $ifinfo['ppp_uptime'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['cell_rssi'])): ?> if (!empty($ifinfo['cell_rssi'])): ?>
<tr> <tr>
<td><?=gettext("Cell Signal (RSSI)");?></td> <td><?= gettext("Cell Signal (RSSI)") ?></td>
<td><?=$ifinfo['cell_rssi'];?></td> <td><?= $ifinfo['cell_rssi'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['cell_mode'])): ?> if (!empty($ifinfo['cell_mode'])): ?>
<tr> <tr>
<td><?=gettext("Cell Mode");?></td> <td><?= gettext("Cell Mode") ?></td>
<td><?=$ifinfo['cell_mode'];?></td> <td><?= $ifinfo['cell_mode'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['cell_simstate'])): ?> if (!empty($ifinfo['cell_simstate'])): ?>
<tr> <tr>
<td><?=gettext("Cell SIM State");?></td> <td><?= gettext("Cell SIM State") ?></td>
<td><?=$ifinfo['cell_simstate'];?></td> <td><?= $ifinfo['cell_simstate'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['cell_service'])): ?> if (!empty($ifinfo['cell_service'])): ?>
<tr> <tr>
<td><?=gettext("Cell Service");?></td> <td><?= gettext("Cell Service") ?></td>
<td><?=$ifinfo['cell_service'];?></td> <td><?= $ifinfo['cell_service'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['cell_bwupstream'])): ?> if (!empty($ifinfo['cell_bwupstream'])): ?>
<tr> <tr>
<td><?=gettext("Cell Upstream");?></td> <td><?= gettext("Cell Upstream");?></td>
<td><?=$ifinfo['cell_bwupstream'];?> <?=gettext("kbit/s");?></td> <td><?= sprintf(gettext("%s kbit/s"),$ifinfo['cell_bwupstream']) ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['cell_bwdownstream'])): ?> if (!empty($ifinfo['cell_bwdownstream'])): ?>
<tr> <tr>
<td><?=gettext("Cell Downstream");?></td> <td><?= gettext("Cell Downstream") ?></td>
<td><?=$ifinfo['cell_bwdownstream'];?> <?=gettext("kbit/s");?></td> <td><?= sprintf(gettext("%s kbit/s"),$ifinfo['cell_bwdownstream']) ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['cell_upstream'])): ?> if (!empty($ifinfo['cell_upstream'])): ?>
<tr> <tr>
<td><?=gettext("Cell Current Up");?></td> <td><?= gettext("Cell Current Up");?></td>
<td><?=$ifinfo['cell_upstream'];?> <?=gettext("kbit/s");?></td> <td><?= sprintf(gettext("%s kbit/s"), $ifinfo['cell_upstream']) ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['cell_downstream'])): ?> if (!empty($ifinfo['cell_downstream'])): ?>
<tr> <tr>
<td><?=gettext("Cell Current Down");?></td> <td><?= gettext("Cell Current Down") ?></td>
<td><?=$ifinfo['cell_downstream'];?> <?=gettext("kbit/s");?></td> <td><?= sprintf(gettext("%s kbit/s"),$ifinfo['cell_downstream']) ?></td>
</tr> </tr>
<?php <?php
endif; endif;
...@@ -274,61 +274,61 @@ include("head.inc"); ...@@ -274,61 +274,61 @@ include("head.inc");
if ($ifinfo['dhcplink'] != "down" && $ifinfo['pppoelink'] != "down" && $ifinfo['pptplink'] != "down"): if ($ifinfo['dhcplink'] != "down" && $ifinfo['pppoelink'] != "down" && $ifinfo['pptplink'] != "down"):
if ($ifinfo['ipaddr']):?> if ($ifinfo['ipaddr']):?>
<tr> <tr>
<td><?=gettext("IPv4 address");?></td> <td><?= gettext("IPv4 address") ?></td>
<td><?=$ifinfo['ipaddr'];?></td> <td><?= $ifinfo['ipaddr'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['subnet'])):?> if (!empty($ifinfo['subnet'])):?>
<tr> <tr>
<td><?=gettext("Subnet mask IPv4");?></td> <td><?= gettext("Subnet mask IPv4") ?></td>
<td><?=$ifinfo['subnet'];?></td> <td><?= $ifinfo['subnet'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['gateway'])): ?> if (!empty($ifinfo['gateway'])): ?>
<tr> <tr>
<td><?=gettext("Gateway IPv4");?></td> <td><?= gettext("Gateway IPv4") ?></td>
<td><?=htmlspecialchars($config['interfaces'][$ifdescr]['gateway']);?> <?=$ifinfo['gateway'];?></td> <td><?= htmlspecialchars($config['interfaces'][$ifdescr]['gateway']) ?> <?= $ifinfo['gateway'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['linklocal'])): ?> if (!empty($ifinfo['linklocal'])): ?>
<tr> <tr>
<td><?=gettext("IPv6 Link Local");?></td> <td><?= gettext("IPv6 Link Local") ?></td>
<td><?=$ifinfo['linklocal'];?></td> <td><?= $ifinfo['linklocal'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['ipaddrv6'])): ?> if (!empty($ifinfo['ipaddrv6'])): ?>
<tr> <tr>
<td><?=gettext("IPv6 address");?></td> <td><?= gettext("IPv6 address") ?></td>
<td><?=$ifinfo['ipaddrv6'];?></td> <td><?= $ifinfo['ipaddrv6'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['subnetv6'])): ?> if (!empty($ifinfo['subnetv6'])): ?>
<tr> <tr>
<td><?=gettext("Subnet mask IPv6");?></td> <td><?= gettext("Subnet mask IPv6") ?></td>
<td><?=$ifinfo['subnetv6'];?></td> <td><?= $ifinfo['subnetv6'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['gatewayv6'])): ?> if (!empty($ifinfo['gatewayv6'])): ?>
<tr> <tr>
<td><?=gettext("Gateway IPv6");?></td> <td><?= gettext("Gateway IPv6") ?></td>
<td><?=htmlspecialchars($config['interfaces'][$ifdescr]['gatewayv6']);?> <?=$ifinfo['gatewayv6'];?></td> <td><?= htmlspecialchars($config['interfaces'][$ifdescr]['gatewayv6']) ?> <?= $ifinfo['gatewayv6'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if ($ifdescr == 'wan' && file_exists('/etc/resolv.conf')): ?> if ($ifdescr == 'wan' && file_exists('/etc/resolv.conf')): ?>
<tr> <tr>
<td><?=gettext("ISP DNS servers");?></td> <td><?= gettext("ISP DNS servers") ?></td>
<td> <td>
<?php <?php
foreach(get_dns_servers() as $dns) { foreach(get_dns_servers() as $dns):
echo "{$dns}<br />"; echo "{$dns}<br />";
}?> endforeach; ?>
</td> </td>
</tr> </tr>
<?php <?php
...@@ -336,15 +336,15 @@ include("head.inc"); ...@@ -336,15 +336,15 @@ include("head.inc");
endif; endif;
if (!empty($ifinfo['media'])): ?> if (!empty($ifinfo['media'])): ?>
<tr> <tr>
<td><?=gettext("Media");?></td> <td><?= gettext("Media") ?></td>
<td><?=$ifinfo['media'];?></td> <td><?= $ifinfo['media'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['laggproto'])):?> if (!empty($ifinfo['laggproto'])):?>
<tr> <tr>
<td><?=gettext("LAGG Protocol");?></td> <td><?= gettext("LAGG Protocol") ?></td>
<td><?=$ifinfo['laggproto'];?></td> <td><?= $ifinfo['laggproto'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
...@@ -352,87 +352,87 @@ include("head.inc"); ...@@ -352,87 +352,87 @@ include("head.inc");
<tr> <tr>
<td><?=gettext("LAGG Ports");?></td> <td><?=gettext("LAGG Ports");?></td>
<td> <td>
<?php foreach ($ifinfo['laggport'] as $laggport) { ?> <?php foreach ($ifinfo['laggport'] as $laggport): ?>
<?=$laggport;?><br /> <?= $laggport ?><br />
<?php } ?> <?php endforeach; ?>
</td> </td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['channel'])): ?> if (!empty($ifinfo['channel'])): ?>
<tr> <tr>
<td><?=gettext("Channel");?></td> <td><?= gettext("Channel") ?></td>
<td><?=$ifinfo['channel'];?></td> <td><?= $ifinfo['channel'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['ssid'])):?> if (!empty($ifinfo['ssid'])):?>
<tr> <tr>
<td><?=gettext("SSID");?></td> <td><?= gettext("SSID") ?></td>
<td><?=$ifinfo['ssid'];?></td> <td><?= $ifinfo['ssid'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['bssid'])):?> if (!empty($ifinfo['bssid'])):?>
<tr> <tr>
<td><?=gettext("BSSID");?></td> <td><?= gettext("BSSID") ?></td>
<td><?=$ifinfo['bssid'];?></td> <td><?= $ifinfo['bssid'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['rate'])):?> if (!empty($ifinfo['rate'])):?>
<tr> <tr>
<td><?=gettext("Rate");?></td> <td><?= gettext("Rate") ?></td>
<td><?=$ifinfo['rate'];?></td> <td><?= $ifinfo['rate'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (!empty($ifinfo['rssi'])): ?> if (!empty($ifinfo['rssi'])): ?>
<tr> <tr>
<td><?=gettext("RSSI");?></td> <td><?= gettext("RSSI") ?></td>
<td><?=$ifinfo['rssi'];?></td> <td><?= $ifinfo['rssi'] ?></td>
</tr> </tr>
<?php <?php
endif; ?> endif; ?>
<tr> <tr>
<td><?=gettext("In/out packets");?></td> <td><?= gettext("In/out packets") ?></td>
<td> <?=$ifinfo['inpkts'];?> / <?=$ifinfo['outpkts'];?> <td> <?= $ifinfo['inpkts'] ?> / <?= $ifinfo['outpkts'] ?>
(<?=format_bytes($ifinfo['inbytes']);?> / <?=format_bytes($ifinfo['outbytes']);?> ) (<?= format_bytes($ifinfo['inbytes']);?> / <?=format_bytes($ifinfo['outbytes']);?> )
</td> </td>
</tr> </tr>
<tr> <tr>
<td><?=gettext("In/out packets (pass)");?></td> <td><?= gettext("In/out packets (pass)") ?></td>
<td> <?=$ifinfo['inpktspass'];?> / <?=$ifinfo['outpktspass'];?> <td> <?= $ifinfo['inpktspass'] ?> / <?= $ifinfo['outpktspass'] ?>
(<?=format_bytes($ifinfo['inbytespass']);?> / <?=format_bytes($ifinfo['outbytespass']);?> ) (<?= format_bytes($ifinfo['inbytespass']) ?> / <?= format_bytes($ifinfo['outbytespass']) ?> )
</td> </td>
</tr> </tr>
<tr> <tr>
<td><?=gettext("In/out packets (block)");?></td> <td><?= gettext("In/out packets (block)") ?></td>
<td> <?=$ifinfo['inpktsblock'];?> / <?=$ifinfo['outpktsblock'];?> <td> <?= $ifinfo['inpktsblock'] ?> / <?= $ifinfo['outpktsblock'] ?>
(<?=format_bytes($ifinfo['inbytesblock']);?> / <?=format_bytes($ifinfo['outbytesblock']);?> ) (<?= format_bytes($ifinfo['inbytesblock']) ?> / <?= format_bytes($ifinfo['outbytesblock']) ?> )
</td> </td>
</tr> </tr>
<?php <?php
if (isset($ifinfo['inerrs'])): ?> if (isset($ifinfo['inerrs'])): ?>
<tr> <tr>
<td><?=gettext("In/out errors");?></td> <td><?= gettext("In/out errors") ?></td>
<td><?=$ifinfo['inerrs'] . "/" . $ifinfo['outerrs'];?></td> <td><?= $ifinfo['inerrs'] . "/" . $ifinfo['outerrs'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
if (isset($ifinfo['collisions'])): ?> if (isset($ifinfo['collisions'])): ?>
<tr> <tr>
<td><?=gettext("Collisions");?></td> <td><?= gettext("Collisions") ?></td>
<td><?=$ifinfo['collisions'];?></td> <td><?= $ifinfo['collisions'] ?></td>
</tr> </tr>
<?php <?php
endif; endif;
endif; endif;
if (!empty($ifinfo['bridge'])): ?> if (!empty($ifinfo['bridge'])): ?>
<tr> <tr>
<td><?php printf(gettext("Bridge (%s)"),$ifinfo['bridgeint']);?></td> <td><?php printf(gettext("Bridge (%s)"),$ifinfo['bridgeint']) ?></td>
<td> <td>
<?=$ifinfo['bridge'];?> <?= $ifinfo['bridge'] ?>
</td> </td>
</tr> </tr>
<?php <?php
...@@ -451,12 +451,12 @@ include("head.inc"); ...@@ -451,12 +451,12 @@ include("head.inc");
unset($interrupt_total); // XXX: FIX ME! Need a regex and parse correct data 100% of the time. unset($interrupt_total); // XXX: FIX ME! Need a regex and parse correct data 100% of the time.
if($interrupt_total): ?> if($interrupt_total): ?>
<tr> <tr>
<td><?=gettext("Interrupts/Second");?></td> <td><?= gettext("Interrupts per Second") ?></td>
<td> <td>
<?php <?php
echo $interrupt_total . " " . gettext("total"); printf(gettext("%s total"),$interrupt_total);
echo "<br />"; echo "<br />";
echo $interrupt_sec . " " . gettext("rate"); printf(gettext("%s rate"),$interrupt_sec);
?> ?>
</td> </td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment