diff options
author | Ermal <eri@pfsense.org> | 2010-06-16 11:24:00 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-16 11:24:00 +0000 |
commit | 096ee9c22de0afd71a17518bcb112807e46fe49a (patch) | |
tree | ba7534932f37f3cc6eddde2f15cf51e767db580c /usr/local | |
parent | a138f4fbc077f89ff413355ba738e00d36317973 (diff) | |
download | pfsense-096ee9c22de0afd71a17518bcb112807e46fe49a.zip pfsense-096ee9c22de0afd71a17518bcb112807e46fe49a.tar.gz |
Make some non functional changes, mostly to keep up with latest gw changes. Related to Ticket #666
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_gateway_groups.php | 2 | ||||
-rwxr-xr-x | usr/local/www/status_gateways.php | 6 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/gateways.widget.php | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/status_gateway_groups.php b/usr/local/www/status_gateway_groups.php index d4f0d85..5ed4aa9 100755 --- a/usr/local/www/status_gateway_groups.php +++ b/usr/local/www/status_gateway_groups.php @@ -128,7 +128,7 @@ include("head.inc"); } elseif (stristr($status, "delay")) { $online = "Warning, Latency"; $bgcolor = "khaki"; - } elseif (stristr($status, "none")) { + } elseif ($status == "none") { $online = "Online"; $bgcolor = "lightgreen"; } else { diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php index 125100b..4d85a42 100755 --- a/usr/local/www/status_gateways.php +++ b/usr/local/www/status_gateways.php @@ -99,7 +99,7 @@ include("head.inc"); } elseif (stristr($gateway['status'], "delay")) { $online = "Warning, Latency"; $bgcolor = "khaki"; - } elseif (stristr($gateway['status'], "none")) { + } elseif ($gateway['status'] == "none") { $online = "Online"; $bgcolor = "lightgreen"; } @@ -110,9 +110,9 @@ include("head.inc"); array_shift($lastchange); array_shift($lastchange); $lastchange = implode(" ", $lastchange); - PRINT "Last check $lastchange"; + echo "Last check $lastchange"; } else { - print "Gathering data"; + echo "Gathering data"; } echo "</td></tr>"; ?> diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php index b8bca28..a744d5b 100644 --- a/usr/local/www/widgets/widgets/gateways.widget.php +++ b/usr/local/www/widgets/widgets/gateways.widget.php @@ -54,11 +54,11 @@ $counter = 1; <tr> <td class="listlr" id="gateway<?= $counter; ?>"> <?=$gateway['name'];?> - <?php $counter++; ?> + <?php $counter++; ?> </td> <td class="listr" align="center" id="gateway<?= $counter; ?>"> - <?php echo lookup_gateway_ip_by_name($gateway['name']);?> - <?php $counter++; ?> + <?php echo lookup_gateway_ip_by_name($gateway['name']);?> + <?php $counter++; ?> </td> <td class="listr" align="center" id="gateway<?= $counter; ?>"> <?=$gateway['delay'];?> @@ -80,7 +80,7 @@ $counter = 1; } elseif (stristr($gateway['status'], "delay")) { $online = "Warning, Latency"; $bgcolor = "khaki"; - } elseif (stristr($gateway['status'], "none")) { + } elseif ($gateway['status'] == "none") { $online = "Online"; $bgcolor = "lightgreen"; } else |