"admin", "Password"=>"", "Language"=>"", "Enabled"=>1, "Stream"=>'View', "Events"=>'Edit', "Control"=>'Edit', "Monitors"=>'Edit', "System"=>'Edit', ); } require_once( 'zm_lang.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) && ZM_OPT_USE_AUTH ) { if ( ZM_AUTH_TYPE == "remote" && !empty( $_SERVER['REMOTE_USER'] ) ) { $view = "postlogin"; $action = "login"; $username = $_SERVER['REMOTE_USER']; } } require_once( 'zm_funcs.php' ); require_once( 'zm_actions.php' ); if ( !isset($user) ) { $view = "login"; } else { // Bandwidth Limiter if ( !empty($user['MaxBandwidth']) ) { if ( $user['MaxBandwidth'] == "low" ) { $bandwidth = "low"; } elseif ( $user['MaxBandwidth'] == "medium" && $bandwidth == "high" ) { $bandwidth = "medium"; } } } if ( !isset($view) ) { $view = "console"; } switch( $view ) { case "login" : case "postlogin" : case "logout" : case "console" : case "groups" : 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 "siren" : case "settings" : case "events" : case "timeline" : case "filter" : case "filtersave" : case "event" : case "eventdetail" : case "export" : case "frame" : case "frames" : case "stats" : case "monitor" : case "monitorpreset" : case "zones" : case "zone" : case "video" : case "function" : case "control" : case "controlmenu" : case "controlpanel" : case "controlpreset" : case "controlcap" : case "controlcaps" : case "donate" : case "blank" : case "none" : { require_once( "zm_".$format."_view_".$view.".php" ); break; } default : { $view = "error"; } } if ( $view == "error" ) { require_once( "zm_".$format."_view_".$view.".php" ); } ?>