summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/gateways.widget.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-07 20:34:51 +0000
committerErmal <eri@pfsense.org>2010-06-07 20:34:51 +0000
commit4b4be09e1da47dfbe789818cc25e74c6e092f601 (patch)
tree60d3b994c4a0e5725e427807766f3ace1fd10588 /usr/local/www/widgets/widgets/gateways.widget.php
parentbeb7b8140c31f2c99166d00575fd5da2772168e8 (diff)
downloadpfsense-4b4be09e1da47dfbe789818cc25e74c6e092f601.zip
pfsense-4b4be09e1da47dfbe789818cc25e74c6e092f601.tar.gz
Actually show other data with gateways status.
Diffstat (limited to 'usr/local/www/widgets/widgets/gateways.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/gateways.widget.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php
index a9ba45f..c2f5645 100644
--- a/usr/local/www/widgets/widgets/gateways.widget.php
+++ b/usr/local/www/widgets/widgets/gateways.widget.php
@@ -30,6 +30,7 @@ require_once("guiconfig.inc");
require_once("pfsense-utils.inc");
require_once("functions.inc");
+$a_gateways = return_gateways_array();
$gateways_status = array();
$gateways_status = return_gateways_status();
@@ -44,9 +45,9 @@ $counter = 1;
<td width="10%" class="listhdrr">Loss</td>
<td width="30%" class="listhdrr">Status</td>
</tr>
- <?php foreach ($gateways_status as $gateway) { ?>
+ <?php foreach ($gateways_status as $target => $gateway) { ?>
<?php
- $monitor = $gateway['monitor'];
+ $monitor = $target;
if(empty($monitor)) {
$monitor = $gateway['gateway'];
}
@@ -57,15 +58,15 @@ $counter = 1;
<?php $counter++; ?>
</td>
<td class="listr" align="center" id="gateway<?= $counter; ?>">
- <?=$gateway['gateway'];?>
+ <?=$a_gateways[$gateway['name']]['gateway'];?>
<?php $counter++; ?>
</td>
<td class="listr" align="center" id="gateway<?= $counter; ?>">
- <?=$gateways_status[$monitor]['delay'];?>
+ <?=$gateway['delay'];?>
<?php $counter++; ?>
</td>
<td class="listr" align="center" id="gateway<?= $counter; ?>">
- <?=$gateways_status[$monitor]['loss'];?>
+ <?=$gateway['loss'];?>
<?php $counter++; ?>
</td>
<td class="listr" id=\"gateway<?=$counter?>\" >
OpenPOWER on IntegriCloud