diff options
Diffstat (limited to 'phpBB/includes/auth')
| -rw-r--r-- | phpBB/includes/auth/auth_apache.php | 4 | ||||
| -rw-r--r-- | phpBB/includes/auth/auth_db.php | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/phpBB/includes/auth/auth_apache.php b/phpBB/includes/auth/auth_apache.php index acdd4e3386..c57a06a46d 100644 --- a/phpBB/includes/auth/auth_apache.php +++ b/phpBB/includes/auth/auth_apache.php @@ -165,9 +165,7 @@ function autologin_apache() if (!function_exists('user_add')) { - global $phpbb_root_path, $phpEx; - - include($phpbb_root_path . 'includes/functions_user.' . $phpEx); + include(PHPBB_ROOT_PATH . 'includes/functions_user.' . PHP_EXT); } // create the user if he does not exist yet diff --git a/phpBB/includes/auth/auth_db.php b/phpBB/includes/auth/auth_db.php index 00dd438210..fa99a2fe4c 100644 --- a/phpBB/includes/auth/auth_db.php +++ b/phpBB/includes/auth/auth_db.php @@ -137,8 +137,7 @@ function login_db(&$username, &$password) { if (!function_exists('utf8_to_cp1252')) { - global $phpbb_root_path, $phpEx; - include($phpbb_root_path . 'includes/utf/data/recode_basic.' . $phpEx); + include(PHPBB_ROOT_PATH . 'includes/utf/data/recode_basic.' . PHP_EXT); } // cp1252 is phpBB2's default encoding, characters outside ASCII range might work when converted into that encoding |
