1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 15:17:16 +01:00

Merge pull request #4378 from Crizz0/ticket/14704

[ticket/14704] Removes unused function and language files in base.php
This commit is contained in:
Marc Alexander 2016-07-17 15:57:21 +02:00
commit e8454e018d
3 changed files with 0 additions and 508 deletions

View File

@ -1,271 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
$words = array(
'a',
'about',
'after',
'ago',
'all',
'almost',
'along',
'alot',
'also',
'am',
'an',
'and',
'answer',
'any',
'anybody',
'anybodys',
'anywhere',
'are',
'arent',
'around',
'as',
'ask',
'askd',
'at',
'bad',
'be',
'because',
'been',
'before',
'being',
'best',
'better',
'between',
'big',
'btw',
'but',
'by',
'can',
'cant',
'come',
'could',
'couldnt',
'day',
'days',
'days',
'did',
'didnt',
'do',
'does',
'doesnt',
'dont',
'down',
'each',
'etc',
'either',
'else',
'even',
'ever',
'every',
'everybody',
'everybodys',
'everyone',
'far',
'find',
'for',
'found',
'from',
'get',
'go',
'going',
'gone',
'good',
'got',
'gotten',
'had',
'has',
'have',
'havent',
'having',
'her',
'here',
'hers',
'him',
'his',
'home',
'how',
'hows',
'href',
'I',
'Ive',
'if',
'in',
'ini',
'into',
'is',
'isnt',
'it',
'its',
'its',
'just',
'know',
'large',
'less',
'like',
'liked',
'little',
'looking',
'look',
'looked',
'looking',
'lot',
'maybe',
'many',
'me',
'more',
'most',
'much',
'must',
'mustnt',
'my',
'near',
'need',
'never',
'new',
'news',
'no',
'none',
'not',
'nothing',
'now',
'of',
'off',
'often',
'old',
'on',
'once',
'only',
'oops',
'or',
'other',
'our',
'ours',
'out',
'over',
'page',
'please',
'put',
'question',
'questions',
'questioned',
'quote',
'rather',
'really',
'recent',
'said',
'saw',
'say',
'says',
'she',
'see',
'sees',
'should',
'sites',
'small',
'so',
'some',
'something',
'sometime',
'somewhere',
'soon',
'take',
'than',
'true',
'thank',
'that',
'thatd',
'thats',
'the',
'their',
'theirs',
'theres',
'theirs',
'them',
'then',
'there',
'these',
'they',
'theyll',
'theyd',
'theyre',
'this',
'those',
'though',
'through',
'thus',
'time',
'times',
'to',
'too',
'under',
'until',
'untrue',
'up',
'upon',
'use',
'users',
'version',
'very',
'via',
'want',
'was',
'way',
'we',
'well',
'went',
'were',
'werent',
'what',
'when',
'where',
'which',
'who',
'whom',
'whose',
'why',
'wide',
'will',
'with',
'within',
'without',
'wont',
'world',
'worse',
'worst',
'would',
'wrote',
'www',
'yes',
'yet',
'you',
'youd',
'youll',
'your',
'youre',
'yours',
'AFAIK',
'IIRC',
'LOL',
'ROTF',
'ROTFLMAO',
'YMMV',
);

View File

