diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-12-21 15:37:08 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-12-21 15:37:08 +0100 |
commit | 9a21b5470f7e1e8ff1f47d72e780726598fedb5a (patch) | |
tree | 34fbac5ab412d6d146242f1cfda064dec34539d4 /usr/local | |
parent | 2328dcc5f0fd5cd875ec15d47260d3626615bb0d (diff) | |
download | pfsense-9a21b5470f7e1e8ff1f47d72e780726598fedb5a.zip pfsense-9a21b5470f7e1e8ff1f47d72e780726598fedb5a.tar.gz |
Fix status page to correctly itterate the gateways array
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_gateways.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php index 12e0c0a..c84e815 100755 --- a/usr/local/www/status_gateways.php +++ b/usr/local/www/status_gateways.php @@ -76,7 +76,9 @@ include("head.inc"); <td width="30%" class="listhdrr">Status</td> <td width="30%" class="listhdr">Description</td> </tr> - <?php $i = 0; foreach ($a_gateways as $gateway) { ?> + <?php foreach ($a_gateways as $gateway) { + $i = 2; + ?> <tr> <td class="listlr"> <?=strtoupper($gateway['name']);?> @@ -90,6 +92,10 @@ include("head.inc"); <td class="listr" > <table border="0" cellpadding="0" cellspacing="2"> <?php + if($gateway['gateway'] == "dynamic") { + $gateway['monitor'] = "127.0.0.{$i}"; + $i++; + } $monitor = $gateway['monitor']; if(empty($monitor)) { $monitor = $gateway['gateway']; @@ -132,10 +138,7 @@ include("head.inc"); <?=$gateway['descr'];?></font> </td> </tr> - <?php - $i++; - } - ?> + <?php } ?> </table> </div> </table> |