Bug 251 - Fixed problem with 'none' auth relay method.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1804 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2006-01-14 13:39:15 +00:00
parent 994604e1e8
commit e0aa7c8172
1 changed files with 8 additions and 0 deletions

View File

@ -131,6 +131,10 @@ function getStreamSrc( $args )
$args[] = "user=".$_SESSION['username'];
$args[] = "pass=".$_SESSION['password'];
}
elseif ( ZM_AUTH_RELAY == "none" )
{
$args[] = "user=".$_SESSION['username'];
}
}
if ( ZM_RAND_STREAM )
{
@ -380,6 +384,10 @@ function getZmuCommand( $args )
{
$zmu_command .= " -U ".$_SESSION['username']." -P ".$_SESSION['password'];
}
elseif ( ZM_AUTH_RELAY == "none" )
{
$zmu_command .= " -U ".$_SESSION['username'];
}
}
$zmu_command .= $args;