Moved config calls in front of auth test.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@584 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-06-29 22:12:50 +00:00
parent e53a7cba77
commit 7ec608327d
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,8 @@ ini_set( "session.name", "ZMSESSID" );
session_start(); session_start();
require_once( 'zm_config.php' );
if ( ZM_OPT_USE_AUTH ) if ( ZM_OPT_USE_AUTH )
{ {
$user = $HTTP_SESSION_VARS[user]; $user = $HTTP_SESSION_VARS[user];
@ -46,7 +48,6 @@ else
); );
} }
require_once( 'zm_config.php' );
require_once( 'zm_db.php' ); require_once( 'zm_db.php' );
require_once( 'zm_funcs.php' ); require_once( 'zm_funcs.php' );
require_once( 'zm_actions.php' ); require_once( 'zm_actions.php' );