diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-06-12 13:34:27 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-06-12 13:34:27 +0000 |
commit | 06bb1ff5329b2334896c366f92ecdaa95d891146 (patch) | |
tree | b4f45d5ff4917b94a3549d77473ace39bc200b53 /phpBB/includes | |
parent | f8ad3c0c2cf65f73a0416700e5832cc4c8885021 (diff) | |
download | forums-06bb1ff5329b2334896c366f92ecdaa95d891146.tar forums-06bb1ff5329b2334896c366f92ecdaa95d891146.tar.gz forums-06bb1ff5329b2334896c366f92ecdaa95d891146.tar.bz2 forums-06bb1ff5329b2334896c366f92ecdaa95d891146.tar.xz forums-06bb1ff5329b2334896c366f92ecdaa95d891146.zip |
Some language var switch overs
git-svn-id: file:///svn/phpbb/trunk@478 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/auth.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php index 066088accd..18906ebc34 100644 --- a/phpBB/includes/auth.php +++ b/phpBB/includes/auth.php @@ -55,7 +55,7 @@ */ function auth($type, $forum_id, $userdata, $f_access = -1) { - global $db; + global $db, $lang; switch($type) { @@ -230,27 +230,27 @@ function auth($type, $forum_id, $userdata, $f_access = -1) { case AUTH_ALL: $auth_user[$key] = 1; - $auth_user[$key . '_type'] = "Anonymous Users"; + $auth_user[$key . '_type'] = $lang['Anonymous_users']; break; case AUTH_REG: $auth_user[$key] = ($userdata['session_logged_in']) ? 1 : 0; - $auth_user[$key . '_type'] = "Registered Users"; + $auth_user[$key . '_type'] = $lang['Registered_Users']; break; case AUTH_ACL: $auth_user[$key] = ($userdata['session_logged_in'] && $num_u_access) ? auth_check_user(AUTH_ACL, $key, $u_access, $is_admin) : 0; - $auth_user[$key . '_type'] = "Users granted special access"; + $auth_user[$key . '_type'] = $lang['Users_granted_access']; break; case AUTH_MOD: $auth_user[$key] = ($userdata['session_logged_in'] && $num_u_access) ? auth_check_user(AUTH_MOD, $key, $u_access, $is_admin) : 0; - $auth_user[$key . '_type'] = "Moderators"; + $auth_user[$key . '_type'] = $lang['Moderators']; break; case AUTH_ADMIN: $auth_user[$key] = $is_admin; - $auth_user[$key . '_type'] = "Administrators"; + $auth_user[$key . '_type'] = $lang['Administrators']; break; default: @@ -269,27 +269,27 @@ function auth($type, $forum_id, $userdata, $f_access = -1) { case AUTH_ALL: $auth_user[$f_forum_id][$key] = 1; - $auth_user[$f_forum_id][$key . '_type'] = "Anonymous Users"; + $auth_user[$f_forum_id][$key . '_type'] = $lang['Anonymous_users']; break; case AUTH_REG: $auth_user[$f_forum_id][$key] = ($userdata['session_logged_in']) ? 1 : 0; - $auth_user[$f_forum_id][$key . '_type'] = "Registered Users"; + $auth_user[$f_forum_id][$key . '_type'] = $lang['Registered_Users']; break; case AUTH_ACL: $auth_user[$f_forum_id][$key] = ($userdata['session_logged_in'] && $num_u_access) ? auth_check_user(AUTH_ACL, $key, $u_access, $is_admin) : 0; - $auth_user[$f_forum_id][$key . '_type'] = "Users granted special access"; + $auth_user[$f_forum_id][$key . '_type'] = $lang['Users_granted_access']; break; case AUTH_MOD: $auth_user[$f_forum_id][$key] = ($userdata['session_logged_in'] && $num_u_access) ? auth_check_user(AUTH_MOD, $key, $u_access, $is_admin) : 0; - $auth_user[$f_forum_id][$key . '_type'] = "Moderators"; + $auth_user[$f_forum_id][$key . '_type'] = $lang['Moderators']; break; case AUTH_ADMIN: $auth_user[$f_forum_id][$key] = $is_admin; - $auth_user[$f_forum_id][$key . '_type'] = "Administrators"; + $auth_user[$f_forum_id][$key . '_type'] = $lang['Administrators']; break; default: |