"admin", "Password"=>"", "Language"=>"", "Enabled"=>1, "Stream"=>'View', "Events"=>'Edit', "Monitors"=>'Edit', "System"=>'Edit', ); define( "ZMU_COMMAND", ZMU_PATH ); } require_once( 'zm_lang.php' ); require_once( 'zm_funcs.php' ); require_once( 'zm_actions.php' ); $bw_array = array( "high"=>$zmSlangHigh, "medium"=>$zmSlangMedium, "low"=>$zmSlangLow ); $rates = array( "10000" => "100x", "5000" => "50x", "2500" => "25x", "1000" => "10x", "400" => "4x", "200" => "2x", "100" => $zmSlangReal, "50" => "1/2x", "25" => "1/4x", ); $scales = array( "400" => "4x", "300" => "3x", "200" => "2x", "150" => "1.5x", "100" => $zmSlangActual, "75" => "3/4x", "50" => "1/2x", "33" => "1/3x", "25" => "1/4x", ); if ( !isset($user) ) { $view = "login"; } elseif ( !isset($view) ) { $view = "console"; } switch( $view ) { case "login" : case "postlogin" : case "logout" : case "console" : case "state" : case "bandwidth" : case "version" : case "options" : case "optionhelp" : case "restarting" : case "user" : case "cycle" : case "montage" : case "montageframe" : case "montagemenu" : case "montagefeed" : case "montagestatus" : case "watch" : case "watchmenu" : case "watchfeed" : case "watchstatus" : case "watchevents" : case "imagefetch" : case "settings" : case "events" : case "filter" : case "filtersave" : case "event" : case "frame" : case "frames" : 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" ); } ?>