'."\n" ); echo( ''."\n" ); ob_start(); 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_actions.php' ); if ( !isset($user) ) { $view = "login"; } elseif ( !isset($view) ) { $view = "console"; } switch( $view ) { case "console" : case "cycle" : case "devices" : case "event" : case "eventdetails" : case "events" : case "filter" : case "frame" : case "function" : case "login" : case "logout" : case "monitor" : case "montage" : case "postlogin" : case "settings" : case "state" : case "video" : case "watch" : 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(); ?>