@ -1,191 +0,0 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
$synonyms = array(
'abcense' => 'absence',
'abridgement' => 'abridgment',
'accomodate' => 'accommodate',
'acknowledgment' => 'acknowledgement',
'airplane' => 'aeroplane',
'allright' => 'alright ',
'andy' => 'andrew',
'anemia' => 'anaemia',
'anemic' => 'anaemic',
'anesthesia' => 'anaesthesia',
'apologize' => 'apologise',
'archean' => 'archaean',
'archeology' => 'archaeology',
'archeozoic' => 'archaeozoic',
'armor' => 'armour',
'artic' => 'arctic',
'attachment' => 'attachement',
'attendence' => 'attendance',
'barbecue' => 'barbeque',
'behavior' => 'behaviour',
'biassed' => 'biased',
'biol' => 'biology',
'buletin' => 'bulletin',
'calender' => 'calendar',
'canceled' => 'cancelled',
'car' => 'automobile',
'catalog' => 'catalogue',
'cenozoic' => 'caenozoic',
'center' => 'centre',
'check' => 'cheque',
'color' => 'colour',
'comission' => 'commission',
'comittee' => 'committee',
'commitee' => 'committee',
'conceed' => 'concede',
'creating' => 'createing',
'curiculum' => 'curriculum',
'defense' => 'defence',
'develope' => 'develop',
'discription' => 'description',
'dulness' => 'dullness',
'encyclopedia' => 'encyclopaedia',
'enroll' => 'enrol',
'esthetic' => 'aesthetic',
'etiology' => 'aetiology',
'exhorbitant' => 'exorbitant',
'exhuberant' => 'exuberant',
'existance' => 'existence',
'favorite' => 'favourite',
'fetus' => 'foetus',
'ficticious' => 'fictitious',
'flavor' => 'flavour',
'flourescent' => 'fluorescent',
'foriegn' => 'foreign',
'fourty' => 'forty',
'gage' => 'gauge',
'geneology' => 'genealogy',
'grammer' => 'grammar',
'gray' => 'grey',
'guerilla' => 'guerrilla',
'gynecology' => 'gynaecology',
'harbor' => 'harbour',
'heighth' => 'height',
'hemaglobin' => 'haemaglobin',
'hematin' => 'haematin',
'hematite' => 'haematite',
'hematology' => 'haematology',
'honor' => 'honour',
'innoculate' => 'inoculate',
'installment' => 'instalment',
'irrelevent' => 'irrelevant',
'irrevelant' => 'irrelevant',
'jeweler' => 'jeweller',
'judgment' => 'judgement',
'labeled' => 'labelled',
'labor' => 'labour',
'laborer' => 'labourer',
'laborers' => 'labourers',
'laboring' => 'labouring',
'licence' => 'license',
'liesure' => 'leisure',
'liquify' => 'liquefy',
'maintainance' => 'maintenance',
'maintenence' => 'maintenance',
'medieval' => 'mediaeval',
'meter' => 'metre',
'milage' => 'mileage',
'millipede' => 'millepede',
'miscelaneous' => 'miscellaneous',
'morgage' => 'mortgage',
'noticable' => 'noticeable',
'occurence' => 'occurrence',
'offense' => 'offence',
'ommision' => 'omission',
'ommission' => 'omission',
'optimize' => 'optimise',
'organize' => 'organise',
'pajamas' => 'pyjamas',
'paleography' => 'palaeography',
'paleolithic' => 'palaeolithic',
'paleontological' => 'palaeontological',
'paleontologist' => 'palaeontologist',
'paleontology' => 'palaeontology',
'paleozoic' => 'palaeozoic',
'pamplet' => 'pamphlet',
'paralell' => 'parallel',
'parl' => 'parliament',
'parlt' => 'parliament',
'pediatric' => 'paediatric',
'pediatrician' => 'paediatrician',
'pediatrics' => 'paediatrics',
'pedodontia' => 'paedodontia',
'pedodontics' => 'paedodontics',
'personel' => 'personnel',
'practise' => 'practice',
'program' => 'programme',
'psych' => 'psychology',
'questionaire' => 'questionnaire',
'rarify' => 'rarefy',
'reccomend' => 'recommend',
'recieve' => 'receive',
'resistence' => 'resistance',
'restaraunt' => 'restaurant',
'savior' => 'saviour',
'sep' => 'september',
'seperate' => 'separate',
'sept' => 'september',
'sieze' => 'seize',
'summarize' => 'summarise',
'summerize' => 'summarise',
'superceed' => 'supercede',
'superintendant' => 'superintendent',
'supersede' => 'supercede',
'suprise' => 'surprise',
'surprize' => 'surprise',
'synchronise' => 'synchronize',
'temperary' => 'temporary',
'theater' => 'theatre',
'threshhold' => 'threshold',
'transfered' => 'transferred',
'truely' => 'truly',
'truley' => 'truly',
'useable' => 'usable',
'valor' => 'valour',
'vigor' => 'vigour',
'vol' => 'volume',
'whack' => 'wack',
'withold' => 'withhold',
'yeild' => 'yield',
);

View File

@ -36,52 +36,6 @@ class base
$error = true;
}
/**
* Retrieves a language dependend list of words that should be ignored by the search
*/
function get_ignore_words()
{
if (!sizeof($this->ignore_words))
{
global $user, $phpEx;
$words = array();
if (file_exists("{$user->lang_path}{$user->lang_name}/search_ignore_words.$phpEx"))
{
// include the file containing ignore words
include("{$user->lang_path}{$user->lang_name}/search_ignore_words.$phpEx");
}
$this->ignore_words = $words;
unset($words);
}
}
/**
* Stores a list of synonyms that should be replaced in $this->match_synonym and $this->replace_synonym and caches them
*/
function get_synonyms()
{
if (!sizeof($this->match_synonym))
{
global $user, $phpEx;
$synonyms = array();
if (file_exists("{$user->lang_path}{$user->lang_name}/search_synonyms.$phpEx"))
{
// include the file containing synonyms
include("{$user->lang_path}{$user->lang_name}/search_synonyms.$phpEx");
}
$this->match_synonym = array_keys($synonyms);
$this->replace_synonym = array_values($synonyms);
unset($synonyms);
}
}
/**
* Retrieves cached search results
*