diff options
author | Ermal <eri@pfsense.org> | 2010-06-07 21:07:47 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-07 21:08:11 +0000 |
commit | 66a96e72c06a808f75b8c87ef80aea0c0f95d946 (patch) | |
tree | 93e2e95a125bd8badb4bdec54b7f79947f8086a9 /usr | |
parent | ac7609c2b663693fbbaaba7de2d2a9ab906def07 (diff) | |
download | pfsense-66a96e72c06a808f75b8c87ef80aea0c0f95d946.zip pfsense-66a96e72c06a808f75b8c87ef80aea0c0f95d946.tar.gz |
Reorganize code to be able to actually use the lookup_gateway_ip_by_name() function to find even dynamic gateways ip.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_gateways.php | 2 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/gateways.widget.php | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php index 8ca69f6..125100b 100755 --- a/usr/local/www/status_gateways.php +++ b/usr/local/www/status_gateways.php @@ -82,7 +82,7 @@ include("head.inc"); <?=strtoupper($gateway['name']);?> </td> <td class="listr" align="center" > - <?=$a_gateways[$gateway['name']['gateway'];?> + <?php echo lookup_gateway_ip_by_name($gateway['name']);?> </td> <td class="listr" align="center" > <?=$target;?> diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php index c2f5645..b8bca28 100644 --- a/usr/local/www/widgets/widgets/gateways.widget.php +++ b/usr/local/www/widgets/widgets/gateways.widget.php @@ -30,7 +30,6 @@ 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(); @@ -58,7 +57,7 @@ $counter = 1; <?php $counter++; ?> </td> <td class="listr" align="center" id="gateway<?= $counter; ?>"> - <?=$a_gateways[$gateway['name']]['gateway'];?> + <?php echo lookup_gateway_ip_by_name($gateway['name']);?> <?php $counter++; ?> </td> <td class="listr" align="center" id="gateway<?= $counter; ?>"> |