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:
parent
e53a7cba77
commit
7ec608327d
|
@ -29,6 +29,8 @@ ini_set( "session.name", "ZMSESSID" );
|
|||
|
||||
session_start();
|
||||
|
||||
require_once( 'zm_config.php' );
|
||||
|
||||
if ( ZM_OPT_USE_AUTH )
|
||||
{
|
||||
$user = $HTTP_SESSION_VARS[user];
|
||||
|
@ -46,7 +48,6 @@ else
|
|||
);
|
||||
}
|
||||
|
||||
require_once( 'zm_config.php' );
|
||||
require_once( 'zm_db.php' );
|
||||
require_once( 'zm_funcs.php' );
|
||||
require_once( 'zm_actions.php' );
|
||||
|
|
Loading…
Reference in New Issue