mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
Stop search bots incrementing topic views. #32675
Use correct link for post author search. #32595 Insert missing space. #32315 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8835 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a5761193c2
commit
674777246a
@ -116,6 +116,8 @@
|
||||
<li>[Fix] Extra slash is included in the redirect url when redirecting to the forum root directory. (Bug #33605)</li>
|
||||
<li>[Fix] Remove reported flag from shadow topics when closing reports. (Bug #19765)</li>
|
||||
<li>[Fix] Do not show non indexed forums on the search page if they contain no subforums. (Bug #33125)</li>
|
||||
<li>[Fix] Stop search bots incrementing topic views. (Bug #32675 - Patch by eviL<3)</li>
|
||||
<li>[Fix] Use correct link for post author search. (Bug #32595)</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
@ -1083,7 +1083,7 @@ while ($row = $db->sql_fetchrow($result))
|
||||
'msn' => ($row['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=msnm&u=$poster_id") : '',
|
||||
'yim' => ($row['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($row['user_yim']) . '&.src=pg' : '',
|
||||
'jabber' => ($row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=jabber&u=$poster_id") : '',
|
||||
'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", 'search_author=' . urlencode($row['username']) .'&sr=posts') : '',
|
||||
'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',
|
||||
);
|
||||
|
||||
get_user_rank($row['user_rank'], $row['user_posts'], $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);
|
||||
@ -1505,8 +1505,8 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||
}
|
||||
unset($rowset, $user_cache);
|
||||
|
||||
// Update topic view and if necessary attachment view counters ... but only if this is the first 'page view'
|
||||
if (isset($user->data['session_page']) && strpos($user->data['session_page'], '&t=' . $topic_id) === false)
|
||||
// Update topic view and if necessary attachment view counters ... but only for humans and if this is the first 'page view'
|
||||
if (isset($user->data['session_page']) && !$user->data['is_bot'] && strpos($user->data['session_page'], '&t=' . $topic_id) === false)
|
||||
{
|
||||
$sql = 'UPDATE ' . TOPICS_TABLE . '
|
||||
SET topic_views = topic_views + 1, topic_last_view_time = ' . time() . "
|
||||
@ -1580,7 +1580,7 @@ if (empty($_REQUEST['f']))
|
||||
}
|
||||
|
||||
// Output the page
|
||||
page_header($user->lang['VIEW_TOPIC'] .' - ' . $topic_data['topic_title']);
|
||||
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title']);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_body.html')
|
||||
|
Loading…
x
Reference in New Issue
Block a user