diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-16 20:07:20 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-16 20:07:20 +0000 |
commit | 0da1cfaa9b3a7b0b30503100308fd693b8982ed2 (patch) | |
tree | 132967a2711472730c6db3704d2eee4c67362027 /phpBB/viewtopic.php | |
parent | 0fadabd02d4eb91f6312e714910cf359d30c35e7 (diff) | |
download | forums-0da1cfaa9b3a7b0b30503100308fd693b8982ed2.tar forums-0da1cfaa9b3a7b0b30503100308fd693b8982ed2.tar.gz forums-0da1cfaa9b3a7b0b30503100308fd693b8982ed2.tar.bz2 forums-0da1cfaa9b3a7b0b30503100308fd693b8982ed2.tar.xz forums-0da1cfaa9b3a7b0b30503100308fd693b8982ed2.zip |
Removed unrequired admin checks, modded moderator query, jiggled rank/avatar image stuff
git-svn-id: file:///svn/phpbb/trunk@678 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index ee1b0acaff..3752b2d218 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -284,7 +284,7 @@ for($i = 0; $i < $total_posts; $i++) if($postrow[$i]['user_avatar'] != "" && $poster_id != ANONYMOUS) { - $poster_avatar = (strstr("http", $postrow[$i]['user_avatar']) && $board_config['allow_avatar_remote']) ? "<img src=\"" . $postrow[$i]['user_avatar'] . "\">" : "<img src=\"" . $board_config['avatar_path'] . "/" . $postrow[$i]['user_avatar'] . "\">"; + $poster_avatar = (strstr("http", $postrow[$i]['user_avatar']) && $board_config['allow_avatar_remote']) ? "<br /><img src=\"" . $postrow[$i]['user_avatar'] . "\"><br />" : "<br /><img src=\"" . $board_config['avatar_path'] . "/" . $postrow[$i]['user_avatar'] . "\"><br />"; } else { @@ -306,7 +306,7 @@ for($i = 0; $i < $total_posts; $i++) if($postrow[$i]['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special']) { $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ($ranksrow[$j]['rank_image']) ? "<img src=\"" . $ranksrow[$j]['rank_image'] . "\">" : ""; + $rank_image = ($ranksrow[$j]['rank_image']) ? "<img src=\"" . $ranksrow[$j]['rank_image'] . "\"><br />" : ""; } } } @@ -317,7 +317,7 @@ for($i = 0; $i < $total_posts; $i++) if($postrow[$i]['user_posts'] > $ranksrow[$j]['rank_min'] && $postrow[$i]['user_posts'] < $ranksrow[$j]['rank_max'] && !$ranksrow[$j]['rank_special']) { $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ($ranksrow[$j]['rank_image']) ? "<img src=\"" . $ranksrow[$j]['rank_image'] . "\">" : ""; + $rank_image = ($ranksrow[$j]['rank_image']) ? "<img src=\"" . $ranksrow[$j]['rank_image'] . "\"><br />" : ""; } } } @@ -378,7 +378,7 @@ for($i = 0; $i < $total_posts; $i++) $quote_img = "<a href=\"" . append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']) . "\"><img src=\"" . $images['icon_quote'] . "\" alt=\"" . $lang['Reply_with_quote'] ."\" border=\"0\"></a>"; - if($is_auth['auth_mod'] || $userdata['user_level'] == ADMIN) + if( $is_auth['auth_mod'] ) { $ip_img = "<a href=\"" . append_sid("modcp.$phpEx?mode=viewip&" . POST_POST_URL . "=" . $post_id) . "\"><img src=\"" . $images['icon_ip'] . "\" alt=\"" . $lang['View_IP'] . "\" border=\"0\"></a>"; @@ -483,7 +483,7 @@ $s_auth_can .= $lang['You'] . " " . ( ($is_auth['auth_reply']) ? $lang['can'] : $s_auth_can .= $lang['You'] . " " . ( ($is_auth['auth_edit']) ? $lang['can'] : $lang['cannot'] ) . " " . $lang['edit_posts'] . "<br />"; $s_auth_can .= $lang['You'] . " " . ( ($is_auth['auth_delete']) ? $lang['can'] : $lang['cannot'] ) . " " . $lang['delete_posts'] . "<br />"; -if($is_auth['auth_mod'] || $userdata['user_level'] == ADMIN) +if( $is_auth['auth_mod'] ) { $s_auth_can .= $lang['You'] . " " . $lang['can'] . " <a href=\"" . append_sid("modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id") . "\">" . $lang['moderate_forum'] . "</a><br />"; |