mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 23:16:13 +02:00
I think we needed it anyway ;)
git-svn-id: file:///svn/phpbb/trunk@3439 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2e20478640
commit
21ecf31419
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user