Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: search.php 2180 2006-09-02 07:36:22Z chris $
| * $Id: search.php 3055 2007-05-13 15:01:15Z Tikitiki $
|
*/
| */
|
Zeile 40 | Zeile 40 |
---|
}
$now = time();
|
}
$now = time();
|
| // Clear out searches older than a month if($rand == 3) { $timecut = time()-60*60*24*30; $db->delete_query(TABLE_PREFIX."searchlog", "dateline<='$timecut'"); }
|
if($mybb->input['action'] == "results") {
| if($mybb->input['action'] == "results") {
|
Zeile 55 | Zeile 62 |
---|
$plugins->run_hooks("search_results_start");
// Decide on our sorting fields and sorting order.
|
$plugins->run_hooks("search_results_start");
// Decide on our sorting fields and sorting order.
|
$order = strtolower($mybb->input['order']); $sortby = $mybb->input['sortby'];
| $order = strtolower(htmlspecialchars($mybb->input['order'])); $sortby = htmlspecialchars($mybb->input['sortby']);
|
switch($sortby) {
| switch($sortby) {
|
Zeile 733 | Zeile 740 |
---|
{ $days = intval($mybb->input['days']); }
|
{ $days = intval($mybb->input['days']); }
|
$datecut = time()-(68400*$days);
| $datecut = time()-(86400*$days);
|
$where_sql = "t.lastpost >='".$datecut."'";
| $where_sql = "t.lastpost >='".$datecut."'";
|
Zeile 814 | Zeile 821 |
---|
"matchusername" => $mybb->input['matchusername'], "postdate" => $mybb->input['postdate'], "pddir" => $mybb->input['pddir'],
|
"matchusername" => $mybb->input['matchusername'], "postdate" => $mybb->input['postdate'], "pddir" => $mybb->input['pddir'],
|
"forums" => $mybb->input['forums']
| "forums" => $mybb->input['forums'], "findthreadst" => $mybb->input['findthreadst'], "numreplies" => $mybb->input['numreplies']
|
);
if($config['dbtype'] == "mysql" || $config['dbtype'] == "mysqli")
| );
if($config['dbtype'] == "mysql" || $config['dbtype'] == "mysqli")
|
Zeile 848 | Zeile 857 |
---|
$db->insert_query(TABLE_PREFIX."searchlog", $searcharray);
|
$db->insert_query(TABLE_PREFIX."searchlog", $searcharray);
|
if(strtolower($mybb->input['sortordr']) == "asc" || strtolower($mybb->input['sortordr'] == "desc"))
| if(strtolower($mybb->input['sortordr']) == "asc" || strtolower($mybb->input['sortordr']) == "desc")
|
{ $sortorder = $mybb->input['sortordr']; }
| { $sortorder = $mybb->input['sortordr']; }
|