diff --git a/web/zm.php b/web/zm.php index ba492f0c0..df8637c76 100644 --- a/web/zm.php +++ b/web/zm.php @@ -1,22 +1,11 @@ - + @@ -398,7 +398,13 @@ window.focus(); elseif( $view == "watch" ) { if ( !$mode ) - $mode = "stream"; + { + if ( canStream() ) + $mode = "stream"; + else + $mode = "still"; + } + $result = mysql_query( "select * from Monitors where Id = '$mid'" ); if ( !$result ) die( mysql_error() ); @@ -428,16 +434,18 @@ function closeWindow() { Stream -Stills - +Stills + Stream + Close @@ -446,7 +454,7 @@ function closeWindow() { else { ?> - + Close @@ -843,7 +851,7 @@ function newWindow(Url,Name,Width,Height) { else { ?> - + @@ -854,6 +862,8 @@ function newWindow(Url,Name,Width,Height) { } elseif( $view == "zones" ) { + $status = exec( escapeshellcmd( ZMU_PATH." -m $mid -z" ) ); + $result = mysql_query( "select * from Monitors where Id = '$mid'" ); if ( !$result ) die( mysql_error() ); @@ -1106,6 +1116,18 @@ function closeWindow() {