Also das Update von 2.0.19 auf 2.0.20 beschreibt folgendes:
Code: Alles auswählen
#
#-----[ OPEN ]---------------------------------------------
#
search.php
#
#-----[ FIND ]---------------------------------------------
# Line 158
//
// Cycle through options ...
//
if ( $search_id == 'newposts' || $search_id == 'egosearch' || $search_id == 'unanswered' || $search_keywords != '' || $search_author != '' )
{
#
#-----[ AFTER, ADD ]---------------------------------------------
#
//
// Flood control
//
$where_sql = ($userdata['user_id'] == ANONYMOUS) ? "se.session_ip = '$user_ip'" : 'se.session_user_id = ' . $userdata['user_id'];
$sql = 'SELECT MAX(sr.search_time) AS last_search_time
FROM ' . SEARCH_TABLE . ' sr, ' . SESSIONS_TABLE . " se
WHERE sr.session_id = se.session_id
AND $where_sql";
if ($result = $db->sql_query($sql))
{
if ($row = $db->sql_fetchrow($result))
{
if (intval($row['last_search_time']) > 0 && ($current_time - intval($row['last_search_time'])) < intval($board_config['search_flood_interval']))
{
message_die(GENERAL_MESSAGE, $lang['Search_Flood_Error']);
}
}
}
}
Bei mir siehts aber so aus [kleiner Ausschnitt]:
Code: Alles auswählen
//
// Cycle through options ...
//
if ( $search_id == 'newposts' || $search_id == 'unread_posts' || $search_id == 'always_read' || $search_id == 'egosearch' || $search_id == 'unanswered' || $search_keywords != '' || $search_author != '' )
{
if ( $search_id == 'newposts' || $search_id == 'unread_posts' || $search_id == 'always_read' || $search_id == 'egosearch' || ( $search_author != '' && $search_keywords == '' ) )
{
if ( $search_id == 'newposts' || $search_id == 'unread_posts' || $search_id == 'always_read' )
{
if ( $userdata['session_logged_in'] )
{
//<!-- BEGIN Unread Post Information to Database Mod -->
Vielen Dank!