Vergleich inc/functions_search.php - 1.2.2 - 1.2.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 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: functions_search.php 2299 2006-09-30 17:22:05Z Tikitiki $

 * $Id: functions_search.php 3065 2007-05-16 00:36:39Z Tikitiki $

 */

/**

 */

/**

Zeile 81Zeile 81
	}
if($addselect)
{

	}
if($addselect)
{

		$forumlist = "<select name=\"forums\" size=\"15\" multiple=\"multiple\">\n<option value=\"all\" selected=\"selected\">$lang->search_all_forums</option>\n<option value=\"all\">----------------------</option>\n$forumlistbits\n</select>";

		$forumlist = "<select name=\"forums[]\" size=\"15\" multiple=\"multiple\">\n<option value=\"all\" selected=\"selected\">$lang->search_all_forums</option>\n<option value=\"all\">----------------------</option>\n$forumlistbits\n</select>";

	}
return $forumlist;
}

	}
return $forumlist;
}

Zeile 416Zeile 416
		{
$datecut = ">=";
}

		{
$datecut = ">=";
}

 
		$now = time();

		$datelimit = $now-(86400 * $search['postdate']);
$datecut .= "'$datelimit'";
$post_datecut = " AND p.dateline $datecut";

		$datelimit = $now-(86400 * $search['postdate']);
$datecut .= "'$datelimit'";
$post_datecut = " AND p.dateline $datecut";

Zeile 611Zeile 612
					}
if(my_strlen($word) < $mybb->settings['minsearchword'])
{

					}
if(my_strlen($word) < $mybb->settings['minsearchword'])
{

						$lang->error_minsearchlength = sprintf($lang->error_minsearchlength, $mybb->settings['minsearchword']);
error($lang->error_minsearchlength);

						$all_too_short = true;


					}

					}

				}
}






					else
{
$all_too_short = false;
break;
}
}
}

			else
{
$phrase = str_replace(array("+", "-", "*"), "", $phrase);
if(my_strlen($phrase) < $mybb->settings['minsearchword'])
{

			else
{
$phrase = str_replace(array("+", "-", "*"), "", $phrase);
if(my_strlen($phrase) < $mybb->settings['minsearchword'])
{

					$lang->error_minsearchlength = sprintf($lang->error_minsearchlength, $mybb->settings['minsearchword']);
error($lang->error_minsearchlength);





					$all_too_short = true;
}
else
{
$all_too_short = false;
break;

				}
}
$inquote = !$inquote;

				}
}
$inquote = !$inquote;

 
		}
// Show the minimum search term error only if all search terms are too short
if($all_too_short == true)
{
$lang->error_minsearchlength = sprintf($lang->error_minsearchlength, $mybb->settings['minsearchword']);
error($lang->error_minsearchlength);

		}
$message_lookin = "AND MATCH(message) AGAINST('".$db->escape_string($keywords)."' IN BOOLEAN MODE)";
$subject_lookin = "AND MATCH(subject) AGAINST('".$db->escape_string($keywords)."' IN BOOLEAN MODE)";

		}
$message_lookin = "AND MATCH(message) AGAINST('".$db->escape_string($keywords)."' IN BOOLEAN MODE)";
$subject_lookin = "AND MATCH(subject) AGAINST('".$db->escape_string($keywords)."' IN BOOLEAN MODE)";

Zeile 644Zeile 659
			$search['author'] = strtolower($search['author']);
$query = $db->query("SELECT uid FROM ".TABLE_PREFIX."users WHERE LOWER(username) LIKE '%".$db->escape_string($search['author'])."%'");
}

			$search['author'] = strtolower($search['author']);
$query = $db->query("SELECT uid FROM ".TABLE_PREFIX."users WHERE LOWER(username) LIKE '%".$db->escape_string($search['author'])."%'");
}

 
		

		while($user = $db->fetch_array($query))
{
$userids[] = $user['uid'];

		while($user = $db->fetch_array($query))
{
$userids[] = $user['uid'];

Zeile 670Zeile 686
		{
$datecut = ">=";
}

		{
$datecut = ">=";
}

 
		$now = time();

		$datelimit = $now-(86400 * $search['postdate']);
$datecut .= "'$datelimit'";
$post_datecut = " AND p.dateline $datecut";

		$datelimit = $now-(86400 * $search['postdate']);
$datecut .= "'$datelimit'";
$post_datecut = " AND p.dateline $datecut";