From abe98adb911f9ff76af12034646a4c64e26d6390 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 15 Dec 2015 10:38:12 +0545 Subject: Code style status* --- src/usr/local/www/status_wireless.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/usr/local/www/status_wireless.php') diff --git a/src/usr/local/www/status_wireless.php b/src/usr/local/www/status_wireless.php index 5e13e4f..014f2af 100644 --- a/src/usr/local/www/status_wireless.php +++ b/src/usr/local/www/status_wireless.php @@ -72,13 +72,13 @@ include("head.inc"); $if = $_POST['if']; -if($_GET['if'] != "") +if ($_GET['if'] != "") { $if = $_GET['if']; +} $ciflist = get_configured_interface_with_descr(); if (empty($if)) { - /* Find the first interface - that is wireless */ + /* Find the first interface that is wireless */ foreach ($ciflist as $interface => $ifdescr) { if (is_interface_wireless(get_real_interface($interface))) { $if = $interface; @@ -89,11 +89,12 @@ if (empty($if)) { $tab_array = array(); -foreach($ciflist as $interface => $ifdescr) { +foreach ($ciflist as $interface => $ifdescr) { if (is_interface_wireless(get_real_interface($interface))) { $enabled = false; - if($if == $interface) + if ($if == $interface) { $enabled = true; + } $tab_array[] = array(gettext("Status") . " ({$ifdescr})", $enabled, "status_wireless.php?if={$interface}"); } @@ -101,13 +102,14 @@ foreach($ciflist as $interface => $ifdescr) { $rwlif = get_real_interface($if); -if($_POST['rescanwifi'] != "") { +if ($_POST['rescanwifi'] != "") { mwexec_bg("/sbin/ifconfig {$rwlif} scan 2>&1"); $savemsg = gettext("Rescan has been initiated in the background. Refresh this page in 10 seconds to see the results."); } -if ($savemsg) +if ($savemsg) { print_info_box($savemsg, 'success'); +} display_top_tabs($tab_array); ?> @@ -209,13 +211,13 @@ display_top_tabs($tab_array); $counter=0; - foreach($states as $state) { + foreach ($states as $state) { $split = preg_split("/[ ]+/i", $state); ?> -- cgit v1.1