From 21ecf31419f3aeec5faccc223d3279a49606185a Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Fri, 31 Jan 2003 02:14:48 +0000 Subject: [PATCH] I think we needed it anyway ;) git-svn-id: file:///svn/phpbb/trunk@3439 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/session.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 78c22c142d..d467633abd 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -713,14 +713,13 @@ class auth // Authentication plug-ins is largely down to Sergey Kanareykin, our thanks to him. function login($username, $password, $autologin = false) { - global $config, $user, $phpEx; + global $config, $user, $phpbb_root_path, $phpEx; $method = trim($config['auth_method']); - // NOTE: don't we need $phpbb_root_path here? - if (file_exists('includes/auth/auth_' . $method . '.' . $phpEx)) + if (file_exists($phpbb_root_path . 'includes/auth/auth_' . $method . '.' . $phpEx)) { - include_once('includes/auth/auth_' . $method . '.' . $phpEx); + include_once($phpbb_root_path . 'includes/auth/auth_' . $method . '.' . $phpEx); $method = 'login_' . $method; if (function_exists($method))