Added RAND_STREAM option

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1240 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2005-01-26 20:52:59 +00:00
parent eb86e25a3a
commit 8154e21e58
2 changed files with 12 additions and 0 deletions

View File

@ -97,6 +97,10 @@ function getStreamSrc( $args )
$args[] = "pass=".$_SESSION['password'];
}
}
if ( ZM_RAND_STREAM )
{
$args[] = "rand=".time();
}
if ( count($args) )
{

View File

@ -271,6 +271,14 @@ my @options =
type => $types{tristate},
category => 'tools',
},
{
name => "ZM_RAND_STREAM",
default => "no",
description => "Add a random string to prevent caching of streams",
help => "Some browsers can cache the streams used by ZoneMinder. In order to prevent his a harmless random string can be appended to the url to make each invocation of the stream appear unique.",
type => $types{boolean},
category => 'tools',
},
{
name => "ZM_OPT_CAMBOZOLA",
default => "no",