From cdcf29964bfe32f43289fea1109182d8a246cc9c Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Fri, 28 Nov 2014 00:27:04 +0000 Subject: [PATCH] Remove rest of unused php from console view. --- web/skins/bootstrap/views/console.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/web/skins/bootstrap/views/console.php b/web/skins/bootstrap/views/console.php index 2664dee4b..eeee519ae 100644 --- a/web/skins/bootstrap/views/console.php +++ b/web/skins/bootstrap/views/console.php @@ -18,32 +18,6 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // -$group = NULL; -if ( ! empty($_COOKIE['zmGroup']) ) { - if ( $group = dbFetchOne( 'select * from Groups where Id = ?', NULL, array($_COOKIE['zmGroup'])) ) - $groupIds = array_flip(explode( ',', $group['MonitorIds'] )); -} - -$monitors = dbFetchAll( "select * from Monitors order by Sequence asc" ); -$displayMonitors = array(); -for ( $i = 0; $i < count($monitors); $i++ ) -{ - if ( !visibleMonitor( $monitors[$i]['Id'] ) ) - { - continue; - } - if ( $group && !empty($groupIds) && !array_key_exists( $monitors[$i]['Id'], $groupIds ) ) - { - continue; - } - $monitors[$i]['Show'] = true; - $monitors[$i]['zmc'] = zmcStatus( $monitors[$i] ); - $monitors[$i]['zma'] = zmaStatus( $monitors[$i] ); - $displayMonitors[] = $monitors[$i]; -} - -$versionClass = (ZM_DYN_DB_VERSION&&(ZM_DYN_DB_VERSION!=ZM_VERSION))?'errorText':''; - xhtmlHeaders( __FILE__, $SLANG['Console'] ); ?>