diff --git a/includes/dashboard.php b/includes/dashboard.php index 981833c7..90b4fb14 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -6,6 +6,8 @@ */ function DisplayDashboard(){ + $status = new StatusMessages(); + exec( 'ifconfig wlan0', $return ); exec( 'iwconfig wlan0', $return ); @@ -43,12 +45,10 @@ function DisplayDashboard(){ $strFrequency = $result[1]; if(strpos( $strWlan0, "UP" ) !== false && strpos( $strWlan0, "RUNNING" ) !== false ) { - $status = '
Interface is up -
'; + $status->addMessage('Interface is up', 'success'); $wlan0up = true; } else { - $status = '
Interface is down -
'; + $status->addMessage('Interface is down', 'warning'); } if( isset($_POST['ifdown_wlan0']) ) { @@ -72,7 +72,7 @@ function DisplayDashboard(){
Dashboard
-

+

showMessages(); ?>