Revision 869
Added by thorn about 16 years ago
frontend.functions.php | ||
---|---|---|
77 | 77 |
array_walk($arr_string, create_function('&$v,$k','$v = preg_quote($v, \'/\');')); |
78 | 78 |
$search_string = implode("|", $arr_string); |
79 | 79 |
$string = strtr($search_string, $string_ul_umlauts); |
80 |
// special-feature: '|' means word-boundary (\b). Searching for 'the|' will find 'the', but not 'thema'. |
|
81 |
$string = strtr($string, array('\\|'=>'\b')); |
|
82 | 80 |
// the highlighting |
83 | 81 |
// match $string, but not inside <style>...</style>, <script>...</script>, <!--...--> or HTML-Tags |
84 | 82 |
// split $string into pieces - "cut away" styles, scripts, comments, HTML-tags and eMail-addresses |
Also available in: Unified diff
search: added search_lang for use in search-form. Using DE, the search will search รค=ae,... (alternate spelling of german umlauts)
removed undocumented word-boundary search
search_path is now anchored to the beginning of link ("link LIKE '$path%'" instead of "link LIKE '%$path%'")
added key 'ext_charset' to search-extension to query external databases