From 26ee2b8610bfc80f26dbca3778c09f4ee180b56b Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Wed, 15 Jul 2009 21:51:28 -0400 Subject: [PATCH] Fix from jim-p for wireless display issues. Issue #6 --- usr/local/www/status_wireless.php | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) 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"; }