diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-04-26 01:17:40 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-04-26 01:17:40 +0000 |
commit | 5362625eabd86278d9f7cbc7175e02e3b5f613ca (patch) | |
tree | 34adeecdc30441ba7c4b497b986415d7608b933a /phpBB/memberlist.php | |
parent | 4e43cb51536fdfff64d8560b054ad601949deb6d (diff) | |
download | forums-5362625eabd86278d9f7cbc7175e02e3b5f613ca.tar forums-5362625eabd86278d9f7cbc7175e02e3b5f613ca.tar.gz forums-5362625eabd86278d9f7cbc7175e02e3b5f613ca.tar.bz2 forums-5362625eabd86278d9f7cbc7175e02e3b5f613ca.tar.xz forums-5362625eabd86278d9f7cbc7175e02e3b5f613ca.zip |
Various changes, and tests ... marking/tracking is not complete ... tinkering, changing, etc. still to be done ... it's just I've made numerous and various changes to different files so a commit really is due
git-svn-id: file:///svn/phpbb/trunk@3953 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r-- | phpBB/memberlist.php | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 2e93425382..9e6999fde0 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -33,17 +33,26 @@ $auth->acl($user->data); $mode = (isset($_REQUEST['mode'])) ? htmlspecialchars($_REQUEST['mode']) : ''; $user_id = (isset($_GET['u'])) ? intval($_GET['u']) : ANONYMOUS; -// Can this user view profiles/memberslist? -if (!$auth->acl_gets('u_viewprofile', 'a_')) + +switch ($mode) { - if ($user->data['user_id'] != ANONYMOUS) - { - trigger_error($user->lang['NO_VIEW_USERS']); - } + case 'email': + break; + default: + // Can this user view profiles/memberslist? + if (!$auth->acl_gets('u_viewprofile', 'a_')) + { + if ($user->data['user_id'] != ANONYMOUS) + { + trigger_error($user->lang['NO_VIEW_USERS']); + } - login_box(preg_replace('#.*?([a-z]+?\.' . $phpEx . '.*?)$#i', '\1', htmlspecialchars($_SERVER['REQUEST_URI']))); + login_box(preg_replace('#.*?([a-z]+?\.' . $phpEx . '.*?)$#i', '\1', htmlspecialchars($_SERVER['REQUEST_URI']))); + } + break; } + $start = (isset($_GET['start'])) ? intval($_GET['start']) : 0; $form = (!empty($_GET['form'])) ? htmlspecialchars($_GET['form']) : 0; $field = (isset($_GET['field'])) ? htmlspecialchars($_GET['field']) : 'username'; @@ -517,7 +526,7 @@ switch ($mode) $db->sql_freeresult($result); // Do the SQL thang - $sql = "SELECT username, user_id, user_colour, user_viewemail, user_posts, user_regdate, user_rank, user_from, user_website, user_email, user_sig, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar, user_lastvisit + $sql = "SELECT username, user_id, user_colour, user_viewemail, user_posts, user_regdate, user_rank, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar, user_lastvisit FROM " . USERS_TABLE . " WHERE user_id <> " . ANONYMOUS . " $where_sql |