git-svn-id: file:///svn/phpbb/trunk@2996 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-10-31 13:47:00 +00:00
parent 2bf1c5f9b0
commit 1a67029fcd

View file

@ -531,9 +531,7 @@ if ($row = $db->sql_fetchrow($result))
} }
} }
//
// Generate ranks, set them to empty string initially. // Generate ranks, set them to empty string initially.
//
if ( !isset($poster_details[$poster_id]['rank_title']) ) if ( !isset($poster_details[$poster_id]['rank_title']) )
{ {
if ( $row['user_rank'] ) if ( $row['user_rank'] )
@ -560,9 +558,7 @@ if ($row = $db->sql_fetchrow($result))
} }
} }
//
// Handle anon users posting with usernames // Handle anon users posting with usernames
//
if ( !$poster_id && $row['post_username'] != '' ) if ( !$poster_id && $row['post_username'] != '' )
{ {
$poster = $row['post_username']; $poster = $row['post_username'];
@ -652,9 +648,7 @@ if ($row = $db->sql_fetchrow($result))
$poster_details[$poster_id]['search'] = ''; $poster_details[$poster_id]['search'] = '';
} }
//
// Non-user specific images/text // Non-user specific images/text
//
$temp_url = 'posting.' . $phpEx . $SID . '&mode=quote&p=' . $row['post_id']; $temp_url = 'posting.' . $phpEx . $SID . '&mode=quote&p=' . $row['post_id'];
$quote_img = '<a href="' . $temp_url . '">' . $user->img('icon_quote', $user->lang['Reply_with_quote']) . '</a>'; $quote_img = '<a href="' . $temp_url . '">' . $user->img('icon_quote', $user->lang['Reply_with_quote']) . '</a>';
$quote = '<a href="' . $temp_url . '">' . $user->lang['Reply_with_quote'] . '</a>'; $quote = '<a href="' . $temp_url . '">' . $user->lang['Reply_with_quote'] . '</a>';
@ -717,13 +711,13 @@ if ($row = $db->sql_fetchrow($result))
} }
// Highlight active words (primarily for search) // Highlight active words (primarily for search)
if ($highlight_match) /* if ($highlight_match)
{ {
// This was shamelessly 'borrowed' from volker at multiartstudio dot de // This was shamelessly 'borrowed' from volker at multiartstudio dot de
// via php.net's annotated manual // via php.net's annotated manual
// $message = substr(preg_replace('#(\>(((?>[^><]+)|(?R))*)\<)#ie', "preg_replace('/(?>($highlight_match)+)/i','<span style=\"color:red\">\\1</span>', '\\0')", '>' . $message . '<'), 1, -1); $message = substr(preg_replace('#(\>(((?>[^><]+)|(?R))*)\<)#ie', "preg_replace('/(?>($highlight_match)+)/i','<span style=\"color:red\">\\1</span>', '\\0')", '>' . $message . '<'), 1, -1);
}// }
*/
// Replace naughty words // Replace naughty words
if (count($orig_word)) if (count($orig_word))
{ {