"admin", "Password"=>"", "Enabled"=>1, "Stream"=>'View', "Events"=>'Edit', "Monitors"=>'Edit', "System"=>'Edit', ); define( "ZMU_COMMAND", ZMU_PATH ); } require_once( 'zm_funcs.php' ); require_once( 'zm_actions.php' ); if ( !$user ) { $view = "login"; } elseif ( !$view ) { $view = "console"; } switch( $view ) { case "login" : case "postlogin" : case "logout" : case "console" : case "bandwidth" : case "options" : case "optionhelp" : case "restarting" : case "user" : case "cycle" : case "montage" : case "montagefeed" : case "montagestatus" : case "watch" : case "watchfeed" : case "settings" : case "watchstatus" : case "watchevents" : case "events" : case "filter" : case "filtersave" : case "event" : case "image" : case "stats" : case "monitor" : case "zones" : case "zone" : case "video" : case "function" : case "none" : { require_once( "zm_html_view_$view.php" ); break; } default : { $view = "error"; } } if ( $view == "error" ) { require_once( "zm_html_view_$view.php" ); } ?>