"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/search.php" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

search.php  (mybb_1821):search.php  (mybb_1822)
skipping to change at line 1541 skipping to change at line 1541
"posts" => '', "posts" => '',
"resulttype" => "threads", "resulttype" => "threads",
"querycache" => $db->escape_string($where_sql), "querycache" => $db->escape_string($where_sql),
"keywords" => '' "keywords" => ''
); );
$plugins->run_hooks("search_do_search_process"); $plugins->run_hooks("search_do_search_process");
$db->insert_query("searchlog", $searcharray); $db->insert_query("searchlog", $searcharray);
redirect("search.php?action=results&sid=".$sid, $lang->redirect_searchres ults); redirect("search.php?action=results&sid=".$sid, $lang->redirect_searchres ults);
} }
elseif($mybb->input['action'] == "do_search" && $mybb->request_method == "post") elseif($mybb->input['action'] == "do_search")
{ {
$plugins->run_hooks("search_do_search_start"); $plugins->run_hooks("search_do_search_start");
// Check if search flood checking is enabled and user is not admin // Check if search flood checking is enabled and user is not admin
if($mybb->settings['searchfloodtime'] > 0 && $mybb->usergroup['cancp'] != 1) if($mybb->settings['searchfloodtime'] > 0 && $mybb->usergroup['cancp'] != 1)
{ {
// Fetch the time this user last searched // Fetch the time this user last searched
if($mybb->user['uid']) if($mybb->user['uid'])
{ {
$conditions = "uid='{$mybb->user['uid']}'"; $conditions = "uid='{$mybb->user['uid']}'";
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)