aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
Commit message (Expand)AuthorAgeFilesLines
* [ticket/11023] Fix additional whitespaces that were added by PHPBB3-10968Joas Schilling2012-10-171-2/+2
* [ticket/11051] add common_words variableDhruv2012-10-041-2/+4
* [ticket/11051] remove unnecessary commentDhruv2012-10-041-1/+0
* [ticket/11051] add get_word_len() in sphinx searchDhruv2012-10-041-1/+8
* [ticket/11051] use get_word_length in search backendDhruv2012-08-171-1/+3
* [ticket/11051] use get_common_words in search backendDhruv2012-08-161-2/+2
* [ticket/11051] function instead of accessing property in searchDhruv2012-08-161-3/+3
* [ticket/11011] pass $auth to search backend constructorDhruv2012-08-081-1/+1
* [ticket/11011] passing global variablesDhruv2012-07-281-1/+1
* [feature/pagination-as-list] New parameter for name of start varDrae2012-07-181-2/+2
* [feature/pagination-as-list] Updates for nils commentsDrae2012-07-181-3/+3
* [feature/pagination-as-list] Rename and deprecate functionsDrae2012-07-181-2/+2
* [feature/pagination-as-list] Various fixes and improvementsDrae2012-07-181-3/+3
* [ticket/10968] Render pagination within the templateDrae2012-07-181-2/+7
* Merge PR #854 branch 'dhruvgoel92/ticket/10943' into developOleg Pudeyev2012-07-071-1/+2
|\
| * [ticket/10943] displays searched query in search resultDhruv Goel2012-07-081-0/+1
| * [ticket/10943] use keywords variable to display in search boxDhruv Goel2012-07-081-1/+1
* | [feature/postgresql-fulltext-search] supports_phrase_search functionDhruv Goel2012-07-081-2/+2
* | [feature/postgresql-fulltext-search] use proper variable nameDhruv Goel2012-07-081-3/+3
* | [feature/postgresql-fulltext-search] fix formattingDhruv Goel2012-07-051-1/+1
* | [feature/postgresql-fulltext-search] remove phrase search codeDhruv Goel2012-07-051-0/+10
|/
* Merge branch 'develop-olympus' into developAndreas Fischer2012-02-261-12/+37
|\
| * [ticket/10532] Remove unnecessary parentheses around calculations of addition.Andreas Fischer2012-02-261-2/+2
| * [ticket/10532] Remove one unnecessary level of if block nesting.Andreas Fischer2012-02-261-37/+34
| * [ticket/10532] Get rid of inline calculation of $start, remove duplicated checkAndreas Fischer2012-02-261-2/+7
| * [ticket/10532] Put $total_match_count assignment onto its own line.Andreas Fischer2012-02-261-1/+2
| * [ticket/10532] Adjust total match count and limitrxu2012-01-141-6/+21
| * [ticket/10532] Fix $start out of range for pre-made searchesrxu2012-01-141-15/+22
* | [ticket/9916] Updating header license and removing Version $Id$Unknown2011-12-311-2/+1
* | [ticket/10345] Use the plural function in some more places.Joas Schilling2011-11-251-1/+1
* | [ticket/10345] Make use of the plural function in some basic placesJoas Schilling2011-11-251-3/+3
* | [feature/extension-manager] Make search backends loadable from extensionsNils Adermann2011-09-291-7/+4
* | [feature/remove-imagesets] Adjustments to php filesVjacheslav Trushkin2011-09-041-3/+0
* | [ticket/9684] Fix Forum/Topic-Tracking for global announcementsJoas Schilling2011-04-071-2/+2
* | [ticket/9684] Remove code for global announcement in root-filesJoas Schilling2011-04-071-30/+1
* | Merge branch 'ticket/hanakin/10001' into developIgor Wiedler2011-02-281-0/+1
|\ \
| * | [ticket/10001] Created new Template variable to house class names based on $...hanakin2011-01-181-0/+1
| |/
* | Merge branch 'feature/igorw/request-class' into developAndreas Fischer2010-12-161-1/+1
|\ \
| * | [feature/request-class] Convert some remaining cookiesIgor Wiedler2010-10-171-1/+1
* | | Merge branch 'develop-olympus' into developNils Adermann2010-12-131-22/+34
|\ \ \ | | |/ | |/|
| * | [ticket/9851] "Search new posts" should require login.rxu2010-12-131-22/+34
| |/
* | [ticket/9556] Drop php closing tags, add trailing newlineIgor Wiedler2010-11-111-2/+0
|/
* Merge branch 'ticket/bantu/9613' into develop-olympusIgor Wiedler2010-09-161-3/+11
|\
| * [ticket/9613] Implement a load switch for unread posts search feature.rxu2010-08-291-3/+11
* | Merge branch 'ticket/bantu/9754' into develop-olympusIgor Wiedler2010-09-121-1/+1
|\ \
| * | [ticket/9754] Populate S_USER_POSTED variable with correct value in search.phpAndreas Fischer2010-07-261-1/+1
| |/
* | [ticket/9662] Search flood interval no longer applies to non-keyword searchesJosh Woody2010-08-201-2/+3
|/
* [ticket/9606] Optimize unread search option.rxu2010-05-171-12/+7
* [ticket/9582] Advanced search cannot be accessed using MSSQL native.Rob House2010-05-031-0/+1
* Fix bug #51585 - Search loginbox or auth message differsRuslan Uzdenov2010-01-181-18/+20
opt">, // INVISIBLE SEPARATOR "\xE2\x81\xAA" => '', // [CONTROL CHARACTERS] "\xE2\x81\xAB" => '', // [CONTROL CHARACTERS] "\xE2\x81\xAC" => '', // [CONTROL CHARACTERS] "\xE2\x81\xAD" => '', // [CONTROL CHARACTERS] "\xE2\x81\xAE" => '', // [CONTROL CHARACTERS] "\xE2\x81\xAF" => '', // [CONTROL CHARACTERS] "\xEF\xBB\xBF" => '', // ZERO WIDTH NO-BREAK SPACE "\xEF\xBF\xB9" => '', // [CONTROL CHARACTERS] "\xEF\xBF\xBA" => '', // [CONTROL CHARACTERS] "\xEF\xBF\xBB" => '', // [CONTROL CHARACTERS] "\xEF\xBF\xBC" => '', // [CONTROL CHARACTERS] "\xF0\x9D\x85\xB3" => '', // [MUSICAL CONTROL CHARACTERS] "\xF0\x9D\x85\xB4" => '', // [MUSICAL CONTROL CHARACTERS] "\xF0\x9D\x85\xB5" => '', // [MUSICAL CONTROL CHARACTERS] "\xF0\x9D\x85\xB6" => '', // [MUSICAL CONTROL CHARACTERS] "\xF0\x9D\x85\xB7" => '', // [MUSICAL CONTROL CHARACTERS] "\xF0\x9D\x85\xB8" => '', // [MUSICAL CONTROL CHARACTERS] "\xF0\x9D\x85\xB9" => '', // [MUSICAL CONTROL CHARACTERS] "\xF0\x9D\x85\xBA" => '', // [MUSICAL CONTROL CHARACTERS] ); $copy = $uniarray; /** * @todo we need to check that the $uniarray does not reverse any of the mappings defined in the unicode definition */ foreach ($array as $value) { $temp_hold = implode(array_map('utf8_chr', array_map('hexdec', explode(' ', trim($value[2]))))); if (isset($copy[utf8_chr(hexdec((string)$value[1]))])) { $num = ''; $string = utf8_chr(hexdec((string)$value[1])); for ($i = 0; $i < strlen($string); $i++) { $num .= '\x' . str_pad(base_convert(ord($string[$i]), 10, 16), 2, '0', STR_PAD_LEFT); } echo $num . "\n"; if ($uniarray[$string] != $temp_hold) { echo " --> $string\n"; echo " --> " . $temp_hold . "\n"; } } // do some tests for things that transform into something with the number one if (strpos($temp_hold, utf8_chr(0x0031)) !== false) { // any kind of letter L? if (strpos($value[0], 'LETTER L') !== false || strpos($value[0], 'IOTA') !== false || strpos($value[0], 'SMALL L ') !== false || preg_match('/SMALL LIGATURE [^L]*L /', $value[0])) { // replace all of the mappings that transform some sort of letter l to number one instead to some sort of letter l to latin small letter l $temp_hold = str_replace(utf8_chr(0x0031), utf8_chr(0x006C), $temp_hold); } } // uppercased chars that were folded do not exist in this universe, // no amount of normalization could ever "trick" this into not working if (in_array($value[1], $casefold_array[1])) { continue; } $uniarray[utf8_chr(hexdec((string)$value[1]))] = $temp_hold; } echo "Writing to confusables.$phpEx\n"; $fp = fopen($phpbb_root_path . 'includes/utf/data/confusables.' . $phpEx, 'wb'); fwrite($fp, '<?php return ' . my_var_export($uniarray) . ';'); fclose($fp); /** * Return a parsable string representation of a variable * * This is function is limited to array/strings/integers * * @param mixed $var Variable * @return string PHP code representing the variable */ function my_var_export($var) { if (is_array($var)) { $lines = array(); foreach ($var as $k => $v) { $lines[] = my_var_export($k) . '=>' . my_var_export($v); } return 'array(' . implode(',', $lines) . ')'; } else if (is_string($var)) { return "'" . str_replace(array('\\', "'"), array('\\\\', "\\'"), $var) . "'"; } else { return $var; } } /** * Download a file to the develop/ dir * * @param string $url URL of the file to download * @return null */ function download($url) { global $phpbb_root_path; if (file_exists($phpbb_root_path . 'develop/' . basename($url))) { return; } echo 'Downloading from ', $url, ' '; if (!$fpr = fopen($url, 'rb')) { die("Can't download from $url\nPlease download it yourself and put it in the develop/ dir, kthxbai"); } if (!$fpw = fopen($phpbb_root_path . 'develop/' . basename($url), 'wb')) { die("Can't open develop/" . basename($url) . " for output... please check your permissions or something"); } $i = 0; $chunk = 32768; $done = ''; while (!feof($fpr)) { $i += fwrite($fpw, fread($fpr, $chunk)); echo str_repeat("\x08", strlen($done)); $done = ($i >> 10) . ' KiB'; echo $done; } fclose($fpr); fclose($fpw); echo "\n"; }