Zeile 125 | Zeile 125 |
---|
$pwverified = 1; if($forum['password'] != '') {
|
$pwverified = 1; if($forum['password'] != '') {
|
if($mybb->cookies['forumpass'][$forum['fid']] !== md5($mybb->user['uid'].$forum['password']))
| if(!isset($mybb->cookies['forumpass'][$forum['fid']]) || !my_hash_equals($mybb->cookies['forumpass'][$forum['fid']], md5($mybb->user['uid'].$forum['password'])))
|
{ $pwverified = 0; }
| { $pwverified = 0; }
|
Zeile 963 | Zeile 963 |
---|
global $mybb, $db, $lang, $cache;
$keywords = clean_keywords($search['keywords']);
|
global $mybb, $db, $lang, $cache;
$keywords = clean_keywords($search['keywords']);
|
if(!$keywords && !$search['author']) { error($lang->error_nosearchterms); }
| |
if($mybb->settings['minsearchword'] < 1) {
| if($mybb->settings['minsearchword'] < 1) {
|
Zeile 1073 | Zeile 1069 |
---|
}
$inquote = !$inquote;
|
}
$inquote = !$inquote;
|
}
| }
|
$subject_lookin .= ")"; $message_lookin .= ")"; }
| $subject_lookin .= ")"; $message_lookin .= ")"; }
|
Zeile 1099 | Zeile 1095 |
---|
$userids = array(); $search['author'] = my_strtolower($search['author']); if($search['matchusername'])
|
$userids = array(); $search['author'] = my_strtolower($search['author']); if($search['matchusername'])
|
{
| {
|
$user = get_user_by_username($search['author']); if($user) {
| $user = get_user_by_username($search['author']); if($user) {
|
Zeile 1126 | Zeile 1122 |
---|
}
if(count($userids) < 1)
|
}
if(count($userids) < 1)
|
{
| {
|
error($lang->error_nosearchresults); } else
| error($lang->error_nosearchresults); } else
|
Zeile 1339 | Zeile 1335 |
---|
} $threads = implode(',', $threads); $posts = implode(',', $posts);
|
} $threads = implode(',', $threads); $posts = implode(',', $posts);
|
|
|
} // Searching only thread titles else
| } // Searching only thread titles else
|
Zeile 1359 | Zeile 1355 |
---|
} } if(count($threads) < 1)
|
} } if(count($threads) < 1)
|
{
| {
|
error($lang->error_nosearchresults); }
| error($lang->error_nosearchresults); }
|
Zeile 1393 | Zeile 1389 |
---|
global $mybb, $db, $lang;
$keywords = clean_keywords_ft($search['keywords']);
|
global $mybb, $db, $lang;
$keywords = clean_keywords_ft($search['keywords']);
|
if(!$keywords && !$search['author']) { error($lang->error_nosearchterms); }
|
|
// Attempt to determine minimum word length from MySQL for fulltext searches $query = $db->query("SHOW VARIABLES LIKE 'ft_min_word_len';"); $min_length = $db->fetch_field($query, 'Value');
| // Attempt to determine minimum word length from MySQL for fulltext searches $query = $db->query("SHOW VARIABLES LIKE 'ft_min_word_len';"); $min_length = $db->fetch_field($query, 'Value');
|