Vergleich search.php - 1.8.21 - 1.8.22

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1425Zeile 1425
	{
$where_sql .= "AND ((fid IN(".implode(',', $onlyusfids).") AND uid='{$mybb->user['uid']}') OR fid NOT IN(".implode(',', $onlyusfids)."))";
}

	{
$where_sql .= "AND ((fid IN(".implode(',', $onlyusfids).") AND uid='{$mybb->user['uid']}') OR fid NOT IN(".implode(',', $onlyusfids)."))";
}

	



	$tids = '';
$comma = '';
$query = $db->simple_select("threads", "tid", $where_sql);

	$tids = '';
$comma = '';
$query = $db->simple_select("threads", "tid", $where_sql);

Zeile 1461Zeile 1461
	else
{
$days = $mybb->get_input('days', MyBB::INPUT_INT);

	else
{
$days = $mybb->get_input('days', MyBB::INPUT_INT);

	}

	}

	$datecut = TIME_NOW-(86400*$days);

$where_sql = "lastpost >='".$datecut."'";

	$datecut = TIME_NOW-(86400*$days);

$where_sql = "lastpost >='".$datecut."'";

Zeile 1508Zeile 1508
		}
}
if(!empty($onlyusfids))

		}
}
if(!empty($onlyusfids))

	{

	{

		$where_sql .= "AND ((fid IN(".implode(',', $onlyusfids).") AND uid='{$mybb->user['uid']}') OR fid NOT IN(".implode(',', $onlyusfids)."))";

		$where_sql .= "AND ((fid IN(".implode(',', $onlyusfids).") AND uid='{$mybb->user['uid']}') OR fid NOT IN(".implode(',', $onlyusfids)."))";

	}


	}


	$tids = '';
$comma = '';
$query = $db->simple_select("threads", "tid", $where_sql);

	$tids = '';
$comma = '';
$query = $db->simple_select("threads", "tid", $where_sql);

Zeile 1520Zeile 1520
			$tids .= $comma.$tid;
$comma = ',';
}

			$tids .= $comma.$tid;
$comma = ',';
}

	



	$sid = md5(uniqid(microtime(), true));
$searcharray = array(
"sid" => $db->escape_string($sid),

	$sid = md5(uniqid(microtime(), true));
$searcharray = array(
"sid" => $db->escape_string($sid),

Zeile 1538Zeile 1538
	$db->insert_query("searchlog", $searcharray);
redirect("search.php?action=results&sid=".$sid, $lang->redirect_searchresults);
}

	$db->insert_query("searchlog", $searcharray);
redirect("search.php?action=results&sid=".$sid, $lang->redirect_searchresults);
}

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");