From 7ec608327d5ac30673c997a20f5c71a9c7dc5e8b Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 29 Jun 2003 22:12:50 +0000 Subject: [PATCH] Moved config calls in front of auth test. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@584 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/zm_html.php b/web/zm_html.php index df3607802..fdb8e79de 100644 --- a/web/zm_html.php +++ b/web/zm_html.php @@ -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' );