aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-10-09 14:17:02 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-10-09 14:17:02 +0000
commit253f18632242a113c97a3e5d70ee6f65c3f9ce84 (patch)
tree5d27d1f5728360927655a27daf6fde055ccdea99 /phpBB/index.php
parentab5146a72ab8e348b9527c0df3dc5ad8f0d759f3 (diff)
downloadforums-253f18632242a113c97a3e5d70ee6f65c3f9ce84.tar
forums-253f18632242a113c97a3e5d70ee6f65c3f9ce84.tar.gz
forums-253f18632242a113c97a3e5d70ee6f65c3f9ce84.tar.bz2
forums-253f18632242a113c97a3e5d70ee6f65c3f9ce84.tar.xz
forums-253f18632242a113c97a3e5d70ee6f65c3f9ce84.zip
- Do not show link to user/group profiles if user has no permission to view the linked page and gets a denied message anyway. (Bug #15088)
- Do not display last post link and sort display options for search engines. (Bug #15088) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8987 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 11568c2db9..2d1329c511 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -60,22 +60,25 @@ else
}
$result = $db->sql_query($sql);
-$legend = '';
+$legend = array();
while ($row = $db->sql_fetchrow($result))
{
$colour_text = ($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . '"' : '';
+ $group_name = ($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name'];
- if ($row['group_name'] == 'BOTS')
+ if ($row['group_name'] == 'BOTS' || ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')))
{
- $legend .= (($legend != '') ? ', ' : '') . '<span' . $colour_text . '>' . $user->lang['G_BOTS'] . '</span>';
+ $legend[] = '<span' . $colour_text . '>' . $group_name . '</span>';
}
else
{
- $legend .= (($legend != '') ? ', ' : '') . '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&amp;g=' . $row['group_id']) . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>';
+ $legend[] = '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&amp;g=' . $row['group_id']) . '">' . $group_name . '</a>';
}
}
$db->sql_freeresult($result);
+$legend = implode(', ', $legend);
+
// Generate birthday list if required ...
$birthday_list = '';
if ($config['load_birthdays'] && $config['allow_birthdays'])