diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index 91afc36e0d..161aade1e1 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -103,24 +103,14 @@ display_top_tabs($tab_array); $counter=0; foreach($states as $state) { - $state_fixed = str_replace(" ", " ", $state); - $state_fixed = str_replace(" ", " ", $state_fixed); - $state_fixed = str_replace(" ", " ", $state_fixed); - $state_fixed = str_replace(" ", " ", $state_fixed); - $state_fixed = str_replace(" ", " ", $state_fixed); - $state_fixed = str_replace(" ", " ", $state_fixed); - $state_fixed = str_replace(" ", " ", $state_fixed); - $state_split = split(" ", $state_fixed); - $items = count($state_split); - $starting_at = $items-8; print ""; - print "{$state_split[$starting_at]}"; - print "{$state_split[$starting_at+1]}"; - print "{$state_split[$starting_at+2]}"; - print "{$state_split[$starting_at+3]}"; - print "{$state_split[$starting_at+4]}"; - print "{$state_split[$starting_at+5]}"; - print "{$state_split[$starting_at+6]}"; + print "" . trim(substr($state, 0 , 16)) . ""; + print "" . trim(substr($state, 16, 19)) . ""; + print "" . trim(substr($state, 35, 5)) . ""; + print "" . trim(substr($state, 40, 5)) . ""; + print "" . trim(substr($state, 45, 9)) . ""; + print "" . trim(substr($state, 54, 4)) . ""; + print "" . trim(substr($state, 58)) . ""; print "\n"; print "\n"; }