diff --git a/web/Makefile.am b/web/Makefile.am
index fe445410d..6506a3b7c 100644
--- a/web/Makefile.am
+++ b/web/Makefile.am
@@ -24,7 +24,6 @@ web_DATA = \
zm_html_view_frame.php \
zm_html_view_frames.php \
zm_html_view_function.php \
- zm_html_view_imagefetch.php \
zm_html_view_login.php \
zm_html_view_logout.php \
zm_html_view_monitor.php \
@@ -88,7 +87,6 @@ EXTRA_DIST = \
zm_html_view_frame.php \
zm_html_view_frames.php \
zm_html_view_function.php \
- zm_html_view_imagefetch.php \
zm_html_view_login.php \
zm_html_view_logout.php \
zm_html_view_monitor.php \
diff --git a/web/Makefile.in b/web/Makefile.in
index bb38f61d2..72f9919e5 100644
--- a/web/Makefile.in
+++ b/web/Makefile.in
@@ -148,7 +148,6 @@ web_DATA = \
zm_html_view_frame.php \
zm_html_view_frames.php \
zm_html_view_function.php \
- zm_html_view_imagefetch.php \
zm_html_view_login.php \
zm_html_view_logout.php \
zm_html_view_monitor.php \
@@ -213,7 +212,6 @@ EXTRA_DIST = \
zm_html_view_frame.php \
zm_html_view_frames.php \
zm_html_view_function.php \
- zm_html_view_imagefetch.php \
zm_html_view_login.php \
zm_html_view_logout.php \
zm_html_view_monitor.php \
diff --git a/web/zm_funcs.php b/web/zm_funcs.php
index 842c0e03d..bcbe5cf5d 100644
--- a/web/zm_funcs.php
+++ b/web/zm_funcs.php
@@ -399,6 +399,7 @@ function createVideo( $event, $rate, $scale, $overwrite=0 )
return( $status?"":rtrim($result) );
}
+// Now deprecated
function createImage( $monitor, $scale )
{
if ( is_array( $monitor ) )
diff --git a/web/zm_html.php b/web/zm_html.php
index 7aa57acae..9b173929c 100644
--- a/web/zm_html.php
+++ b/web/zm_html.php
@@ -124,7 +124,6 @@ switch( $view )
case "watchfeed" :
case "watchstatus" :
case "watchevents" :
- case "imagefetch" :
case "settings" :
case "events" :
case "filter" :
diff --git a/web/zm_html_view_cycle.php b/web/zm_html_view_cycle.php
index 6b124a8d7..66d25dfcf 100644
--- a/web/zm_html_view_cycle.php
+++ b/web/zm_html_view_cycle.php
@@ -59,8 +59,6 @@ $scale = (int)(($width_scale<$height_scale)?$width_scale:$height_scale);
if ( $mode != "stream" )
{
- // Prompt an image to be generated
- createImage( $monitor, $scale );
if ( ZM_WEB_REFRESH_METHOD == "http" )
header("Refresh: ".ZM_WEB_REFRESH_IMAGE."; URL=$PHP_SELF?view=watchfeed&mid=$mid&mode=still" );
}
@@ -127,8 +125,9 @@ if ( $mode == "stream" )
}
else
{
+ $image_src = ZM_PATH_ZMS."?mode=single&monitor=".$monitor['Id']."&scale=".$scale;
?>
-
|
+ |
diff --git a/web/zm_html_view_imagefetch.php b/web/zm_html_view_imagefetch.php
deleted file mode 100644
index 4e0c63ab4..000000000
--- a/web/zm_html_view_imagefetch.php
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
diff --git a/web/zm_html_view_montagefeed.php b/web/zm_html_view_montagefeed.php
index 5c31a254f..1e472f892 100644
--- a/web/zm_html_view_montagefeed.php
+++ b/web/zm_html_view_montagefeed.php
@@ -46,7 +46,6 @@ $scale = (int)(($width_scale<$height_scale)?$width_scale:$height_scale);
if ( $mode != "stream" )
{
// Prompt an image to be generated
- createImage( $monitor, $scale );
if ( ZM_WEB_REFRESH_METHOD == "http" )
header("Refresh: ".ZM_WEB_REFRESH_IMAGE."; URL=$PHP_SELF?view=montagefeed&mid=$mid&mode=still&scale=$scale" );
}
@@ -56,6 +55,8 @@ 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
+$image_src = ZM_PATH_ZMS."?mode=single&monitor=".$monitor['Id']."&scale=".$scale;
+
?>
@@ -70,16 +71,13 @@ if ( $mode != "stream" && ZM_WEB_REFRESH_METHOD == "javascript" )
?>
function fetchImage()
{
- window.parent.MontageFetch= $monitor['Id'] ?>.location.reload( true );
-
var now = new Date();
var zm_image = new Image();
- zm_image.src = '= ZM_DIR_IMAGES.'/'.$monitor['Name'] ?>.jpg?'+now.getTime();
+ zm_image.src = '= $image_src ?>'+'&'+now.getTime();
document['zmImage'].src = zm_image.src;
}
-window.parent.MontageFetch= $monitor['Id'] ?>.location = '= $PHP_SELF ?>?view=imagefetch&mid== $monitor['Id'] ?>&scale== $scale ?>';
window.setInterval( "fetchImage()", = ZM_WEB_REFRESH_IMAGE*1000 ?> );
else
{
?>
-
+
diff --git a/web/zm_html_view_montageframe.php b/web/zm_html_view_montageframe.php
index 664de0284..346fb86e4 100644
--- a/web/zm_html_view_montageframe.php
+++ b/web/zm_html_view_montageframe.php
@@ -30,15 +30,7 @@ if ( !canView( 'Stream' ) )
if ( ZM_WEB_COMPACT_MONTAGE )
{
?>
-