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:
stan 2003-10-08 13:01:49 +00:00
parent 391f7eb780
commit 145ab1fa6d
1 changed files with 1 additions and 2 deletions

View File

@ -28,12 +28,11 @@ ini_set( "session.use_trans_sid", "0" );
ini_set( "session.name", "ZMSESSID" );
//ini_set( "magic_quotes_gpc", "Off" );
//session_start();
require_once( 'zm_config.php' );
if ( ZM_OPT_USE_AUTH )
{
session_start();
$user = $HTTP_SESSION_VARS[user];
define( "ZMU_COMMAND", ZMU_PATH." -U $HTTP_SESSION_VARS[username] -P $HTTP_SESSION_VARS[password]" );
}