"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' ); noCacheHeaders(); header("Content-type: text/vnd.wap.wml"); echo( ''."\n" ); //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 "watchfeed" : case "watchstatus" : case "imagefetch" : case "settings" : case "events" : case "filter" : case "filtersave" : 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(); ?>