"admin", "Password"=>"", "Language"=>"", "Enabled"=>1, "Stream"=>'View', "Events"=>'Edit', "Monitors"=>'Edit', "System"=>'Edit', ); } require_once( 'zm_lang.php' ); require_once( 'zm_funcs.php' ); require_once( 'zm_actions.php' ); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // HTTP/1.0 header("Content-type: application/xhtml+xml" ); echo( ''."\n" ); echo( ''."\n" ); ob_start(); $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 "cycle" : case "watch" : case "montage" : case "settings" : case "events" : case "filter" : case "event" : case "frame" : case "frames" : case "monitor" : case "video" : case "function" : case "none" : { require_once( "zm_".$format."_view_".$view.".php" ); break; } default : { $view = "error"; } } if ( $view == "error" ) { require_once( "zm_".$format."_view_".$view.".php" ); } //$fp = fopen( "/tmp/output.html", "w" ); //fwrite( $fp, ob_get_contents() ); //fclose( $fp ); ob_end_flush(); ?>