Moved session start to only go when in auth mode.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@643 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
391f7eb780
commit
145ab1fa6d
|
@ -28,12 +28,11 @@ ini_set( "session.use_trans_sid", "0" );
|
||||||
ini_set( "session.name", "ZMSESSID" );
|
ini_set( "session.name", "ZMSESSID" );
|
||||||
//ini_set( "magic_quotes_gpc", "Off" );
|
//ini_set( "magic_quotes_gpc", "Off" );
|
||||||
|
|
||||||
//session_start();
|
|
||||||
|
|
||||||
require_once( 'zm_config.php' );
|
require_once( 'zm_config.php' );
|
||||||
|
|
||||||
if ( ZM_OPT_USE_AUTH )
|
if ( ZM_OPT_USE_AUTH )
|
||||||
{
|
{
|
||||||
|
session_start();
|
||||||
$user = $HTTP_SESSION_VARS[user];
|
$user = $HTTP_SESSION_VARS[user];
|
||||||
define( "ZMU_COMMAND", ZMU_PATH." -U $HTTP_SESSION_VARS[username] -P $HTTP_SESSION_VARS[password]" );
|
define( "ZMU_COMMAND", ZMU_PATH." -U $HTTP_SESSION_VARS[username] -P $HTTP_SESSION_VARS[password]" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue