diff --git a/CODE-TODO.md b/CODE-TODO.md new file mode 100644 index 0000000..510ccc0 --- /dev/null +++ b/CODE-TODO.md @@ -0,0 +1,169 @@ +# To-Do + +## Almost Done + +[nothing assigned yet] + +## Eventually To Do - Short-Term/Long-Term + +* master hyperlink codeofconduct pages (from relative site to anarchistcode.com site) +* control terms/codeofcoduct/privacy pages by means of globals +* control terms/codeofcoduct/privacy sitemap listings by means of globals +* fix anarchistcode.com child entries for alternate record access +* complete list-title/sort-title distinction code +* hyperlink inspired sources in the code of conduct script +* detect files ending in the name "php.php" because of the basic inability of the Windows operating system to save, open, or update files, of any type +* fix css in terms/codeofconduct/privacy/etc pages for document width +* multilink privacy/codeofconduct/terms pages +* move suggestion config stuff to globals file +* move thumbs up/down functionality to top of pages, also, modularize +* make all common links, i.e., privacy, codeofconduct, search, home, about, terms, suggestions, etc., be configurable within globals +* make suggestions link in master linking globals-file-controlled +* fix the record count numbers in wordweight on the primary index page +* make an actual user-panel page +* have wordweight link to other pages based on keywords +* remove image::1 etc. junk from browseLikes action on sub-child records +* breadcrumb trail option: indicate full title/subtitle combo on primary entry +* move breadcrumb trails into a module +* always-include css/js php template file list +* integrate givenname/familyname to entries +* don't create 404 reports if the user logged in is admin +* actually finish up listTitle versus ListSortKey +* restyle the header box to float to top and be surrounded with kickass border thing (put the date in the header) +* put Authentication.php's salts into the globals file +* misspellings: float correct spelling over misspelled word +* full-text search, two fields, one with html stripped for search, the other without it stripped for storage +* utf8: store everything native without html entities +* text-error-detector: type-selectable, and let english-alt's be a type +* Have both english/misspelling language classes inherit the same parent class +* chronology: list number of changes +* detect all new DBAccess calls to guarantee globals-passing +* make a dummy globals file for github for clonefrom +* "subscribe to entry"'s changes +* backup all textbody changes +* show textbody changes logs +* show diff in updating entry +* detect bad text +* print words func for english/british, misspellings, wordweight dictionary, etc.. +* finish view/resolve/etc issues/errors +* search results for chapters: do not display text +* autopopulate URL field form SERVER field in issues/errors +* entry aka field +* admin: find host db's missing fields, etc. +* actual die() call on bad image source printing for the html-to-pdf php app +* pull handler.pm functionality for dictionaries into config func +* js file that detects and reports ISE's on non-resolved images +* generate the github-shareable clonefrom db file +* warroom: comment linkage +* actual default backup languages for css +* detect: entries w/ images and textbodies, but no Image::123 text +* swap left/right the images for multi-child textbody view +* randomized new-user password in Security/Password.php +* old-logs => password detector +* old-logs => password censoring +* display popular searches in index action of view +* separate view/index? +* smallify social media icons +* remove all "..._object"-named object vars. +* only copy essential files when setting up new system +* error/issue generator script +* move color settings to globals +* move all lists to globals +* have master-c.php use the global colors fully, compare revoltlib.com with any other domain's master-c.php +* scrollable/hidable "newest changes" list, with more than 10 entries +* scrollable/hidable "newest changes" page! (news.php) +* new domain protocol: add /image/ directory +* new domain protocol: build globals file +* edit link for completed changes on primary entry does not link correctly site.com/Site.com/edit, etc.. +* "newest additions" index * > skip if entry is primary domain +* image-floatover, show artist picture, as well, if possible +* autoredirect if "//" occurs within a url +* detect/fix/change-code for all 777 folders to be 755 +* password-deleting from logging data should be the duty of the logger, not the password management system +* github project/site: instagram scheduler +* "style:" detector within template/etc. code +* move all domain folders "blah.com" to a domains folder in root dir +* move ValidateOrm() in /scripts/ to Handler.php somehow +* move about.php images +* make all templates use the entrylinks module +* turn all JS scripts into php pages and merely render them as *.js, etc. +* a progress bar physically indicating current location in browsing +* a history.php page detailing all changes so far +* php, good-version check/verify +* plz fix: https://www.revoltlib.com/dbstatus.php?action=ShowTablesListSchemas +* display backup records in save +* detect .htaccess files in folders in which it does not belong +* test record backups for brand-new records +* delete(), in modify.php, handle backups +* view.php, link to history.php, if necessary, etc. +* clone entry w/ entry children between db's (through transfer! * give transfer a clone option) +* clone child records from record to record option +* list boolean operator table in search.php page +* utf-8 diamonds in fulltext search results +* git.php url, "Oh, so, how to git to this project" +* store/display text without any html entities at all +* option to detect/correct alphabetizing the list of "words" at /classes/Languages/words/* +* detect texts over x-length that should be broken up +* if user ever logs in on http, save a cookie that makes them always redirect to https +* fix spacing on the siblings-navigation panel +* detect commas in entry CODE field +* entry code generation, preserve dashes that occur without spaces, i.e., "self-employment" vs "chapter 1 - self employment"; +* detect entry titles containing zero-padded numbers, i.e. "Chapter 01" +* make all comment links be "no-follow" +* mouseover on detectbadtext's errors, indicating the correct-theorized spelling +* README.MD in ~ALL~ folders! +* detect no-longer matching keyword/tag-for-entry's text +* make "birth day", "death day", "publication" be preselectable options for publication title +* detector for broken image records wherein some size field is set to 0 +* annual reminder to delete and refresh all api keys/passwords +* modify.php: "about to leave this page" warning on pages if there have been changes to any fields +* cut words like "a", "an", "the" from code-generation +* make a common clonefrom.com/images/*some-doc-type-image-that-is-general*/ folder +* colorize icons for terms/privacy/codeofconduct pages + +# Done + +## Version 1.01 + +* intensive spellchecker, detect odd caps in text (i.e., thIs) +* common misspelling spellchecker +* complete anarchistcode.com +* change google API keys (oops, sorry for leaking that on github, sigh) +* changing filename of an image doesn't move the image locations of Image.IconFileName and Image.StandardFileName +* disallow %'s in filenames when uploading images +* make permalink url's script-intelligent, i.e., site.com/?id=123 goes to Entry 123's view.php url, but now site.com/modify.php?id=123&action=Edit will redirect to Entry 123's modify.php?action=Edit URL +* detect "logged-in-status" on non-https pages, and properly redirect to https pages +* have all scripts' templates use the modularized entry-controls.php +* login.php: allow google use +* logout.php: allow google use +* login.php: redirect to url option +* logout.php: redirect to url option +* fix display of small-than-icon size images at revoltlib, etc,. templates +* list title auto-generation, ucfirst after all is done +* zap all passwords or password-passed args from bash files +* make entrycontrols module accept that=>this as args in constructor and not in function calls +* module-ize breadcrumb trails +* module-ize login/logout info +* add breadcrumbs/login info to suggest.php +* remove login/logout info from bottom of all templates +* fixup login info for classes/Language/Dictionary.php +* fix bad format-icon images on terms/codeofconduct/etc pages +* modularize the alternate format icons/etc. +* miniaturize bad format-icon images on terms/codeofconduct/etc pages +* export user data - fix format icons +* handle alternate formats for terms/codeofconduct/privacy/etc pages +* actually move user-login info to top of page plz +* fix privacy policy/code of conduct/terms pages to have proper audio-translators +* finish terms/codeofconduct/privacy/etc pages + +## Version 1.00 + +* make format icons tiny, but have them resize to large when hover'd over +* add server, get, post var's to internalserverissue-logging +* issue logging on 404 +* actually move the password to the globals file +* test robots.txt regexes +* actually move the brand new user default password +* move google api keys to globals +* long-term, actual test robots.txt regexes diagnostic tool +* show artist/uploader/etc. info for floatover of main index image \ No newline at end of file diff --git a/app/php-html-to-pdf/php-html-to-pdf.php b/app/php-html-to-pdf/php-html-to-pdf.php new file mode 100644 index 0000000..740b738 --- /dev/null +++ b/app/php-html-to-pdf/php-html-to-pdf.php @@ -0,0 +1,671 @@ +'HoldOffHunger', + 'Title'=>'Privacy Policy', + ]); + + WriteHTML([ + 'html'=>'
こんにちは!
', + 'language'=>'ja', + ]); + + Chinese Example + -------------------------------------- + + require('../app/fpdf-write-html/fpdf-write-html.php'); + + $pdf_object = new HTMLtoPDF([ + 'Author'=>'HoldOffHunger', + 'Title'=>'Privacy Policy', + ]); + + WriteHTML([ + 'html'=>'你好!
', + 'language'=>'zh', + ]); + + Englsh Example + -------------------------------------- + + require('../app/fpdf-write-html/fpdf-write-html.php'); + + $pdf_object = new HTMLtoPDF([ + 'Author'=>'HoldOffHunger', + 'Title'=>'Privacy Policy', + ]); + + WriteHTML([ + 'html'=>'Hello!
', + 'language'=>'en', + ]); + +*/ + + require('../app/tfpdf/tfpdf.php'); + + class HTMLtoPDF extends tFPDF { + protected $HREF; + + // Constructor + // ----------------------------------------------------- + // ----------------------------------------------------- + // ----------------------------------------------------- + + function __construct($args) { + $this->constructParent($args); + $this->setMetaData($args); + $this->setInitialState(); + + return $this; + } + + function constructParent($args) { + if($args['orientation']) { + $orientation = $args['orientation']; + } else { + $orientation = $this->getDefaultOrientation(); + } + + if($args['unit']) { + $unit = $args['unit']; + } else { + $unit = $this->getDefaultUnit(); + } + + if($args['format']) { + $format = $args['format']; + } else { + $format = $this->getDefaultFormat(); + } + parent::__construct($orientation, $unit, $format); + + return TRUE; + } + + function setMetaData($args) { + if($args['Title']) { + $this->SetTitle($args['Title'], TRUE); + } + + if($args['Author']) { + $this->SetAuthor($args['Author'], TRUE); + } + + if($args['Subject']) { + $this->SetSubject($args['Subject'], TRUE); + } + + if($args['Keywords']) { + $this->SetKeywords($args['Keywords'], TRUE); + } + + if($args['Creator']) { + $this->SetCreator($args['Creator'], TRUE); + } + + return TRUE; + } + + function setInitialState() { + $this->HREF = ''; + $this->issetcolor = FALSE; + + return TRUE; + } + + function getSupportedFontsList() { + if($this->font_list) { + return $this->font_list; + } + + $supported_fonts = $this->getSupportedFonts(); + + $supported_fonts_list = []; + + foreach($supported_fonts as $supported_font) { + $supported_fonts_list[$supported_font] = TRUE; + } + + return $this->font_list = $supported_fonts_list; + } + + function getSupportedFonts() { + return [ + 'arial', + 'times', + 'courier', + 'helvetica', + 'symbol', + ]; + } + + // Main Function to Call + // ----------------------------------------------------- + // ----------------------------------------------------- + // ----------------------------------------------------- + + function WriteHTML($args) { + $html = $args['html']; + $language = $args['language']; + + $this->setHTMLFonts(['language'=>$language]); + $this->setStartingFont(); + $this->setStartingMargins(); + + $this->WriteHTMLContent(['html'=>$html]); + + return TRUE; + } + + // Prepare the Data + // ----------------------------------------------------- + // ----------------------------------------------------- + // ----------------------------------------------------- + + function WriteHTMLContent($args) { + $html = $args['html']; + + $html = $this->cleanseInput(['input'=>$html]); + + $dom = $this->buildDom(['html'=>$html]); + + return $this->parseDom([dom=>$dom]); + } + + function cleanseInput($args) { + $input = $args['input']; + + $input = strip_tags($input,$this->getSupportedHTMLTags()); + $input = preg_replace('/[\r\n]+/', ' ', $input); + + return $input; + } + + function buildDom($args) { + $html = $args['html']; + + $dom = preg_split('/<(.*)>/U', $html, -1, PREG_SPLIT_DELIM_CAPTURE); + + return $dom; + } + + function setHTMLFonts($args) { + $language = $args['language']; + + switch($language) { + case 'zh': + $this->AddFont('chinese','','chinese.ttf',true); + break; + + case 'ja': + $this->AddFont('japanese','','japanese.ttf',true); + break; + } + + $this->AddFont('DejaVu','','DejaVuSansCondensed.ttf',true); + $this->AddFont('DejaVu','Bold','DejaVuSans-Bold.ttf',true); + $this->AddFont('DejaVu','Italic','DejaVuSans-Oblique.ttf',true); + + $this->base_font = $this->getBaseFont(['language'=>$language]); + $this->bold_font = $this->getBoldFont(['language'=>$language]); + $this->italics_font = $this->getItalicsFont(['language'=>$language]); + + return TRUE; + } + + function setStartingFont() { + $this->SetFont($this->base_font, '', 14); + $this->line_height = 14; + + return TRUE; + } + + function setStartingMargins() { + $this->AddPage(); + $this->SetTopMargin(10); + $this->SetLeftMargin(10); + $this->SetRightMargin(10); + + return TRUE; + } + + function getSupportedHTMLTags() { + $supported_tags = ''; + + foreach($this->getSupportedHTMLTagsList() as $tag) { + $supported_tags .= '<' . $tag . '>'; + } + + return $supported_tags; + } + + // Parse the Data + // ----------------------------------------------------- + // ----------------------------------------------------- + // ----------------------------------------------------- + + function parseDom($args) { + $dom = $args['dom']; + + $is_text_content = TRUE; + + foreach($dom as $i => $dom_piece) { + if($is_text_content) { + $this->parseDom_handleContent([ + 'text'=>$dom_piece, + ]); + } else { + $this->parseDom_handleTag([ + 'tag'=>$dom_piece, + ]); + } + $is_text_content = !$is_text_content; + } + return TRUE; + } + + function parseDom_handleContent($args) { + $text = $args['text']; + + if($this->HREF) { + $this->parseDom_handleContent_link(['text'=>$text]); + } else { + $this->parseDom_handleContent_text(['text'=>$text]); + } + + return TRUE; + } + + function parseDom_handleContent_text($args) { + $text = $args['text']; + + if($this->li) { + $text = '• ' . $text; + $this->li = FALSE; + } + + $this->Write($this->line_height,stripslashes($this->adjustHTMLEntities($text))); + + return TRUE; + } + + function parseDom_handleContent_link($args) { + $text = $args['text']; + + $URL = $this->HREF; + $this->SetTextColor(0,0,255); + $this->underline = TRUE; + $this->Write($this->line_height,$text,$URL); + $this->underline = FALSE; + $this->SetTextColor(0); + $this->HREF = FALSE; + + return TRUE; + } + + function parseDom_handleTag($args) { + $tag = $args['tag']; + + if($tag[0] == '/') { + $this->parseDom_handleTag_closingTag($args); + } else { + $this->parseDom_handleTag_openingTag($args); + } + + return TRUE; + } + + function parseDom_handleTag_closingTag($args) { + $tag = $args['tag']; + $this->CloseTag(strtoupper(substr($tag,1))); + + return TRUE; + } + + function parseDom_handleTag_openingTag($args) { + $tag = $args['tag']; + + $tag_pieces = explode(' ',$tag); + $tag = strtoupper(array_shift($tag_pieces)); + + $attributes = $this->getAttributesFromTag(['tag_pieces'=>$tag_pieces]); + $this->OpenTag($tag, $attributes); + + return TRUE; + } + + function getAttributesFromTag($args) { + $tag_pieces = $args['tag_pieces']; + + $attributes = []; + + foreach($tag_pieces as $tag_piece) { + if(preg_match('/([^=]*)=["\']?([^"\']*)/', $tag_piece, $tag_piece_values)) { + $attributes[strtoupper($tag_piece_values[1])] = $tag_piece_values[2]; + } + } + + return $attributes; + } + + // Apply Tag Stylings to the Data + // ----------------------------------------------------- + // ----------------------------------------------------- + // ----------------------------------------------------- + + function OpenTag($tag, $attr) { + $tag = $this->swapTag(['tag'=>$tag]); + + $line_height_adjust = 0.7; + $font_height_adjust = 0.9; + + switch($tag) { + case 'B': + $this->SetFont($this->bold_font); + break; + + case 'I': + $this->SetFont($this->italics_font); + break; + + case 'U': + $this->underline = true; + break; + + case 'A': + if(!$attr['NAME']) { + $this->HREF = $attr['HREF']; + } + break; + + case 'IMG': + if(isset($attr['SRC']) && (isset($attr['WIDTH']) || isset($attr['HEIGHT']))) { + if(!isset($attr['WIDTH'])) { + $attr['WIDTH'] = 0; + } + + if(!isset($attr['HEIGHT'])) { + $attr['HEIGHT'] = 0; + $this->Image($attr['SRC'], $this->GetX(), $this->GetY(), $this->convertPixelToMM(['pixels'=>$attr['WIDTH']]), $this->convertPixelToMM(['pixels'=>$attr['HEIGHT']])); + } + } + $this->Ln(20); + break; + + case 'FONT': + $font_list = $this->getSupportedFontsList(); + if (isset($attr['COLOR']) && $attr['COLOR']!='') { + $colors = $this->convertHTMLColorToNumeric(['color'=>$attr['COLOR']]); + $this->SetTextColor($colors['red'], $colors['green'], $colors['blue']); + } + if (isset($attr['FACE']) && $font_list[strtolower($attr['FACE'])]) { + $this->SetFont(strtolower($attr['FACE'])); + } + break; + + case 'LI': + $this->li = true; + break; + + case 'P': + $this->SetFont($this->base_font, '', 14 * $font_height_adjust); + $this->line_height = 8 * $line_height_adjust; + break; + + case 'UL': + case 'BLOCKQUOTE': + $this->SetLeftMargin(25); + $this->SetRightMargin(25); + break; + + case 'H1': + $this->SetFont($this->bold_font, '', 40 * $font_height_adjust); + $this->line_height = 20 * $line_height_adjust; + break; + + case 'H2': + $this->SetFont($this->base_font, '', 30 * $font_height_adjust); + $this->line_height = 15 * $line_height_adjust; + break; + + case 'H3': + $this->SetFont($this->base_font, '', 25 * $font_height_adjust); + $this->line_height = 12 * $line_height_adjust; + break; + + case 'H4': + $this->SetFont($this->base_font, '', 20 * $font_height_adjust); + $this->line_height = 10 * $line_height_adjust; + break; + + case 'H5': + $this->SetFont($this->base_font, '', 18 * $font_height_adjust); + $this->line_height = 9 * $line_height_adjust; + break; + + case 'H6': + $this->SetFont($this->base_font, '', 16 * $font_height_adjust); + $this->line_height = 8 * $line_height_adjust; + break; + } + } + + function CloseTag($tag) { + $tag = $this->swapTag(['tag'=>$tag]); + switch($tag) { + case 'B': + $this->SetFont($this->base_font); + break; + + case 'I': + $this->SetFont($this->base_font); + break; + + case 'U': + $this->underline = false; + break; + + case 'FONT': + $this->SetTextColor(0); + $this->SetFont($this->base_font); + break; + + case 'UL': + case 'BLOCKQUOTE': + $this->SetLeftMargin(10); + $this->SetRightMargin(10); + break; + } + + switch($tag) { + case 'BLOCKQUOTE': + case 'P': + case 'H1': + case 'H2': + case 'H3': + case 'H4': + case 'H5': + case 'H6': + case 'LI': + $this->Ln($this->line_height); + break; + } + + return true; + } + + // Defaults + // ----------------------------------------------------- + // ----------------------------------------------------- + // ----------------------------------------------------- + + function getSupportedHTMLTagsList() { + return [ + 'a', + 'b', + 'blockquote', + 'br', + 'em', + 'font', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'i', + 'img', + 'li', + 'p', + 'strong', + 'u', + 'ul', + ]; + } + + function getDefaultOrientation() { + return 'P'; + } + + function getDefaultUnit() { + return 'mm'; + } + + function getDefaultFormat() { + return 'A4'; + } + + public function getBaseFont($args) { + $language = $args['language']; + + switch($language) { + default: + case 'en': + $font = 'dejavu'; + break; + + case 'ja': + $font = 'japanese'; + break; + + case 'zh': + $font = 'chinese'; + break; + } + + return $font; + } + + public function getBoldFont($args) { + $language = $args['language']; + + switch($language) { + default: + case 'en': + $font = 'dejavu b'; + break; + + case 'ja': + $font = 'japanese'; + break; + + case 'zh': + $font = 'chinese'; + break; + } + + return $font; + } + + public function getItalicsFont($args) { + $language = $args['language']; + + switch($language) { + default: + case 'en': + $font = 'dejavuITALIC'; + break; + + case 'ja': + $font = 'japanese'; + break; + + case 'zh': + $font = 'chinese'; + break; + } + + return $font; + } + + function swapTag($args) { + $tag = $args['tag']; + + switch($tag){ + case 'STRONG': + $tag = 'B'; + break; + + case 'EM': + $tag = 'I'; + break; + } + + return $tag; + } + + // Utilities + // ----------------------------------------------------- + // ----------------------------------------------------- + // ----------------------------------------------------- + + function convertPixelToMM($args) { + $pixels = $args['pixels']; + + return $pixels * $this->pixelToMMRatio(); + } + + function pixelToMMRatio() { + if($this->pixeltommratio) { + return $this->pixeltommratio; + } + + return $this->pixeltommratio = 25.4/72; + } + + function convertHTMLColorToNumeric($args) { + $color = $args['color']; + + $colors = str_split($color, 2); + + $table_colors = [ + 'red'=>$colors[0], + 'green'=>$colors[1], + 'blue'=>$colors[2], + ]; + + return $table_colors; + } + + function adjustHTMLEntities($html) { + $trans = get_html_translation_table(HTML_ENTITIES, ENT_COMPAT, 'UTF-8'); + $trans = array_flip($trans); + $result = strtr($html, $trans); + + return $result; + } + } +?> \ No newline at end of file diff --git a/app/tfpdf/font/chinese.php b/app/tfpdf/font/chinese.php new file mode 100644 index 0000000..fcdb328 --- /dev/null +++ b/app/tfpdf/font/chinese.php @@ -0,0 +1,26 @@ +880,'Descent'=>-120,'CapHeight'=>710,'Flags'=>32,'FontBBox'=>'[-40 -187 759 884]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>500); +$up = -75; +$ut = 50; +$cw = array( + chr(0)=>500,chr(1)=>500,chr(2)=>500,chr(3)=>500,chr(4)=>500,chr(5)=>500,chr(6)=>500,chr(7)=>500,chr(8)=>500,chr(9)=>500,chr(10)=>500,chr(11)=>500,chr(12)=>500,chr(13)=>500,chr(14)=>500,chr(15)=>500,chr(16)=>500,chr(17)=>500,chr(18)=>500,chr(19)=>500,chr(20)=>500,chr(21)=>500, + chr(22)=>500,chr(23)=>500,chr(24)=>500,chr(25)=>500,chr(26)=>500,chr(27)=>500,chr(28)=>500,chr(29)=>500,chr(30)=>500,chr(31)=>500,' '=>180,'!'=>196,'"'=>217,'#'=>591,'$'=>496,'%'=>513,'&'=>489,'\''=>107,'('=>306,')'=>307,'*'=>414,'+'=>638, + ','=>198,'-'=>325,'.'=>181,'/'=>332,'0'=>508,'1'=>264,'2'=>507,'3'=>498,'4'=>499,'5'=>508,'6'=>508,'7'=>384,'8'=>509,'9'=>508,':'=>181,';'=>238,'<'=>556,'='=>638,'>'=>557,'?'=>343,'@'=>681,'A'=>531, + 'B'=>495,'C'=>496,'D'=>496,'E'=>485,'F'=>485,'G'=>496,'H'=>496,'I'=>272,'J'=>411,'K'=>486,'L'=>485,'M'=>617,'N'=>505,'O'=>496,'P'=>486,'Q'=>494,'R'=>485,'S'=>496,'T'=>376,'U'=>496,'V'=>471,'W'=>577, + 'X'=>514,'Y'=>429,'Z'=>497,'['=>285,'\\'=>310,']'=>285,'^'=>531,'_'=>510,'`'=>132,'a'=>438,'b'=>425,'c'=>405,'d'=>425,'e'=>425,'f'=>303,'g'=>436,'h'=>435,'i'=>212,'j'=>210,'k'=>363,'l'=>190,'m'=>592, + 'n'=>447,'o'=>427,'p'=>435,'q'=>435,'r'=>230,'s'=>426,'t'=>340,'u'=>446,'v'=>372,'w'=>604,'x'=>357,'y'=>416,'z'=>384,'{'=>271,'|'=>194,'}'=>273,'~'=>429,chr(127)=>500,chr(128)=>500,chr(129)=>500,chr(130)=>500,chr(131)=>500, + chr(132)=>500,chr(133)=>500,chr(134)=>500,chr(135)=>500,chr(136)=>500,chr(137)=>500,chr(138)=>500,chr(139)=>500,chr(140)=>500,chr(141)=>500,chr(142)=>500,chr(143)=>500,chr(144)=>500,chr(145)=>500,chr(146)=>500,chr(147)=>500,chr(148)=>500,chr(149)=>500,chr(150)=>500,chr(151)=>500,chr(152)=>500,chr(153)=>500, + chr(154)=>500,chr(155)=>500,chr(156)=>500,chr(157)=>500,chr(158)=>500,chr(159)=>500,chr(160)=>180,chr(161)=>500,chr(162)=>500,chr(163)=>500,chr(164)=>523,chr(165)=>387,chr(166)=>500,chr(167)=>500,chr(168)=>500,chr(169)=>610,chr(170)=>500,chr(171)=>500,chr(172)=>500,chr(173)=>500,chr(174)=>500,chr(175)=>500, + chr(176)=>231,chr(177)=>604,chr(178)=>500,chr(179)=>500,chr(180)=>500,chr(181)=>765,chr(182)=>500,chr(183)=>500,chr(184)=>500,chr(185)=>500,chr(186)=>500,chr(187)=>500,chr(188)=>500,chr(189)=>500,chr(190)=>500,chr(191)=>500,chr(192)=>500,chr(193)=>500,chr(194)=>500,chr(195)=>500,chr(196)=>500,chr(197)=>500, + chr(198)=>500,chr(199)=>500,chr(200)=>500,chr(201)=>500,chr(202)=>500,chr(203)=>500,chr(204)=>500,chr(205)=>500,chr(206)=>500,chr(207)=>500,chr(208)=>500,chr(209)=>500,chr(210)=>500,chr(211)=>500,chr(212)=>500,chr(213)=>500,chr(214)=>500,chr(215)=>500,chr(216)=>500,chr(217)=>500,chr(218)=>500,chr(219)=>500, + chr(220)=>500,chr(221)=>500,chr(222)=>500,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>500,chr(231)=>500,chr(232)=>500,chr(233)=>500,chr(234)=>500,chr(235)=>500,chr(236)=>500,chr(237)=>500,chr(238)=>500,chr(239)=>500,chr(240)=>500,chr(241)=>500, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>500,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500); +$enc = 'ISO-8859-16'; +$diff = '128 /.notdef 130 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 142 /.notdef 145 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 158 /.notdef /.notdef 161 /Aogonek /aogonek /Lslash /Euro /quotedblbase /Scaron 168 /scaron 170 /Scommaaccent 172 /Zacute 174 /zacute /Zdotaccent 178 /Ccaron /lslash /Zcaron /quotedblright 184 /zcaron /ccaron /scommaaccent 188 /OE /oe /Ydieresis /zdotaccent 195 /Abreve 197 /Cacute 208 /Dcroat /Nacute 213 /Ohungarumlaut 215 /Sacute /Uhungarumlaut 221 /Eogonek /Tcommaaccent 227 /abreve 229 /cacute 240 /dcroat /nacute 245 /ohungarumlaut 247 /sacute /uhungarumlaut 253 /eogonek /tcommaaccent'; +$uv = array(0=>array(0,161),161=>array(260,2),163=>321,164=>8364,165=>8222,166=>352,167=>167,168=>353,169=>169,170=>536,171=>171,172=>377,173=>173,174=>array(378,2),176=>array(176,2),178=>268,179=>322,180=>381,181=>8221,182=>array(182,2),184=>382,185=>269,186=>537,187=>187,188=>array(338,2),190=>376,191=>380,192=>array(192,3),195=>258,196=>196,197=>262,198=>array(198,10),208=>272,209=>323,210=>array(210,3),213=>336,214=>214,215=>346,216=>368,217=>array(217,4),221=>280,222=>538,223=>array(223,4),227=>259,228=>228,229=>263,230=>array(230,10),240=>273,241=>324,242=>array(242,3),245=>337,246=>246,247=>347,248=>369,249=>array(249,4),253=>281,254=>539,255=>255); +$file = 'Chinese_ZCOOLQingKeHuangYou-Regular.z'; +$originalsize = 22912; +$subsetted = true; +?> diff --git a/app/tfpdf/font/chinese.z b/app/tfpdf/font/chinese.z new file mode 100644 index 0000000..df06864 Binary files /dev/null and b/app/tfpdf/font/chinese.z differ diff --git a/app/tfpdf/font/japanese.php b/app/tfpdf/font/japanese.php new file mode 100644 index 0000000..2df06cc --- /dev/null +++ b/app/tfpdf/font/japanese.php @@ -0,0 +1,26 @@ +860,'Descent'=>-140,'CapHeight'=>860,'Flags'=>32,'FontBBox'=>'[-979 -343 1396 1075]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>363); +$up = -125; +$ut = 50; +$cw = array( + chr(0)=>363,chr(1)=>363,chr(2)=>363,chr(3)=>363,chr(4)=>363,chr(5)=>363,chr(6)=>363,chr(7)=>363,chr(8)=>363,chr(9)=>363,chr(10)=>363,chr(11)=>363,chr(12)=>363,chr(13)=>363,chr(14)=>363,chr(15)=>363,chr(16)=>363,chr(17)=>363,chr(18)=>363,chr(19)=>363,chr(20)=>363,chr(21)=>363, + chr(22)=>363,chr(23)=>363,chr(24)=>363,chr(25)=>363,chr(26)=>363,chr(27)=>363,chr(28)=>363,chr(29)=>363,chr(30)=>363,chr(31)=>363,' '=>270,'!'=>321,'"'=>396,'#'=>678,'$'=>564,'%'=>819,'&'=>688,'\''=>233,'('=>362,')'=>362,'*'=>511,'+'=>733, + ','=>277,'-'=>466,'.'=>283,'/'=>479,'0'=>619,'1'=>619,'2'=>619,'3'=>619,'4'=>619,'5'=>619,'6'=>619,'7'=>619,'8'=>619,'9'=>619,':'=>363,';'=>361,'<'=>667,'='=>754,'>'=>667,'?'=>622,'@'=>823,'A'=>639, + 'B'=>598,'C'=>612,'D'=>657,'E'=>587,'F'=>571,'G'=>687,'H'=>676,'I'=>315,'J'=>528,'K'=>586,'L'=>581,'M'=>815,'N'=>686,'O'=>714,'P'=>600,'Q'=>722,'R'=>605,'S'=>553,'T'=>634,'U'=>655,'V'=>639,'W'=>863, + 'X'=>609,'Y'=>609,'Z'=>615,'['=>470,'\\'=>479,']'=>470,'^'=>602,'_'=>562,'`'=>237,'a'=>533,'b'=>577,'c'=>492,'d'=>577,'e'=>523,'f'=>508,'g'=>563,'h'=>569,'i'=>310,'j'=>354,'k'=>522,'l'=>310,'m'=>784, + 'n'=>564,'o'=>556,'p'=>573,'q'=>573,'r'=>449,'s'=>496,'t'=>502,'u'=>560,'v'=>522,'w'=>770,'x'=>504,'y'=>521,'z'=>535,'{'=>514,'|'=>344,'}'=>514,'~'=>674,chr(127)=>363,chr(128)=>363,chr(129)=>363,chr(130)=>363,chr(131)=>363, + chr(132)=>363,chr(133)=>363,chr(134)=>363,chr(135)=>363,chr(136)=>363,chr(137)=>363,chr(138)=>363,chr(139)=>363,chr(140)=>363,chr(141)=>363,chr(142)=>363,chr(143)=>363,chr(144)=>363,chr(145)=>363,chr(146)=>363,chr(147)=>363,chr(148)=>363,chr(149)=>363,chr(150)=>363,chr(151)=>363,chr(152)=>363,chr(153)=>363, + chr(154)=>363,chr(155)=>363,chr(156)=>363,chr(157)=>363,chr(158)=>363,chr(159)=>363,chr(160)=>270,chr(161)=>651,chr(162)=>533,chr(163)=>642,chr(164)=>684,chr(165)=>448,chr(166)=>553,chr(167)=>596,chr(168)=>490,chr(169)=>815,chr(170)=>553,chr(171)=>720,chr(172)=>615,chr(173)=>466,chr(174)=>535,chr(175)=>615, + chr(176)=>396,chr(177)=>754,chr(178)=>612,chr(179)=>437,chr(180)=>615,chr(181)=>434,chr(182)=>705,chr(183)=>283,chr(184)=>535,chr(185)=>492,chr(186)=>496,chr(187)=>720,chr(188)=>835,chr(189)=>917,chr(190)=>609,chr(191)=>535,chr(192)=>639,chr(193)=>639,chr(194)=>639,chr(195)=>639,chr(196)=>639,chr(197)=>612, + chr(198)=>796,chr(199)=>612,chr(200)=>587,chr(201)=>587,chr(202)=>587,chr(203)=>587,chr(204)=>289,chr(205)=>289,chr(206)=>267,chr(207)=>317,chr(208)=>725,chr(209)=>686,chr(210)=>714,chr(211)=>714,chr(212)=>714,chr(213)=>714,chr(214)=>714,chr(215)=>553,chr(216)=>655,chr(217)=>655,chr(218)=>655,chr(219)=>655, + chr(220)=>655,chr(221)=>587,chr(222)=>634,chr(223)=>594,chr(224)=>533,chr(225)=>533,chr(226)=>533,chr(227)=>533,chr(228)=>533,chr(229)=>492,chr(230)=>863,chr(231)=>492,chr(232)=>523,chr(233)=>523,chr(234)=>523,chr(235)=>523,chr(236)=>293,chr(237)=>293,chr(238)=>259,chr(239)=>308,chr(240)=>649,chr(241)=>564, + chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>555,chr(246)=>556,chr(247)=>496,chr(248)=>533,chr(249)=>560,chr(250)=>560,chr(251)=>560,chr(252)=>560,chr(253)=>523,chr(254)=>502,chr(255)=>521); +$enc = 'ISO-8859-16'; +$diff = '128 /.notdef 130 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 142 /.notdef 145 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 158 /.notdef /.notdef 161 /Aogonek /aogonek /Lslash /Euro /quotedblbase /Scaron 168 /scaron 170 /Scommaaccent 172 /Zacute 174 /zacute /Zdotaccent 178 /Ccaron /lslash /Zcaron /quotedblright 184 /zcaron /ccaron /scommaaccent 188 /OE /oe /Ydieresis /zdotaccent 195 /Abreve 197 /Cacute 208 /Dcroat /Nacute 213 /Ohungarumlaut 215 /Sacute /Uhungarumlaut 221 /Eogonek /Tcommaaccent 227 /abreve 229 /cacute 240 /dcroat /nacute 245 /ohungarumlaut 247 /sacute /uhungarumlaut 253 /eogonek /tcommaaccent'; +$uv = array(0=>array(0,161),161=>array(260,2),163=>321,164=>8364,165=>8222,166=>352,167=>167,168=>353,169=>169,170=>536,171=>171,172=>377,173=>173,174=>array(378,2),176=>array(176,2),178=>268,179=>322,180=>381,181=>8221,182=>array(182,2),184=>382,185=>269,186=>537,187=>187,188=>array(338,2),190=>376,191=>380,192=>array(192,3),195=>258,196=>196,197=>262,198=>array(198,10),208=>272,209=>323,210=>array(210,3),213=>336,214=>214,215=>346,216=>368,217=>array(217,4),221=>280,222=>538,223=>array(223,4),227=>259,228=>228,229=>263,230=>array(230,10),240=>273,241=>324,242=>array(242,3),245=>337,246=>246,247=>347,248=>369,249=>array(249,4),253=>281,254=>539,255=>255); +$file = 'japanese.z'; +$originalsize = 32060; +$subsetted = true; +?> diff --git a/app/tfpdf/font/japanese.z b/app/tfpdf/font/japanese.z new file mode 100644 index 0000000..db4941b Binary files /dev/null and b/app/tfpdf/font/japanese.z differ diff --git a/app/tfpdf/font/unifont/chinese.ttf b/app/tfpdf/font/unifont/chinese.ttf new file mode 100644 index 0000000..ff84a88 Binary files /dev/null and b/app/tfpdf/font/unifont/chinese.ttf differ diff --git a/app/tfpdf/font/unifont/japanese.ttf b/app/tfpdf/font/unifont/japanese.ttf new file mode 100644 index 0000000..7f57273 Binary files /dev/null and b/app/tfpdf/font/unifont/japanese.ttf differ diff --git a/bash/startmysql b/bash/startmysql index a7c28b6..59e169d 100644 --- a/bash/startmysql +++ b/bash/startmysql @@ -3,4 +3,4 @@ # This file/command may not be called 'mysql', since that is the command # reserved for the actual MySQL server. -mysql -u ouruprising -pYOURPASSWORDHERE -h mysql.ouruprising.com +mysql -h mysql.ouruprising.com diff --git a/classes/API/Google.php b/classes/API/Google.php index 2aff7ca..908c8f8 100644 --- a/classes/API/Google.php +++ b/classes/API/Google.php @@ -10,6 +10,7 @@ public function __construct($args) { $this->db_access_object = $args['dbaccessobject']; $this->authentication_object = $args['authenticationobject']; $this->globals = $args['globals']; + $this->cookie = $args['cookie']; if(count($this->globals->apidata) < 1) { return FALSE; @@ -39,7 +40,7 @@ public function AuthenticateOrDisauthenticateWithGoogle($args) { $email_address = $payload['email']; $user_record_args = [ - 'type'=>User, + 'type'=>'User', 'definition'=>[ 'EmailAddress'=>$email_address, ], @@ -55,12 +56,12 @@ public function AuthenticateOrDisauthenticateWithGoogle($args) { if($user_account[0] && $user_account[0]['id']) { $this->authentication_object->user_account = $user_account; - $this->authentication_object->Login_Successful([useraccount=>$user_account]); + $this->authentication_object->Login_Successful(['useraccount'=>$user_account]); $results['newuser'] = 0; } else { $hashed_password = hash('sha256', $this->globals->passwordseed); $user_record_args = [ - 'type'=>User, + 'type'=>'User', 'definition'=>[ 'EmailAddress'=>$email_address, 'RAW'=>[ @@ -75,18 +76,22 @@ public function AuthenticateOrDisauthenticateWithGoogle($args) { $user_creation_results = $this->db_access_object->CreateRecord($user_record_args); $this->authentication_object->user_account = [$user_creation_results]; - $this->authentication_object->Login_Successful([useraccount=>[$user_account]]); + $this->authentication_object->Login_Successful(['useraccount'=>[$user_account]]); $results['newuser'] = 1; } $this->authentication_object->CheckCurrentAuthentication(); $results['action'] = 'login'; + + $this->handleLoginCookie(); } } if($logout) { $this->Logout(); $results['action'] = 'logout'; + + $this->handleLogoutCookie(); } return $results; @@ -95,6 +100,22 @@ public function AuthenticateOrDisauthenticateWithGoogle($args) { public function Logout() { return $this->authentication_object->Logout(); } + + public function handleLoginCookie() { + return $this->cookie->SetCookie([ + 'key'=>'loggedin', + 'value'=>TRUE, + 'permanent'=>TRUE, + ]); + } + + public function handleLogoutCookie() { + return $this->cookie->SetCookie([ + 'key'=>'loggedin', + 'value'=>FALSE, + 'permanent'=>TRUE, + ]); + } } ?> \ No newline at end of file diff --git a/classes/Database/ORMSearch.php b/classes/Database/ORMSearch.php index 2b25598..e41055f 100644 --- a/classes/Database/ORMSearch.php +++ b/classes/Database/ORMSearch.php @@ -24,6 +24,11 @@ public function Search($args) { $search_terms = $args['searchterms']; $start_index = $args['startindex']; $end_index = $args['endindex']; + $mode = $args['mode']; + + if(!$mode) { + $mode = 'NATURAL LANGUAGE'; + } $sql = 'SELECT '; @@ -46,24 +51,34 @@ public function Search($args) { $sql .= 'Entry.OriginalCreationDate as Entry_OriginalCreationDate, '; $sql .= 'Entry.LastModificationDate as Entry_LastModificationDate, '; */ - $sql .= 'MATCH (TextBody.Text) AGAINST (? IN NATURAL LANGUAGE MODE) AS score '; + $sql .= 'MATCH (TextBody.Text) AGAINST (? IN ' . $mode . ' MODE) AS score '; $sql .= 'FROM TextBody '; $sql .= 'JOIN Entry ON Entry.id = TextBody.Entryid '; + + $where = $args['where']; + + if($where) { + $sql .= 'WHERE ' . $where; + } + $sql .= 'HAVING score > 0 '; $sql .= 'ORDER BY score DESC '; - if($start_index && $end_index) - { + if($start_index && $end_index) { $sql .= 'LIMIT ' . ($start_index - 1) . ',' . ($end_index) ; } + if(count($search_terms) > 1) { + $search_terms = [implode(' ', $search_terms)]; + } + $sql .= ';'; $fill_arrays_from_db_args = [ - query=>$sql, - sqlbindstring=>'s', - recordvalues=>$search_terms, + 'query'=>$sql, + 'sqlbindstring'=>'s', + 'recordvalues'=>$search_terms, ]; $codes = $this->dbaccessobject->FillArraysFromDB($fill_arrays_from_db_args); @@ -83,9 +98,9 @@ public function SearchResultsCount($args) { $sql .= ';'; $fill_arrays_from_db_args = [ - query=>$sql, - sqlbindstring=>'s', - recordvalues=>[$search_term], + 'query'=>$sql, + 'sqlbindstring'=>'s', + 'recordvalues'=>[$search_term], ]; $results = $this->dbaccessobject->FillArraysFromDB($fill_arrays_from_db_args); diff --git a/classes/Development/Version.php b/classes/Development/Version.php index f839bae..2253a19 100644 --- a/classes/Development/Version.php +++ b/classes/Development/Version.php @@ -1,41 +1,33 @@ GetSoftwareName() . ' (' . $this->GetSoftwareAcronym() . '): Version ' . $this->GetSoftwareVersion(); } - public function GetSoftwareNameAndAcronym() - { + public function GetSoftwareNameAndAcronym() { return $this->GetSoftwareName() . ' (' . $this->GetSoftwareAcronym() . ')'; } - public function GetSoftwareAcronymAndVersion() - { + public function GetSoftwareAcronymAndVersion() { return $this->GetSoftwareAcronym() . ' V. ' . $this->GetSoftwareVersion(); } } diff --git a/classes/Format/PDF.php b/classes/Format/PDF.php index 831e3c9..01a5db4 100644 --- a/classes/Format/PDF.php +++ b/classes/Format/PDF.php @@ -109,8 +109,7 @@ public function Construct_Requires() { // ----------------------------------------------- public function Display() { - if(!$this->PrepareScriptForPDFConversion()) - { + if(!$this->PrepareScriptForPDFConversion()) { return FALSE; } @@ -122,8 +121,7 @@ public function Display() { $pdf_input = $this->SetHTMLForPDFConversion(); - if(!$pdf_input) - { + if(!$pdf_input) { return FALSE; } @@ -131,8 +129,7 @@ public function Display() { $old_pdf_input = ''; - if(is_file($source_file_location)) - { + if(is_file($source_file_location)) { $old_pdf_input = file_get_contents($source_file_location); } if($_GET['forceregen'] || !is_file($pdf_file_location) || $old_pdf_input != $pdf_input) { diff --git a/classes/Globals/anarchistcode.php b/classes/Globals/anarchistcode.php new file mode 100644 index 0000000..aecfb86 --- /dev/null +++ b/classes/Globals/anarchistcode.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/classes/Globals/clonefrom.php b/classes/Globals/clonefrom.php index 98ffacd..f8349e9 100644 --- a/classes/Globals/clonefrom.php +++ b/classes/Globals/clonefrom.php @@ -37,6 +37,16 @@ public function DBInfo() { ]; } + public function DictionaryDBInfo() { + $info = $this->DBInfo(); + return [ + 'username'=>$info['username'], + 'password'=>$info['password'], + 'hostname'=>'mysql.anotherwebsitemaybe.com', # this should be the name of the server hosting this mysql db + 'database'=>'alldictionaries', + ]; + } + public function NewRandomPasswordSeed() { return 'oeuidoeydf5a3p3u3'; } diff --git a/classes/Globals/clonefrom_copy.php b/classes/Globals/clonefrom_copy.php new file mode 100644 index 0000000..f8349e9 --- /dev/null +++ b/classes/Globals/clonefrom_copy.php @@ -0,0 +1,374 @@ +primaryhost = $this->PrimaryHostInfo(); + $this->db = $this->DBInfo(); + $this->mainmenu = $this->MainMenu(); + $this->styling = $this->Styling(); + $this->passwordseed = $this->NewRandomPasswordSeed(); + $this->apidata = $this->SetAPIData(); + $this->functionality = [ + 'sharing'=>$this->SharingInfo(), + ]; + + return $this; + } + // Primary Host Info + // ------------------------------------------------------------------- + + public function PrimaryHostInfo() { + return [ + 'id'=>0, + ]; + } + + // DB Info + // ------------------------------------------------------------------- + + public function DBInfo() { + return [ + 'username'=>'insert-username-here', + 'password'=>'insert-password-here', + 'hostname'=>'mysql.website.com', + ]; + } + + public function DictionaryDBInfo() { + $info = $this->DBInfo(); + return [ + 'username'=>$info['username'], + 'password'=>$info['password'], + 'hostname'=>'mysql.anotherwebsitemaybe.com', # this should be the name of the server hosting this mysql db + 'database'=>'alldictionaries', + ]; + } + + public function NewRandomPasswordSeed() { + return 'oeuidoeydf5a3p3u3'; + } + + public function SetAPIData() { + return []; + } + + // Main Menu Info + // ------------------------------------------------------------------- + + // Master List + // ------------------------------------------------------------------- + + public function MainMenu() { + return [ + 'home'=>[ + 'url'=>$this->MainMenu_URL_Home(), + 'text'=>[ + 'en'=>'Home', + 'de'=>'Zuhause', + 'es'=>'Casa', + 'fr'=>'Accueil', + 'ja'=>'ホーム', + 'it'=>'Casa', + 'nl'=>'Huis', + 'pl'=>'Dom', + 'pt'=>'Casa', + 'ru'=>'Главная', + 'tr'=>'Ev', + 'zh'=>'家', + ], + 'enabled'=>$this->MainMenu_Enabled_Home(), + ], + 'about'=>[ + 'url'=>$this->MainMenu_URL_About(), + 'text'=>[ + 'en'=>'About', + 'de'=>'Etwa', + 'es'=>'Acerca de', + 'fr'=>'Sur', + 'ja'=>'約', + 'it'=>'Di', + 'nl'=>'Over', + 'pl'=>'O', + 'pt'=>'Sobre', + 'ru'=>'Около', + 'tr'=>'hakkında', + 'zh'=>'关于', + ], + 'enabled'=>$this->MainMenu_Enabled_About(), + ], + 'contact'=>[ + 'url'=>$this->MainMenu_URL_Contact(), + 'text'=>[ + 'en'=>'Contact', + 'de'=>'Kontakt', + 'es'=>'Contacto', + 'fr'=>'Contact', + 'ja'=>'接触', + 'it'=>'Contatto', + 'nl'=>'Contact', + 'pl'=>'Kontakt', + 'pt'=>'Contato', + 'ru'=>'контакт', + 'tr'=>'Temas', + 'zh'=>'联系', + ], + 'enabled'=>$this->MainMenu_Enabled_Contact(), + ], + 'search'=>[ + 'url'=>$this->MainMenu_URL_Search(), + 'text'=>[ + 'en'=>'Search', + 'de'=>'Suche', + 'es'=>'Buscar', + 'fr'=>'Chercher', + 'ja'=>'サーチ', + 'it'=>'Ricerca', + 'nl'=>'Zoeken', + 'pl'=>'Szukaj', + 'pt'=>'Procurar', + 'ru'=>'Поиск', + 'tr'=>'Arama', + 'zh'=>'搜索', + ], + 'enabled'=>$this->MainMenu_Enabled_Search(), + ], + 'languages'=>[ + 'url'=>$this->MainMenu_URL_Languages(), + 'text'=>[ + 'en'=>'Languages', + 'de'=>'Sprachen', + 'es'=>'Idiomas', + 'fr'=>'Langues', + 'ja'=>'言語', + 'it'=>'Le lingue', + 'nl'=>'Talen', + 'pl'=>'Języki', + 'pt'=>'Idiomas', + 'ru'=>'Языки', + 'tr'=>'Diller', + 'zh'=>'语言', + ], + 'enabled'=>$this->MainMenu_Enabled_Languages(), + ], + 'privacypolicy'=>[ + 'url'=>$this->MainMenu_URL_PrivacyPolicy(), + 'text'=>[ + 'en'=>'Privacy Policy', + 'de'=>'Datenschutz-Bestimmungen', + 'es'=>'Política de privacidad', + 'fr'=>'Politique de confidentialité', + 'ja'=>'個人情報保護方針', + 'it'=>'politica sulla riservatezza', + 'nl'=>'Privacybeleid', + 'pl'=>'Polityka prywatności', + 'pt'=>'Política de Privacidade', + 'ru'=>'политика конфиденциальности', + 'tr'=>'Gizlilik Politikası', + 'zh'=>'隐私政策', + ], + 'enabled'=>$this->MainMenu_Enabled_PrivacyPolicy(), + ], + 'terms'=>[ + 'url'=>$this->MainMenu_URL_Terms(), + 'text'=>[ + 'en'=>'Terms and Conditions', + 'de'=>'Geschäftsbedingungen', + 'es'=>'Términos y Condiciones', + 'fr'=>'Termes et conditions', + 'ja'=>'規約と条件', + 'it'=>'Termini e condizioni', + 'nl'=>'Voorwaarden', + 'pl'=>'Regulamin', + 'pt'=>'Termos e Condições', + 'ru'=>'Условия и положения', + 'tr'=>'Şartlar ve koşullar', + 'zh'=>'条款和条件', + ], + 'enabled'=>$this->MainMenu_Enabled_Terms(), + ], + 'codeofconduct'=>[ + 'url'=>$this->MainMenu_URL_CodeOfConduct(), + 'text'=>[ + 'en'=>'Code of Conduct', + 'de'=>'Verhaltensregeln', + 'es'=>'Código de Conducta', + 'fr'=>'Code de conduite', + 'ja'=>'行動規範', + 'it'=>'Codice di condotta', + 'nl'=>'Gedragscode', + 'pl'=>'Kodeks postępowania', + 'pt'=>'Código de conduta', + 'ru'=>'Нормы поведения', + 'tr'=>'Davranış kodu', + 'zh'=>'行为守则', + ], + 'enabled'=>$this->MainMenu_Enabled_CodeOfConduct(), + ], + 'login'=>[ + 'url'=>$this->MainMenu_URL_Login(), + 'text'=>[ + 'en'=>'Login', + 'de'=>'Anmeldung', + 'es'=>'Iniciar sesión', + 'fr'=>'S\'identifier', + 'ja'=>'ログイン', + 'it'=>'Accesso', + 'nl'=>'Log in', + 'pl'=>'Zaloguj Się', + 'pt'=>'Entrar', + 'ru'=>'Авторизоваться', + 'tr'=>'Oturum aç', + 'zh'=>'登录', + ], + 'enabled'=>$this->MainMenu_Enabled_Login(), + ], + ]; + } + + // URLs + // ------------------------------------------------------------------- + + public function MainMenu_URL_Home() { + return '/'; + } + + public function MainMenu_URL_About() { + return '/about.php'; + } + + public function MainMenu_URL_Contact() { + return '/contact.php'; + } + + public function MainMenu_URL_Search() { + return '/search.php'; + } + + public function MainMenu_URL_Languages() { + return '/languages.php'; + } + + public function MainMenu_URL_PrivacyPolicy() { + return '/privacy.php'; + } + + public function MainMenu_URL_Terms() { + return '/terms.php'; + } + + public function MainMenu_URL_CodeOfConduct() { + return '/codeofconduct.php'; + } + + public function MainMenu_URL_Login() { + return '/login.php'; + } + + // Enabled/Disabled + // ------------------------------------------------------------------- + + public function MainMenu_Enabled_Home() { + return TRUE; + } + + public function MainMenu_Enabled_About() { + return TRUE; + } + + public function MainMenu_Enabled_Contact() { + return TRUE; + } + + public function MainMenu_Enabled_Search() { + return FALSE; + } + + public function MainMenu_Enabled_Languages() { + return FALSE; + } + + public function MainMenu_Enabled_PrivacyPolicy() { + return TRUE; + } + + public function MainMenu_Enabled_Terms() { + return TRUE; + } + + public function MainMenu_Enabled_CodeOfConduct() { + return FALSE; + } + + public function MainMenu_Enabled_Login() { + return FALSE; + } + + // Styling Info + // ------------------------------------------------------------------- + + public function Styling() { + return [ + 'PrimaryColor'=>'6495ED', + 'SecondaryColor'=>'C2DFFF', + 'ThirdColor'=>'B7CEEC', + ]; + } + + // Functionality Info + // ------------------------------------------------------------------- + + public function SharingInfo() { + return [ + 'text'=>[ + 'Share'=>[ + 'en'=>'Share', + 'de'=>'Aktie', + 'es'=>'Compartir', + 'fr'=>'Partager', + 'ja'=>'シェア', + 'it'=>'Condividere', + 'nl'=>'Delen', + 'pl'=>'Dzielić', + 'pt'=>'Compartilhar', + 'ru'=>'Поделиться', + 'tr'=>'Pay', + 'zh'=>'分享', + ], + 'Share With'=>[ + 'en'=>'Share With', + 'de'=>'Teilen mit', + 'es'=>'Compartir con', + 'fr'=>'Partager avec', + 'ja'=>'と共有する', + 'it'=>'Condividi con', + 'nl'=>'Delen met', + 'pl'=>'Udostępniać', + 'pt'=>'Compartilhar com', + 'ru'=>'Разрешить', + 'tr'=>'İle paylaş', + 'zh'=>'与某人分享', + ], + ], + ]; + } + + /* + 'en'=>'', + 'de'=>'', + 'es'=>'', + 'fr'=>'', + 'ja'=>'', + 'it'=>'', + 'nl'=>'', + 'pl'=>'', + 'pt'=>'', + 'ru'=>'', + 'tr'=>'', + 'zh'=>'', + */ + } + +?> \ No newline at end of file diff --git a/classes/Globals/copyleftlicense.php b/classes/Globals/copyleftlicense.php new file mode 100644 index 0000000..46d3e12 --- /dev/null +++ b/classes/Globals/copyleftlicense.php @@ -0,0 +1,20 @@ +[ + 'client_id'=>'139023963905-orlvtdsufuphn5lfoalbn0ekee3v5kjr.apps.googleusercontent.com', + 'client_secret'=>'qVeRpLZ1VQCKcxYJD6NKAsIc', + ], + ]; + } + + public function MainMenu_Enabled_Search() { + return TRUE; + } + } + +?> \ No newline at end of file diff --git a/classes/Globals/earthfluent.php b/classes/Globals/earthfluent.php new file mode 100644 index 0000000..42d5a0d --- /dev/null +++ b/classes/Globals/earthfluent.php @@ -0,0 +1,16 @@ +[ + 'client_id'=>'413599668789-7q6lpe6ut0uoied3lq9ec76g4buu6jt1.apps.googleusercontent.com', + 'client_secret'=>'he_nQIqXMg0ndLpkNOETx_FX', + ], + ]; + } + } + +?> \ No newline at end of file diff --git a/classes/Globals/holdoffhunger.php b/classes/Globals/holdoffhunger.php new file mode 100644 index 0000000..7df33aa --- /dev/null +++ b/classes/Globals/holdoffhunger.php @@ -0,0 +1,14 @@ +[ + 'client_id'=>'17782956300-goka34cojti203t52koo1asdrju76peh.apps.googleusercontent.com', + 'client_secret'=>'_tr9WRXPNqS3672nkR3tVM-u', + ], + ]; + } + } + +?> \ No newline at end of file diff --git a/classes/Globals/listkeywords.php b/classes/Globals/listkeywords.php new file mode 100644 index 0000000..aecfb86 --- /dev/null +++ b/classes/Globals/listkeywords.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/classes/Globals/ourbooklife.php b/classes/Globals/ourbooklife.php new file mode 100644 index 0000000..3849dd5 --- /dev/null +++ b/classes/Globals/ourbooklife.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/classes/Globals/ouruprising.php b/classes/Globals/ouruprising.php new file mode 100644 index 0000000..3849dd5 --- /dev/null +++ b/classes/Globals/ouruprising.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/classes/Globals/pronouncethat.php b/classes/Globals/pronouncethat.php new file mode 100644 index 0000000..aecfb86 --- /dev/null +++ b/classes/Globals/pronouncethat.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/classes/Globals/punkerslut.php b/classes/Globals/punkerslut.php new file mode 100644 index 0000000..3849dd5 --- /dev/null +++ b/classes/Globals/punkerslut.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/classes/Globals/removeblanklines.php b/classes/Globals/removeblanklines.php new file mode 100644 index 0000000..aecfb86 --- /dev/null +++ b/classes/Globals/removeblanklines.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/classes/Globals/removeduplicatelines.php b/classes/Globals/removeduplicatelines.php new file mode 100644 index 0000000..aecfb86 --- /dev/null +++ b/classes/Globals/removeduplicatelines.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/classes/Globals/removespacing.php b/classes/Globals/removespacing.php new file mode 100644 index 0000000..aecfb86 --- /dev/null +++ b/classes/Globals/removespacing.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/classes/Globals/revoltlib.php b/classes/Globals/revoltlib.php new file mode 100644 index 0000000..66b6c98 --- /dev/null +++ b/classes/Globals/revoltlib.php @@ -0,0 +1,28 @@ +[ + 'client_id'=>'31222432483-8qvk3uhd27ce8ct5hdhfqb41hh34ihls.apps.googleusercontent.com', + 'client_secret'=>'FB4dPeTj_uCg1Jn_LJPUIlOH', + ], + ]; + } + + // Styling Info + // ------------------------------------------------------------------- + + public function Styling() { + return [ + 'PrimaryColor'=>'DDDDDD', + 'SecondaryColor'=>'AAAAAA', + ]; + } + } + +?> \ No newline at end of file diff --git a/classes/Globals/revoltlink.php b/classes/Globals/revoltlink.php new file mode 100644 index 0000000..37c5945 --- /dev/null +++ b/classes/Globals/revoltlink.php @@ -0,0 +1,16 @@ +[ + 'client_id'=>'576522180186-877c9s89ep0lmk9bn212atdn43pf32dv.apps.googleusercontent.com', + 'client_secret'=>'O2vRYrYWuf-RZRFHwo4VMKzP', + ], + ]; + } + } + +?> \ No newline at end of file diff --git a/classes/Globals/revoltsource.php b/classes/Globals/revoltsource.php new file mode 100644 index 0000000..3849dd5 --- /dev/null +++ b/classes/Globals/revoltsource.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/classes/Globals/sharelineup.php b/classes/Globals/sharelineup.php new file mode 100644 index 0000000..3849dd5 --- /dev/null +++ b/classes/Globals/sharelineup.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/classes/Globals/sortwords.php b/classes/Globals/sortwords.php new file mode 100644 index 0000000..aecfb86 --- /dev/null +++ b/classes/Globals/sortwords.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/classes/Globals/wordweight.php b/classes/Globals/wordweight.php new file mode 100644 index 0000000..aecfb86 --- /dev/null +++ b/classes/Globals/wordweight.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/classes/Language/Dictionary.php b/classes/Language/Dictionary.php index 525e8ce..812ef4a 100644 --- a/classes/Language/Dictionary.php +++ b/classes/Language/Dictionary.php @@ -1,33 +1,32 @@ hostname = 'mysql.earthfluent.com'; - $this->username = 'ouruprising'; - $this->password = 'OE88dd8dd82d'; - $this->database = 'alldictionaries'; + public function __construct($args) { + $this->globals = $args['globals']; + + $globals = $this->globals->DictionaryDBInfo(); + $this->hostname = $globals['hostname']; + $this->username = $globals['username']; + $this->password = $globals['password']; + $this->database = $globals['database']; + + return TRUE; } - function __destruct() - { + function __destruct() { return $this->DBEnd(); } - public function LookUpWords($args) - { + public function LookUpWords($args) { $words_to_look_up = $args['words']; - if(!$words_to_look_up) - { + if(!$words_to_look_up) { return []; } - if(!$this->db_link) - { + if(!$this->db_link) { $this->DBStart(); } @@ -79,12 +78,10 @@ public function LookUpWords($args) return $definitions; } - public function LookUpWord($args) - { + public function LookUpWord($args) { $word_to_look_up = $args['word']; - if(!$this->db_link) - { + if(!$this->db_link) { $this->DBStart(); } @@ -110,25 +107,22 @@ public function LookUpWord($args) $sql .= ' Definition.Term = ? '; $fill_arrays_from_db_args = [ - query=>$sql, - sqlbindstring=>'s', - recordvalues=>[$word_to_lookup_up], + 'query'=>$sql, + 'sqlbindstring'=>'s', + 'recordvalues'=>[$word_to_lookup_up], ]; return $this->FillArraysFromDB($fill_arrays_from_db_args); } - public function LookUpRandomWords($args) - { - if(!$this->db_link) - { + public function LookUpRandomWords($args) { + if(!$this->db_link) { $this->DBStart(); } $random_word_count = $args['randomwordcount']; - if(!$random_word_count) - { + if(!$random_word_count) { $random_word_count = 50; } @@ -156,18 +150,16 @@ public function LookUpRandomWords($args) $sql .= ' LIMIT ' . $random_word_count; $fill_arrays_from_db_args = [ - query=>$sql, - sqlbindstring=>'', - recordvalues=>[], + 'query'=>$sql, + 'sqlbindstring'=>'', + 'recordvalues'=>[], ]; $db_results = $this->FillArraysFromDB($fill_arrays_from_db_args); $definitions = []; - foreach ($db_results as $definition) - { - if(!$definitions[strtolower($definition['Term'])]) - { + foreach ($db_results as $definition) { + if(!$definitions[strtolower($definition['Term'])]) { $definitions[strtolower($definition['Term'])] = []; } @@ -177,19 +169,17 @@ public function LookUpRandomWords($args) return $definitions; } - public function GetDefinitionsCount($args) - { - if(!$this->db_link) - { + public function GetDefinitionsCount($args) { + if(!$this->db_link) { $this->DBStart(); } $sql = 'SELECT COUNT(id) AS DefinitionCount FROM Definition;'; $fill_arrays_from_db_args = [ - query=>$sql, - sqlbindstring=>'', - recordvalues=>[], + 'query'=>$sql, + 'sqlbindstring'=>'', + 'recordvalues'=>[], ]; $definitions_count = $this->FillArraysFromDB($fill_arrays_from_db_args); @@ -197,19 +187,17 @@ public function GetDefinitionsCount($args) return $definitions_count[0]['DefinitionCount']; } - public function GetWordsCount($args) - { - if(!$this->db_link) - { + public function GetWordsCount($args) { + if(!$this->db_link) { $this->DBStart(); } $sql = 'SELECT COUNT(DISTINCT Term) AS WordCount FROM Definition;'; $fill_arrays_from_db_args = [ - query=>$sql, - sqlbindstring=>'', - recordvalues=>[], + 'query'=>$sql, + 'sqlbindstring'=>'', + 'recordvalues'=>[], ]; $definitions_count = $this->FillArraysFromDB($fill_arrays_from_db_args); @@ -217,19 +205,17 @@ public function GetWordsCount($args) return $definitions_count[0]['WordCount']; } - public function GetDictionariesCount($args) - { - if(!$this->db_link) - { + public function GetDictionariesCount($args) { + if(!$this->db_link) { $this->DBStart(); } $sql = 'SELECT COUNT(id) AS DictionaryCount FROM Dictionary;'; $fill_arrays_from_db_args = [ - query=>$sql, - sqlbindstring=>'', - recordvalues=>[], + 'query'=>$sql, + 'sqlbindstring'=>'', + 'recordvalues'=>[], ]; $definitions_count = $this->FillArraysFromDB($fill_arrays_from_db_args); @@ -240,14 +226,12 @@ public function GetDictionariesCount($args) // Start/Stop the DB // ------------------------------------------------- - public function DBStart() - { + public function DBStart() { error_reporting(E_ERROR); $this->db_link = new mysqli($this->hostname,$this->username,$this->password,$this->database); - if($this->db_link->connect_errno) - { + if($this->db_link->connect_errno) { $this->hostname = 'mysql.' . $this->database . '.com'; $this->db_link = new mysqli($this->hostname,$this->username,$this->password,$this->database); } @@ -257,24 +241,20 @@ public function DBStart() $results = 1; $errors = []; - if($this->db_link->connect_errno) - { + if($this->db_link->connect_errno) { $results = 0; $errors[] = [ - errornumber=>$this->db_link->connect_errno, - errormessage=>$this->db_link->connect_error, + 'errornumber'=>$this->db_link->connect_errno, + 'errormessage'=>$this->db_link->connect_error, ]; - } - else - { + } else { unset($this->hostname); unset($this->username); unset($this->password); unset($this->database); } - if($this->db_link->connect_error) - { + if($this->db_link->connect_error) { http_response_code(500); die ("Database unavailable. =("); } @@ -282,38 +262,32 @@ public function DBStart() $this->db_link->set_charset("utf8"); return [ - results=>$results, - errors=>$errors, + 'results'=>$results, + 'errors'=>$errors, ]; } - public function DBEnd() - { - if(!$this->db_link->connect_error) - { + public function DBEnd() { + if(!$this->db_link->connect_error) { return mysqli_close($this->db_link); } return TRUE; } - public function FillArraysFromDB($args) - { - $query = $args[query]; - $sqlbindstring = $args[sqlbindstring]; - $recordvalues = $args[recordvalues]; + public function FillArraysFromDB($args) { + $query = $args['query']; + $sqlbindstring = $args['sqlbindstring']; + $recordvalues = $args['recordvalues']; $prepare_line = __LINE__; # Current line number $statement = $this->db_link->prepare($query); - if($statement) - { - if($sqlbindstring) - { + if($statement) { + if($sqlbindstring) { $bind_arguments = []; $bind_arguments[] = $sqlbindstring; - foreach ($recordvalues as $recordkey => $recordvalue) - { + foreach ($recordvalues as $recordkey => $recordvalue) { $bind_arguments[] = & $recordvalues[$recordkey]; } @@ -338,12 +312,10 @@ public function FillArraysFromDB($args) $statement->execute(); $result = $statement->get_result(); - if($result) - { - while ($row = $result->fetch_assoc()) - { + if($result) { + while ($row = $result->fetch_assoc()) { $format_row_args = [ - row=>$row, + 'row'=>$row, ]; $objects[] = $this->FillArraysFromDB_FormatRow($format_row_args); } @@ -366,8 +338,7 @@ public function FillArraysFromDB($args) # http://php.net/manual/en/language.constants.predefined.php } - public function GetError($args) - { + public function GetError($args) { $error_pieces = $args; $error = []; @@ -376,8 +347,7 @@ public function GetError($args) $error['error'] = $this->db_link->error; $error['errornumber'] = $this->db_link->errno; - foreach ($error_pieces as $error_piece_key => $error_piece_value) - { + foreach ($error_pieces as $error_piece_key => $error_piece_value) { $error[$error_piece_key] = $error_piece_value; } @@ -395,25 +365,21 @@ public function GetError($args) return $error; } - public function FillArraysFromDB_FormatRow($args) - { - $row = $args[row]; + public function FillArraysFromDB_FormatRow($args) { + $row = $args['row']; $sub_tables = []; - foreach ($row as $field_name => $field_value) - { + foreach ($row as $field_name => $field_value) { $first_row_field_name_char = substr($field_name, 0, 1); - if($first_row_field_name_char == '.') - { + if($first_row_field_name_char == '.') { $row_explosion = explode('.', $field_name); $joined_table_name = $row_explosion[1]; $joined_table_field = $row_explosion[2]; - if(!$sub_tables[$joined_table_name]) - { + if(!$sub_tables[$joined_table_name]) { $sub_tables[$joined_table_name] = []; } @@ -422,8 +388,7 @@ public function FillArraysFromDB_FormatRow($args) } } - foreach ($sub_tables as $sub_table => $sub_table_fields) - { + foreach ($sub_tables as $sub_table => $sub_table_fields) { $row[strtolower($sub_table)] = $sub_table_fields; } diff --git a/classes/Language/EnglishMisspellings.php b/classes/Language/EnglishMisspellings.php index b483fa9..fec7cf3 100644 --- a/classes/Language/EnglishMisspellings.php +++ b/classes/Language/EnglishMisspellings.php @@ -18,9 +18,27 @@ class EnglishMisspellings { public function __construct($args) { require('../classes/Language/EnglishMisspellings_Words.php'); - $this->words = new EnglishMisspellings_Words([]); + $this->words = new EnglishMisspellings_Words(); $this->misspellings = $this->words->GetEnglishMisspellings(); return TRUE; } + + public function GetWords_Misspelled() { + $misspelled_words = array_values($this->misspellings); + + $misspellings = []; + + foreach($misspelled_words as $misspelled_word) { + if(is_array($misspelled_word)) { + foreach($misspelled_word as $multi_misspelling) { + $misspellings[] = $multi_misspelling; + } + } else { + $misspellings[] = $misspelled_word; + } + } + + return $misspellings; + } } ?> \ No newline at end of file diff --git a/classes/Language/EnglishMisspellings_Words.php b/classes/Language/EnglishMisspellings_Words.php index 73471c3..17f6392 100644 --- a/classes/Language/EnglishMisspellings_Words.php +++ b/classes/Language/EnglishMisspellings_Words.php @@ -16,6 +16,7 @@ class EnglishMisspellings_Words { */ public function __construct($args) { + $this->args = $args; return TRUE; } diff --git a/classes/Language/IntensiveEnglishMisspellings.php b/classes/Language/IntensiveEnglishMisspellings.php new file mode 100644 index 0000000..11e9695 --- /dev/null +++ b/classes/Language/IntensiveEnglishMisspellings.php @@ -0,0 +1,44 @@ +words = new IntensiveEnglishMisspellings_Words(); + $this->misspellings = $this->words->GetIntensiveEnglishMisspellings(); + return TRUE; + } + + public function GetWords_Misspelled() { + $misspelled_words = array_values($this->misspellings); + + $misspellings = []; + + foreach($misspelled_words as $misspelled_word) { + if(is_array($misspelled_word)) { + foreach($misspelled_word as $multi_misspelling) { + $misspellings[] = $multi_misspelling; + } + } else { + $misspellings[] = $misspelled_word; + } + } + + return $misspellings; + } + } +?> \ No newline at end of file diff --git a/classes/Language/IntensiveEnglishMisspellings_Words.php b/classes/Language/IntensiveEnglishMisspellings_Words.php new file mode 100644 index 0000000..a4d5fbd --- /dev/null +++ b/classes/Language/IntensiveEnglishMisspellings_Words.php @@ -0,0 +1,52 @@ +args = $args; + return TRUE; + } + + /* GetAmericanToBritishSpellings() + + Build a mapping of Misspellings from the /Language/Words/EnglishMisspellings/ classes. + + */ + + public function GetIntensiveEnglishMisspellings() { + $word_hash = []; + + $word_directory = '../classes/Language/Words/IntensiveEnglishMisspellings/'; + + $letters = ['0']; + $letters = array_merge($letters, range('A', 'Z')); + + foreach($letters as $letter) { + $word_class = 'IntensiveEnglishMisspellingsWords_' . $letter; + $word_file = $word_class . '.php'; + $word_file_location = $word_directory . $word_file; + require($word_file_location); + $word_object = new $word_class([]); + + $words = $word_object->EnglishMisspellingsWords(); + + $word_hash = array_merge($word_hash, $words); + } + + return $word_hash; + } + } +?> \ No newline at end of file diff --git a/classes/Language/Words/AmericanBritish/AmericanBritishWords_T.php b/classes/Language/Words/AmericanBritish/AmericanBritishWords_T.php index d82de93..50a73bb 100644 --- a/classes/Language/Words/AmericanBritish/AmericanBritishWords_T.php +++ b/classes/Language/Words/AmericanBritish/AmericanBritishWords_T.php @@ -449,6 +449,7 @@ public function AmericanBritishWords() { 'tittuping'=>'tittupping', 'tittupings'=>'tituppings', 'tittupy'=>'tittuppy', + 'today'=>['today', 'to-day',], 'toffee\'s'=>'toffy\'s', 'toffee'=>'toffy', 'toffees'=>'toffies', @@ -461,6 +462,7 @@ public function AmericanBritishWords() { 'tolstoy'=>['tolstoi', 'tolstoï', 'tólstóy', 'tólstói', 't́olstóy',], 'tolstoy\'s'=>['tolstoi\'s', 'tolstoï\'s', 'tólstóy\'s', 'tólstói\'s', 't́olstói\'s', 't́olstóy\'s',], 'tolstoyan'=>['tolstoian','tolstoyian','tolstoïan', 'tolstoïian', 'tólstóyan', 'tólstóyian', 't́olstóian', 't́olstóyan',], + 'tomorrow'=>['tomorrow', 'to-morrow',], 'tonicize'=>'tonicise', 'tonicizes'=>'tonicises', 'topee\'s'=>'topi\'s', diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_0.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_0.php index d45517f..00fee2c 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_0.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_0.php @@ -26,16 +26,142 @@ public function __construct($args) { */ public function EnglishMisspellingsWords() { - return [ - '1,000'=>'1000', - '1,100'=>'1100', - '1,200'=>'1200', - - '1800mm'=>'1,800 mm', + + /* TODO - 'I900'=>'1900', - '19OO'=>'1900', + 1870s=>1870's + + https://www.oreilly.com/library/view/mysql-cookbook/0596001452/ch04s13.html + + */ + + return $this->GenerateNumberOCRProblems(); + } + + public function GetOCRMatchups() { + $matchups = [ + '0'=>'O', + '1'=>'I', + # '5'=>'S', + # '8'=>'S', + # '9'=>'S', ]; + + return $matchups; + } + + public function GenerateNumberOCRProblems() { + $misspelled_words = []; + $matchups = $this->GetOCRMatchups(); + + $numberth_separators = ['', ' ']; + + for($i = 0; $i < 1000; $i++) { + foreach($numberth_separators as $numberth_separator) { + $modulo = $i % 10; + if($modulo == 1) { + $word = $i . $numberth_separator . 'st'; + } elseif($modulo == 2) { + $word = $i . $numberth_separator . 'nd'; + } elseif($modulo == 3) { + $word = $i . $numberth_separator . 'rd'; + } else { + $word = $i . $numberth_separator . 'th'; + } + + $interpolated_options = $this->InterpolateStrings(['matchups'=>$matchups, 'number'=>$word]); + + if(count($interpolated_options)) { + $misspelled_words[$word] = $interpolated_options; + } + } + } + + $min = 1; + $max = 10000; + + for($i = $min; $i < $max; $i++) { + $interpolated_options = $this->InterpolateStrings(['matchups'=>$matchups, 'number'=>$i]); + + if(count($interpolated_options)) { + $misspelled_words[$i] = $interpolated_options; + } + + if($i >= 1000) { + // $misspelled_words[$i][] = $i; + } + } + + // $misspelled_words['[sic]'] = [ + // '[sic]', + // '(sic)', + // ]; + + # print(""); + # print_r($misspelled_words); + # print(""); + #die("why"); + return $misspelled_words; + } + + public function InterpolateStrings($args) { + $number = $args['number']; + $matchups = $args['matchups']; + + $possible_chars = str_split($number); + $possible_chars_count = count($possible_chars); + $interoperable_chars = []; + + for($i = 0; $i < $possible_chars_count; $i++) { + $possible_char = $possible_chars[$i]; + + if($matchups[$possible_char]) { + $interoperable_chars[] = $possible_char; + } + } + + $interoperable_chars_count = count($interoperable_chars); + $max_interpolations = pow(2, $interoperable_chars_count); + + if($interoperable_chars_count == 0) { + return []; + } + + $pad_length = $interoperable_chars_count; + $matchup_keys = array_keys($matchups); + + $interpolated_strings = []; + + for($i = 1; $i < $max_interpolations; $i++) { + $binary = decbin($i); + $full_binary = str_pad($binary, $pad_length, '0', STR_PAD_LEFT); + + $binary_chars = str_split($full_binary); + $binary_index = 0; + + $interpreted_string = (string)$number; + + $binary_char = $binary_chars[0]; + for($j = 0; $j < $possible_chars_count; $j++) { + $possible_char = $possible_chars[$j]; + if($matchups[$possible_char]) { + #print("SOY!" . $possible_char . "|\n\n"); + + if($binary_chars[$binary_index]) { + $matchup = $matchups[$possible_char]; + $interpreted_string[$j] = $matchup; + } + $binary_index++; + $binary_char = $binary_chars[$binary_index]; + } + } + + if(preg_match('/[0-9]/', $interpreted_string)) { + $interpolated_strings[] = $interpreted_string; + } + } + + return $interpolated_strings; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_A.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_A.php index 4f4a12a..03903a0 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_A.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_A.php @@ -27,6 +27,244 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'a lot of'=>'alot of', + 'aboard'=>'abaord', + 'abolition'=>'aboliton', + 'abolitionism'=>'abolitonism', + 'abolitionist'=>'abolitonist', + 'about'=>[ + 'abont', + 'about about', + ], + 'absolute'=>'absoute', + 'absolutely'=>'absoutely', + 'abstraction'=>[ + 'abstration', + 'abtraction', + ], + 'abstracts'=>[ + 'abtracts', + ], + 'accidentally'=>'accidently', + 'accommodate'=>'accomodate', + 'accompaniment'=>[ + 'accompanement', + 'accompaniament', + 'accompaniement', + 'accompanyment', + ], + 'accompanying'=>'accompaning', + 'according'=>'acording', + 'accordingly'=>'acordingly', + 'accused'=>'accussed', + 'achtung'=>'actung', + 'active'=>[ + 'actiev', + 'activ', + ], + 'actively'=>[ + 'actievly', + 'activly', + ], + 'adaptation'=>'adaptaion', + 'addition'=>[ + 'additon', + 'addtion', + 'adition', + ], + 'additional'=>[ + 'additonal', + 'addtional', + 'aditional', + ], + 'additionally'=>[ + 'additonally', + 'addtionally', + 'aditionally', + ], + 'adolescence'=>'adolesence', + 'advancing'=>['adavancing',], + 'affair'=>[ + 'afair', + 'affir', + ], + 'affairs'=>[ + 'afairs', + 'affiairs', + 'affirs', + ], + 'affiliate'=>[ + 'affiliat', + 'afiliate', + ], + 'affiliation'=>[ + 'affilation', + 'afiliation', + ], + 'affordable'=>'afordable', + 'after'=>['afterr',], + 'against'=>[ + 'againts', + 'againtst', + 'agaisnt', + 'agaist', + 'aganist', + ], + 'agreement'=>'aggrement', + 'agricultural'=>[ + 'agriculural', + 'agriculutural', + 'agricutural', + ], + 'agriculture'=>[ + 'agriculuture', + 'agricuture', + ], + 'alarmed'=>'allarmed', + 'algebraic'=>'algebraical', + 'allotment'=>'alotment', + 'allotments'=>'alotments', + 'alteration'=>'alteraton', + 'although'=>'allthough', + 'aluminum'=>'alluminum', + 'always'=>'alwayes', + 'america'=>[ + 'amercia', + 'arnerica', + ], + 'american'=>[ + 'amercian', + 'arnerican', + ], + 'ammunition'=>'amunition', + 'analagious'=>'analagous', + 'anarchism'=>[ + 'anachism', + 'anarachism', + ], + 'anarchist'=>'anarachist', + 'anarchy'=>[ + 'anachy', + 'anarachy', + ], + 'and'=>'andd', + 'and he'=>'andhe', + 'and it'=>'nad it', + 'and so'=>'andso', + 'and the'=>[ + 'and te', + 'andthe', + ], + 'and then'=>'andthen', + 'and there'=>'andthere', + 'and thus'=>'an thus', + 'and with'=>'andwith', + 'anniversaries'=>'annyversaries', + 'anniversary'=>'annyversary', + 'annoyed'=>'anoyed', + 'annoying'=>'anoying', + 'anointment'=>'annointment', + 'anoited'=>'annoited', + 'anoiting'=>'annoiting', + 'another'=>'anthoer', + 'antagonist'=>'antogonist', + 'anthropological'=>'antropological', + 'anthropologist'=>'antropologist', + 'anthropology'=>'antropology', + 'anybody'=>[ + 'any body', + 'any-body', + ], + 'anyone'=>[ + 'any one', + 'any-one', + ], + 'Apartheid'=>'Aparthied', + 'appalling'=>'appaling', + 'appeal'=>[ + 'apeal', + 'apppeal', + ], + 'appealing'=>[ + 'apealing', + 'apppealing', + ], + 'appeals'=>[ + 'apeals', + 'apppeals', + ], + 'appearance'=>'apearance', + 'appeared'=>[ + 'appeard', + 'apppeared', + ], + 'appointment'=>[ + 'appoinment', + 'appointent', + 'appointmet', + ], + 'arboretum'=>'arboretium', + 'archbishop'=>'archibishop', + 'armistice'=>'annistice', + 'around'=>'aroound', + 'aroused'=>[ + 'aroussed', + 'arroused', + ], + 'arrest'=>'arest', + 'arrested'=>'arested', + 'arrived'=>['arrivde',], + 'arrondissement'=>'arrondisement', + 'arrondissements'=>'arrondisements', + 'artificial'=>'artifical', + 'as well'=>'as welll', + 'as well as'=>'as well ass', + 'assassin'=>[ + 'asassin', + 'assasin', + ], + 'assault'=>'assult', + 'assaulted'=>'assulted', + 'assaulting'=>'assualting', + 'assembling'=>'asembling', + 'assembly'=>'asembly', + 'assembled'=>'asssembled', + 'assembling'=>'asssembling', + 'assembly'=>[ + 'asembly', + 'assemebly', + 'assemnbly', + 'asssembly', + ], + 'assessment'=>[ + 'assesment', + 'asessment', + ], + 'assistance'=>'asssitance', + 'associate'=>'asssociate', + 'assuage'=>'assauge', + 'assume'=>'asssume', + 'assumption'=>'assumpton', + 'at'=>'at at', + 'at the'=>['athe',], + 'attempted'=>'attemped', + 'australia'=>[ + 'australa', + 'australai', + ], + 'australian'=>[ + 'australain', + 'australan', + ], + 'austrian'=>'austran', + 'authority'=>'athority', + 'award'=>'aword', + 'awarded'=>'aworded', + 'awesome'=>[ + 'awsome', + 'awseome', + ], + 'axiom'=>'anxiom', ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_B.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_B.php index 70174e3..dbcc40b 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_B.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_B.php @@ -27,6 +27,87 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'baghdad'=>'bagdad', + 'barricades'=>'baricades', + 'bastille'=>'bastile', + 'batallion'=>[ + 'batallian', + 'batallion', + 'batalian', + 'batalion', + ], + 'batallions'=>[ + 'batallians', + 'batallions', + 'batalians', + 'batalions', + ], + 'bazaar'=>['baazar',], + 'bestialities'=>['beastialities',], + 'bestiality'=>['beastiality',], + 'beauty'=>'beautiy', + 'because'=>['becuase',], + 'become'=>'beceme', + 'beginning'=>['begining',], + 'behavior'=>'behaivor', + 'beijing'=>[ + 'beijng', + 'bejing', + ], + 'beleaguered'=>[ + 'beleagered', + 'beleagured', + ], + 'belgrade'=>'belgade', + 'believed'=>'beleived', + 'belleville'=>['bellevile',], + 'benefited'=>'benefitted', + 'beside the'=>['besidet he',], + 'besides'=>'beised', + 'betrayal'=>'betrayel', + 'between'=>'beween', + 'billiard'=>['biliard',], + 'Bolivarian'=>'Boliviarian', + 'bourgeoisie'=>['borgeoisie',], + 'boulevards'=>['boulevarsd', 'boulvarsd',], + 'boycott'=>'boycot', + 'brazilian'=>[ + 'brazilan', + 'brazillan', + 'brazillian', + 'brazillion', + ], + 'brigade'=>'brigaded', + 'brilliant'=>['briliant',], + 'British'=>'Britis', + 'broad'=>['boroad',], + 'brother'=>['borther',], + 'brought'=>[ + 'brough', + ], + 'backetfuls'=>'bucketsful', + 'buddhist'=>[ + 'budhist', + ], + 'builder'=>[ + 'buiIder', + 'bulider', + ], + 'builders'=>[ + 'buiIders', + 'buliders', + ], + 'building'=>[ + 'buiIding', + 'buliding', + ], + 'buildings'=>[ + 'buiIdings', + 'bulidings', + ], + 'burning'=>'burining', + 'buses'=>'busses', + 'busing'=>'bussing', ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_C.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_C.php index 7bbdd26..21b885a 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_C.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_C.php @@ -27,6 +27,240 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'cadaver'=>'cadavre', + + 'caliph'=>['calph',], + 'campaign'=>[ + 'camapaign', + 'camapign', + 'campain', + 'capaign', + ], + 'canadian'=>['canadain'], + 'casino'=>['casnio',], + 'cat purred'=>'catpurred', + 'category'=>['caragory',], + 'cavalry'=>['cavarly',], + 'cemetery'=>'cemetary', + 'central'=>'centarl', + 'centuries'=>'certuries', + 'century'=>'ceutury', + 'certain'=>'certian', + 'challenge'=>['challeng',], + 'championship'=>[ + 'champoinship', + ], + 'chaperoneship'=>[ + 'chaperonship', + ], + 'chapter'=>[ + 'chaper', + 'chpater', + ], + 'charge of'=>'chargeof', + 'cheerful'=>[ + 'chearful', + ], + 'chicanery'=>'chacinery', + 'chinese'=>[ + 'chinees', + 'chineese', + ], + 'chief'=>['cheif',], + 'chiefly'=>['cheifly',], + 'children'=>['childern', 'chlidren',], + 'church'=>[ + 'chucrh', + 'cuhrch', + 'cuhrntch', + ], + 'circuit'=>['circut',], + 'citation'=>['citaton',], + 'civilian'=>'civilain', + 'civilization'=>[ + 'civilsation', + 'civilzation', + ], + 'chaos'=>'choas', + 'college'=>'colege', + 'collegiate'=>'colegiate', + 'colonel'=>['colonal',], + 'colonial'=>[ + 'colonal', + 'colinial', + ], + 'columbian'=>'columban', + 'column'=>[ + 'colunm', + ], + 'combatants'=>'combattants', + 'combated'=>'combatted', + 'combating'=>[ + 'combatting', + ], + 'comrade'=>'com rade', + 'comrades'=>'com rades', + 'commented'=>['comented',], + 'commission'=>['comission', 'commision',], + 'commissioned'=>['comissioned', 'commisioned', 'commisssioned',], + 'commissioner'=>'commisioner', + 'committed'=>[ + 'commited', + 'committted', + ], + 'committee'=>'committeee', + 'common'=>[ + 'coommon', + 'cornmon', + ], + 'commonwealth'=>['comonwealth',], + 'communism'=>'comminism', + 'communist'=>['comunist',], + 'community'=>[ + 'comminity', + 'commuity', + ], + 'company'=>['compnay',], + 'compared'=>['compeared',], + 'complaint'=>['compalint',], + 'complaints'=>['compalints',], + 'conceive'=>['concieve',], + 'concrete'=>[ + 'concerte', + ], + 'concretely'=>[ + 'concertely', + ], + 'condition'=>['conditon',], + 'conditions'=>['conditons',], + 'conference'=>['conferenc', 'conferene',], + 'conflict'=>[ + 'confiict', + 'confilct', + 'confict', + 'conflect', + ], + 'congregation'=>['congergation',], + 'congress'=>[ + 'congerss', + ], + 'congresses'=>[ + 'congersses', + ], + 'congressional'=>[ + 'congerssional', + ], + 'connecting'=>'conecting', + 'connection'=>[ + 'connoction', + 'conoection', + ], + 'conquerer'=>['conqueor',], + 'conscious'=>[ + 'conciousn', + ], + 'consciousness'=>[ + 'conciousness', + 'consciousnesss', + ], + 'conscriptionist'=>'conscirptionist', + 'conscriptionists'=>'conscirptionists', + 'conservation'=>['conseration',], + 'considerable'=>'considerabel', + 'considerations'=>'considerotions', + 'consistent'=>['constitent',], + 'consistently'=>['consistantly', 'consitently',], + 'constituent'=>['constitent', 'constituint', 'constitutent'], + 'constituency'=>'constitency', + 'constituents'=>['constitents', 'constituints', 'constitutents'], + 'constitute'=>'constititute', + 'contact'=>'cotact', + 'constitution'=>['constititution',], + 'contained'=>['containned',], + 'contemporary'=>'contemprary', + 'continental'=>['continential',], + 'continued'=>'contiued', + 'continues'=>'contiues', + 'controversial'=>[ + 'controversal', + 'controvertial', + ], + 'cooperate'=>[ + 'co- operate', + 'co- oporate', + 'co-operate', + 'co-oporate', + ], + 'cooperate'=>[ + 'co- operated', + 'co- oporated', + 'co-operated', + 'co-oporated', + ], + 'cooperation'=>[ + 'co- operation', + 'co- oporation', + 'co-opera-tion', + 'co-operation', + 'co-oporation', + 'co-opera-ton', + 'co-operaton', + 'co-oporaton', + 'cooperaton', + ], + 'cooperative'=>[ + 'co- operative', + 'co- oporative', + 'co-operative', + 'co-oporative', + ], + 'cooperative'=>[ + 'co- operatives', + 'co- oporatives', + 'co-operatives', + 'co-oporatives', + ], + 'coordinate'=>[ + 'co- ordinate', + 'co-ordinate', + ], + 'coordinates'=>[ + 'co- ordinates', + 'co-ordinates', + ], + 'coordinating'=>[ + 'co- ordinating', + 'co-ordinating', + ], + 'coordination'=>[ + 'co- ordination', + 'co-ordination', + ], + 'conflict'=>[ + 'ocnflict', + ], + 'conflicts'=>[ + 'ocnflicts', + ], + 'corporate'=>'coporate', + 'corvee'=>'corve', + 'cosmopolitanism'=>'cosmopolitism', + 'country'=>'cuontry ', + 'create'=>[ + 'cerate', + 'craete', + ], + 'created'=>'cerated', + 'creating'=>'cerating', + 'creation'=>'ceration', + 'creationism'=>'cerationism', + 'creationist'=>'cerationist', + 'criteria'=>'criterions', + 'crystal-clear'=>'crystalclear', + 'cultural'=>'culutral', + 'cumulative'=>'culminative', + 'curious'=>['curous',], + 'current'=>'curernt', ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_D.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_D.php index e9f853a..c9a8ac5 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_D.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_D.php @@ -27,6 +27,105 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'darkness'=>[ + 'dark ness', + 'darknes', + ], + 'days'=>'dayes', + 'days later'=>['days alter',], + 'debugging'=>['debuging',], + 'decided'=>'decidde', + 'declared'=>'decered', + 'decommissioned'=>'decommisioned', + 'decouple'=>[ + 'decuplate', + 'decuple', + ], + 'decoupling'=>[ + 'decuplating', + 'decupling', + ], + 'debt'=>'dobt', + 'deferring'=>[ + 'defering', + 'deffering', + ], + 'demonstration'=>['demonstartion',], + 'denomination'=>['denominaton',], + 'department'=>[ + 'depart- ment', + 'depart-ment', + ], + 'departments'=>[ + 'depart- ments', + 'depart-ments', + ], + 'dependence'=>[ + 'dependance', + ], + 'dependency'=>[ + 'dependancy', + ], + 'dependent'=>[ + 'dependant', + ], + 'dependents'=>[ + 'dependants', + ], + 'descendant'=>[ + 'descendent', + 'descentant', + ], + 'described'=>'descirbed', + 'design'=>'desgin', + 'dessert'=>'desssert', + 'destabilize'=>['destablize',], + 'destroyed'=>[ + 'destoryed', + ], + 'destroying'=>['destorying',], + 'detachment'=>'detachmment', + 'determined'=>[ + 'determinated', + 'deternmined', + ], + 'devastating'=>['devastatin',], + 'develop'=>'develope', + 'development'=>'developement', + 'dictator'=>[ + 'dicator', + ], + 'dictators'=>[ + 'dicators', + ], + 'different'=>['diferent', 'diferrent', 'diffeernt',], + 'difficult'=>'dificult', + 'difficulties'=>[ + 'difficultites', + ], + 'directory'=>'direcotyr', + 'disappears'=>['dissapears',], + 'disastrous'=>['disasterous',], + 'discouraged'=>'disencouraged', + 'discrepancies'=>['discrepencies',], + 'discrepancy'=>['discrepency',], + 'disillusioned'=>'disillusionized', + 'display'=>['dispaly',], + 'dispossessed'=>[ + 'disposessed', + 'dispossesed', + 'dispossesssed', + ], + 'dispossessing'=>'dispossesssing', + 'disturbances'=>['distrubances',], + 'diverse'=>[ + 'divers', + 'divrse', + ], + 'division'=>'divisoin', + 'domineer'=>['dominear',], + 'drive'=>['dirve',], + 'duplication'=>['duplicaiton',], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_E.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_E.php index 662976a..63b9b95 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_E.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_E.php @@ -27,6 +27,118 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'early'=>'earely', + 'eastern'=>[ + 'eastearn', + 'easten', + ], + 'ecclesiastical'=>['eclesiastical',], + 'economic'=>'economis', + 'economical'=>'economial', + 'ecstasy'=>'ecstacy', + 'effective'=>[ + 'efective', + 'effetive', + ], + 'efficient'=>['eficient',], + 'effort'=>[ + 'ef- fort', + 'ef-fort', + 'efort', + ], + 'eightieth'=>'eighieth', + 'eighth'=>'eigth', + 'el dorado'=>'elderado', + 'elements'=>'elemenst', + 'embarrassing'=>[ + 'embarassing', + 'embarrasing', + ], + 'emissary'=>[ + 'emisary', + 'emmisary', + 'emmissary', + ], + 'emperor'=>['emporer',], + 'empire'=>['emprie,'], + 'employed'=>'employeed', + 'enclosure'=>['encolsure',], + 'endeavor'=>[ + 'endavour', + 'endeavnor', + ], + 'engagement'=>'engagment', + 'enlist'=>'enlift', + 'enlisted'=>'enlifted', + 'ensuing'=>'ensueing', + 'ensuring'=>'ensureing', + 'enthralled'=>'enthralledd', + 'entity'=>['enitity',], + 'entrepreneur'=>'entreprenuer', + 'equaly'=>['eqaul',], + 'equally'=>['eqaully',], + 'erected'=>'errected', + 'errors'=>[ + 'erors', + ], + 'erupted'=>'errupted', + 'espionage'=>[ + 'espoinage', + 'esponage', + 'esponiage', + ], + 'establishment'=>'establishme', + 'ethereal'=>'etherial', + 'evening'=>'evining', + 'everybody'=>[ + 'every body', + 'every-body', + 'everbody', + 'everyboyd', + ], + 'everyone'=>[ + 'every one', + 'every-one', + ], + 'evident'=>'evedent', + 'evil'=>'evol', + 'excellent'=>'excelent', + 'excessive'=>[ + 'excesssive', + ], + 'exchange'=>[ + 'exchnage', + ], + 'executive'=>[ + 'exective', + ], + 'exercise'=>[ + 'excercise', + 'exercize', + ], + 'exfoliate'=>[ + 'exfolliate', + ], + 'exhibition'=>[ + 'exhibiton', + 'exibition', + ], + 'existence'=>[ + 'existance', + ], + 'expectation'=>[ + 'expection', + ], + 'expense'=>'expence', + 'exploit'=>'exuloit', + 'exploitation'=>'exuloitation', + 'exploiter'=>'exuloiter', + 'exploiting'=>'exuloiting', + 'expressely'=>[ + 'expressedly', + 'expressely', + ], + 'extracted'=>'exctracted', ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_F.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_F.php index b2548ff..435abe9 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_F.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_F.php @@ -27,6 +27,71 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'fairly'=>['afairly',], + 'falafel'=>'falafal', + 'familiar'=>'familliar', + 'famous'=>'fomous', + 'far-reaching'=>'farreaching', + 'feared'=>'feard', + 'features'=>'featurs', + 'fervent'=>'ferevent', + 'fictitious'=>'fictious', + 'fields'=>'fileds', + 'fight'=>['figth',], + 'financier'=>'finacier', + 'fire-breathing'=>'firebreathing', + 'first'=>['firts',], + 'fizzling'=>'fizziling', + 'flotation'=>['floatation',], + 'flotilla'=>['floatilla',], + 'flotillas'=>['floatillas',], + 'flourishing'=>'florishing', + 'followed'=>['follewed',], + 'foolish'=>'oolish', + 'for the'=>[ + 'fo the', + 'forthe', + 'fro the', + 'ofr the' + ], + 'forces'=>'focres', + 'foreseen'=>[ + 'forseen', + ], + 'former'=>[ + 'brmer', + ], + 'forswear'=>'foreswear', + 'forthwith'=>'fortwith', + 'four'=>'foru', + 'franchise'=>'francihse', + 'frankfurt'=>'frankfart', + 'french'=>[ + 'frecnh', + 'frenc', + ], + 'friendship'=>'firendship', + 'from'=>['frrom',], + 'from a'=>['fom a',], + 'from an'=>['fom an',], + 'from the'=>[ + 'fom the', + 'from th', + ], + 'froze'=>['frozed',], + 'fruit-flies'=>'fruitflies', + 'frustrated'=>'frustated', + 'fulfill'=>[ + 'fulfil', + 'fullfill', + ], + 'fullness'=>'fulness', + 'further'=>'futher', + 'furthermore'=>[ + 'farthermore', + 'furthemore', + 'furthrmore', + ], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_G.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_G.php index 8848921..bf158d0 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_G.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_G.php @@ -27,6 +27,65 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'galapogos'=>'galopogos', + 'gallant'=>['galliant',], + 'Galileo'=>['Gallileo',], + 'gathering'=>'gethering', + 'gauge'=>['guage',], + 'geminiani'=>['geminani',], + 'generally'=>[ + 'generelly', + 'genrally', + ], + 'German'=>['Geramn',], + 'gesture'=>'gseture', + 'getting'=>['gettng',], + 'global'=>['globial',], + 'globalization'=>['globlization',], + 'goddess'=>['goddes', 'godess',], + 'government'=>[ + 'goverment', + 'governement', + 'governemnt', + 'governemt', + 'governent', + 'governmen', + 'governmet', + 'govrenment', + ], + 'grammatical'=>'gramatical', + 'great'=>'gerat', + 'grecian'=>['greecian',], + 'grievance'=>[ + 'greivance', + 'greviance', + 'grivance', + ], + 'grievously'=>[ + 'greivously', + 'greviously', + 'grivously', + ], + 'ground-based'=>[ + 'ground based', + ], + 'group'=>'gorup', + 'groups'=>'gorups', + 'guerrilla'=>[ + 'guerrala', + 'guerralla', + 'guerilla', + 'guerrila', + 'guerrilal', + ], + 'guerrillas'=>[ + 'guerillas', + 'guerralas', + 'guerrallas', + 'guerrilals', + 'guerrilas', + ], + 'gymnastics'=>['gymastics', 'gynmastics',], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_H.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_H.php index 122b326..d566a8e 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_H.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_H.php @@ -27,6 +27,27 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'hamlet'=>'hamlit', + 'harassment'=>['harssment',], + 'having'=>'haveing', + 'he'=>'he he', + 'headquarters'=>'headquerters', + 'heightening'=>'hightening', + 'hidden'=>['hideen',], + 'highlands'=>'higlands', + 'highway'=>'higllway', + 'hindu'=>'hindoo', + 'hindus'=>'hindoos', + 'hindrance'=>'hinderance', + 'hindrances'=>'hinderances', + 'honor'=>['honord',], + 'honored'=>['honord',], + 'horrendous'=>'horendous', + 'hospital'=>'hopsital', + 'how'=>['how how',], + 'humorously'=>['humourously',], + 'Hungarian'=>['Hungaran',], + 'hypocritical'=>['hyprocritical',], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_I.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_I.php index f4635c5..9de2255 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_I.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_I.php @@ -27,6 +27,80 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'identity'=>['idenity',], + 'illustrated'=>'ilustrated', + 'immediately'=>[ + '1mmediately', + 'inmediately', + 'lmmediately', + ], + 'immense'=>'imemnse', + 'immersed'=>['immeresed',], + 'immigrant'=>['imigrant',], + 'immigration'=>['imigration',], + 'implementation'=>['implementatation',], + 'important'=>'importent', + 'in addition'=>['in additon',], + 'in order'=>'inorder', + 'in that'=>'inthat', + 'in the'=>['int he',], + 'incipient'=>['incipent',], + 'inconsistent'=>'inconsisent', + 'independence'=>[ + 'indepedence', + 'independance', + 'independenec', + 'indepenedence', + 'indepndence', + ], + 'independent'=>[ + 'indepedent', + 'independant', + 'indepenedent', + 'indepndent', + ], + 'indispensable'=>'indispensible', + 'industrial'=>'industiral', + 'industry'=>['indsutry',], + 'infection'=>['infecion',], + 'influence'=>['infuence',], + 'influential'=>['infuential'], + 'initially'=>['intially',], + 'innovation'=>'innovaton', + 'inoculate'=>['inocolate',], + 'inquisition'=>['inquisiton',], + 'inside the'=>'insidethe', + 'insistence'=>'insistance', + 'instantiation'=>['instatiation',], + 'instead'=>['instaed', 'isntead',], + 'institute'=>[ + 'instititute', + 'instute', + ], + 'institution'=>['instititution', 'instution',], + 'instruction'=>['instrution',], + 'insurrection'=>'insurection', + 'intellectual'=>['intellectul', 'intelletual',], + 'intercourse'=>'intercouse', + 'interrupted'=>'interupted', + 'interested'=>'inteersted', + 'interests'=>'inteersts', + 'intermittent'=>['intermitent',], + 'international'=>[ + 'internaitonal', + 'interanational', + ], + 'internationalism'=>[ + 'internaitonalism', + 'interanationalism', + ], + 'intriguing'=>['intriuing',], + 'invaded'=>'invadid', + 'involving'=>['invokving',], + 'iranian'=>'irannian', + 'irreconcilable'=>'irreconcileable', + 'it'=>'lt', + 'italian'=>'itailan', ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_J.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_J.php index 4f3ce41..9bc18fc 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_J.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_J.php @@ -27,6 +27,23 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'japanese'=>[ + 'japaneese', + 'japanes', + ], + 'job hunting'=>[ + 'jobhunting', + ], + 'joined'=>[ + 'joinde', + ], + 'jordanian'=>[ + 'jordianian', + 'jordnian', + ], + 'june'=>[ + 'jime', + ], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_K.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_K.php index 8bea99e..2633620 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_K.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_K.php @@ -27,6 +27,14 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'knowledge'=>[ + 'knoweldge', + 'knowlege', + ], + 'kropotkin'=>[ + 'kroptkin', + 'kroptokin', + ], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_L.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_L.php index 2fbd0f1..13e7957 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_L.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_L.php @@ -27,6 +27,55 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'lamennais'=>[ + 'lamenais', + ], + 'lamp post'=>[ + 'lampost', + 'lamppost', + ], + 'lamp posts'=>[ + 'lamposts', + 'lampposts', + ], + 'language'=>[ + 'langauge', + ], + 'languages'=>[ + 'langauges', + ], + 'later on'=>[ + 'alter on', + ], + 'lawyer'=>[ + 'lawyre', + ], + 'legislative'=>[ + 'legilative', + ], + 'legitimist'=>[ + 'legimist', + ], + 'library'=>[ + 'libarry', + 'libary', + ], + 'lieutenant'=>[ + 'leiutenant', + 'leuitenant', + 'liuetenant', + ], + 'light'=>[ + 'Iight', + ], + 'looking'=>[ + 'loking', + ], + 'london'=>'lond', + 'long'=>'iong', + 'longing'=>'ionging', + 'longs'=>'iongs', + 'lucky'=>'lukcy', ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_M.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_M.php index 8c43e28..b3b30ff 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_M.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_M.php @@ -27,6 +27,79 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'macadamia'=>['macademia',], + 'mainland'=>['mainlaind',], + 'maize'=>'maise', + 'maneuvering'=>'manoeuvering', + 'manifestation'=>[ + 'manfestation', + 'manifestaton', + ], + 'manifestations'=>[ + 'manfestations', + 'manifetations', + ], + 'manifestos'=>'manifestoes', + 'mankind'=>'mandkind', + 'manner'=>[ + 'maner', + ], + 'Marie'=>['Mariie',], + 'married'=>'maried', + 'Marseillaise'=>'Mareseillaise', + 'material'=>'mateiral', + 'materials'=>'mateirals', + 'mathematics'=>['mathmatics',], + 'may'=>['maye',], + 'measure'=>[ + 'measuer', + 'meaure', + ], + 'measures'=>[ + 'measuers', + 'meaures', + ], + 'mechanism'=>'machanism', + 'Mediterranean'=>['Mediteranean',], + 'meeting'=>'metting', + 'member'=>['meber', 'memebr',], + 'mercenary'=>'mercenray', + 'merchant'=>['merchat',], + 'meshed'=>'meshod', + 'messaging'=>['messeging',], + 'messianism'=>'mesianism', + 'militant'=>'miltant', + 'militants'=>'miltants', + 'military'=>'militay', + 'militia'=>['milita',], + 'military'=>[ + 'militaly', + 'militiary', + ], + 'millennial'=>[ + 'milennial', + 'millenial', + ], + 'millennials'=>[ + 'milennials', + 'millenials', + ], + 'millennium'=>[ + 'milennium', + 'millenium', + ], + 'millimeter'=>['milllimeter',], + 'mineral'=>['minerial',], + 'months'=>'motnhs', + 'moreover'=>['morever','morovor',], + 'moroccan'=>['morroccan', 'morrocan',], + 'mountainous'=>['mountaineous',], + 'municipal'=>[ + 'municiple', + 'municipial', + ], + 'municipality'=>['municpality',], + 'mutiny'=>['mutny'], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_N.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_N.php index 13410fd..2e8be91 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_N.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_N.php @@ -27,6 +27,37 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'namely'=>['namelly',], + 'national'=>[ + 'naitonal', + 'nationnal', + ], + 'nationwide'=>[ + 'naitonwide', + 'nationnwide', + ], + 'necessary'=>['nesessary', 'nessecary',], + 'necessity'=>[ + 'neccesity', + 'necessaty', + ], + 'necessities'=>[ + 'neccesities', + 'necessaties', + ], + 'neighborhood'=>'neightbourhood', + 'new'=>['neww',], + 'newws'=>['newws',], + 'nietzsche'=>['nietzche', 'nietzshe',], + 'nobody'=>[ + 'no body', + 'no-body', + ], + 'nonplussed'=>'non-plussed', + 'notably'=>'noteably', + 'Novgorod'=>['Novgord', 'Novgrod',], + 'now he'=>['nowh e',], + 'nowadays'=>['nowdays',], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_O.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_O.php index 357d284..e631953 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_O.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_O.php @@ -27,6 +27,54 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'Oaxaca'=>'Oaxac', + 'obligatory'=>'obligatoty', + 'ocean-based'=>['ocean based',], + 'October'=>[ + 'Ocotober', + 'Octeber', + 'Octtober', + ], + 'of'=>[ + 'of of', + ], + 'of the'=>['fo the', 'ofthe',], + 'of their'=>['oftheir',], + 'officer'=>'officier', + 'officers'=>'officiers', + 'okhrana'=>['okrana',], + 'openly'=>['openely',], + 'operations'=>['operatons',], + 'opossum'=>'opposum', + 'opportunities'=>[ + 'opportuinities', + 'opportunites', + ], + 'opportunity'=>[ + 'opportuinity', + 'opportunitey', + ], + 'oppression'=>[ + 'oppresion', + 'opresion', + 'opression', + ], + 'or'=>[ + 'lor', + ], + 'orbital'=>['oribital',], + 'ordinance'=>['ordience',], + 'organization'=>[ + 'organizaton', + ], + 'organizations'=>[ + 'organizatons', + ], + 'original'=>['origial',], + 'originally'=>['origially', 'originaly',], + 'other hand'=>'otherhand', + 'others'=>['tohers',], + 'overwhelmed'=>['overwhemed', 'overwelmed',], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_P.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_P.php index 0158185..4f4b866 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_P.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_P.php @@ -27,6 +27,117 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'pamphlet'=>[ + 'pamphelt', + ], + 'pamphlets'=>[ + 'pamphelts', + ], + 'papal'=>['papl',], + 'paramount'=>['paramout',], + 'parliamentary'=>['parliamentry',], + 'passenger'=>['passenegr',], + 'partisan'=>[ + 'partizan', + 'patisan', + ], + 'partisans'=>[ + 'partizans', + 'patisans', + ], + 'pattern'=>'patern', + 'peasant'=>['paesant', 'peasent',], + 'peasants'=>['peasents',], + 'peasantry'=>[ + 'peasentry', + 'peasanty', + ], + 'pentium'=>['pentum',], + 'people'=>'peolpe', + 'perceive'=>['percieve',], + 'perceiving'=>['percieving',], + 'percent'=>['per cent',], + 'persistently'=>'persisently', + 'personnel'=>'personel', + 'peruvian'=>'peruvan', + 'philanthropist'=>['philantropist',], + 'philanthropists'=>['philantropists',], + 'piece of'=>['piece fo',], + 'plebiscite'=>'plebinite', + 'poem'=>[ + 'pem', + ], + 'poet-philosopher'=>'poetphilosopher', + 'poisoning'=>['poisining',], + 'political'=>['pollitical',], + 'politician'=>['politican',], + 'politicians'=>['politicans',], + 'poorest'=>['porest',], + 'portray'=>'potray', + 'portrayed'=>'potrayed', + 'portraying'=>'potraying', + 'possession'=>[ + 'posession', + 'possesion', + ], + 'potential'=>['potental',], + 'practically'=>[ + 'prac- tically', + 'prac-tically', + ], + 'precisely'=>'precizely', + 'preeminence'=>['preminence'], + 'preemption'=>'pre-emption', + 'preordained'=>'pre-ordained', + 'preparations'=>['preperations', 'preprations',], + 'prerogative'=>'perogative', + 'present'=>'persent', + 'preserve'=>'perserve', + 'presumption'=>['presumpion',], + 'presumptious'=>'presumtuous', + 'presumptive'=>'presumtive', + 'pretension'=>['pretention',], + 'pretensions'=>['pretentions',], + 'principles'=>['prinicples',], + 'privately'=>['privatey',], + 'privileged'=>[ + 'priveleged', + 'privilegd', + 'priviledged', + ], + 'privileges'=>[ + 'priveleges', + 'privilegs', + 'priviledges', + ], + 'proclamation'=>[ + 'procla- mation', + 'procla-mation', + 'proclimation', + ], + 'proclamations'=>[ + 'procla- mations', + 'procla-mations', + 'proclimations', + ], + 'proclaiming'=>'proclaim ing', + 'progressively'=>['progresively',], + 'proletariat'=>'proletariate', + 'promise'=>'promize', + 'propagate'=>['propogate',], + 'propagation'=>['propogation',], + 'property'=>['porperty', 'proprety',], + 'prophesied'=>'prophecied', + 'province'=>'prov- ince', + 'prussia'=>'prusssia', + 'pulse-beat'=>'pulsebeat', + 'public'=>['publuc',], + 'puppet'=>['pupet',], + 'putsch'=>[ + 'putch', + 'putcsh', + 'putsh', + ], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_Q.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_Q.php index bb10323..b76f08f 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_Q.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_Q.php @@ -27,6 +27,8 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'qualified'=>['qualifiyed',], + 'qualifying'=>['qualifiying',], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_R.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_R.php index 2f23075..57cd499 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_R.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_R.php @@ -27,6 +27,100 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'railway'=>'railwaye', + 'rapidly'=>['rapidy',], + 'reason'=>['reaon',], + 'reasons'=>['reaons',], + 'rebuilding'=>['rebulding',], + 'receive'=>[ + 'receve', + 'recieve', + 'recive', + ], + 'received'=>[ + 'receved', + 'recieved', + 'recived', + ], + 'receiving'=>[ + 'receving', + 'recieving', + ], + 'recognize'=>'recoginise', + 'recruiting'=>['recruting',], + 'reform-minded'=>['reform minded',], + 'region'=>['reigon',], + 'regional'=>['regionial',], + 'reinforcement'=>'reenforcement', + 'release'=>['relesae',], + 'released'=>[ + 'relaesed', + 'relesaed', + ], + 'remaining'=>['remainin',], + 'repossession'=>['repossetion',], + 'represented'=>[ + 'repersented', + 'repersented', + ], + 'representing'=>[ + 'repersenting', + ], + 'represents'=>[ + 'repersents', + 'represesnt', + ], + 'republic'=>['repulic',], + 'repudiate'=>['repudate',], + 'repudiating'=>['repudating',], + 'requisition'=>['requisiton',], + 'requisitioned'=>['requisitoned',], + 'resentment'=>['resenment',], + 'rescind'=>['resind',], + 'respect'=>'repect', + 'respected'=>'repected', + 'respecting'=>'repecting', + 'restrict'=>['resrtict',], + 'restricts'=>['resrticts',], + 'restriction'=>['resrtiction',], + 'restrictions'=>['resrtictions',], + 'resume'=>[ + 'reassume', + ], + 'resumes'=>[ + 'reassumes', + ], + 'resulting'=>[ + 'resuIting', + 'reulting', + ], + 'results'=>[ + 'resuIts', + 'reults', + ], + 'retreated'=>['retreatde',], + 'reveling'=>'reveling', + 'reverberation'=>[ + 'reveberation', + 'reverbration', + ], + 'revolution'=>[ + 'revoulution', + ], + 'revolutionary'=>[ + 'revolu- tionary', + 'revolu-tionary', + 'revolutionay', + ], + 'revolutionize'=>['revolustionise',], + 'rights'=>[ + 'irghts', + ], + 'ruinous'=>['runious',], + 'russian'=>[ + 'rusian', + 'russsian', + ], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_S.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_S.php index 0502f2b..0cabcb5 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_S.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_S.php @@ -27,6 +27,133 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'safeguard'=>[ + 'safegard', + ], + 'safe'=>[ + 'sefe', + ], + 'safely'=>[ + 'sefely', + ], + 'sanitarium'=>['sanitarum',], + 'sanitation'=>['saniation', 'sanitaion', 'sanitaton',], + 'sauce'=>['suace',], + 'school'=>['schcool',], + 'schedule'=>['shedule',], + 'scheduled'=>'cheluded', + 'schopenhauer'=>['shopenhauer', 'schopenhaur',], + 'scorch'=>['scortch',], + 'scorched'=>['scortched',], + 'sea-based'=>['sea based',], + 'section'=>[ + 'sectino', + 'setion', + ], + 'security'=>['secuirty',], + 'sedition'=>['sediton',], + 'seize'=>['sieze',], + 'seized'=>['siezed',], + 'self'=>['selv',], + 'separated'=>['sepatated',], + 'shall be'=>'shallbe', + 'she'=>'she she', + 'she is'=>['sheis',], + 'shelter'=>[ + 'sllelter', + ], + 'sicilian'=>['sicilan',], + 'significant'=>'signifigant', + 'similar'=>['similiar', 'simmilar',], + 'simulateously'=>['simultanously',], + 'sister'=>['sistor',], + 'socialization'=>['socialisastion',], + 'somewhat'=>['somwhat',], + 'sorghum'=>['sorgham',], + 'sought'=>'sollght', + 'souvenir'=>['souvenier',], + 'sovereign'=>['soveriegn',], + 'sovereigns'=>['soveriegns',], + 'soybean'=>['soyabean',], + 'spanish'=>[ + 'spainish', + 'spanis', + ], + 'spell out'=>'spellout', + 'spiritually'=>['spirtually ', 'spritually',], + 'spontaneously'=>['spontaneosly',], + 'st. petersburg'=>[ + 'st. petersberg', + 'st. petersburgh', + ], + 'stablize'=>'estabilize', + 'stablized'=>'estabilized', + 'stablizes'=>'estabilizes', + 'stands'=>['stansd',], + 'status quo'=>['statu quo',], + 'sterilization'=>['sterilzation',], + 'still'=>'stlil', + 'stoical'=>'soical', + 'Strasbourg'=>['Strabourg',], + 'strengthen'=>[ + 'stengthen', + 'sterngth', + ], + 'strengthened'=>[ + 'stengthened', + 'sterngthened', + ], + 'strike'=>['stirke',], + 'strikes'=>['stirkes',], + 'struggle'=>'strugle', + 'struggler'=>'strugler', + 'struggling'=>'strugling', + 'students'=>['stuednts',], + 'subjects'=>['subcjects',], + 'subscribe'=>'subcribe', + 'subscriber'=>'subcriber', + 'subscribers'=>'subcribers', + 'subscription'=>'subcription', + 'subsistence'=>'susbsistence', + 'substitute'=>['substititute',], + 'substitution'=>['substititution',], + 'subtly'=>[ + 'subtlely', + 'subtley', + ], + 'suburban'=>['suburbian',], + 'succeeded'=>['succeded', 'succeedded', 'suceeded',], + 'succeeding'=>['succeding', 'succeding', 'suceeding',], + 'succession'=>'sucession', + 'sufficient'=>['sufficent',], + 'sufficiently'=>['sufficently',], + 'suffolk'=>'sufolk', + 'sugarcane'=>['sugercane',], + 'superintendent'=>'superintendant', + 'supernumerary'=>'supernumary', + 'superseded'=>['superceeded', 'superceded', 'superseeded',], + 'support'=>['suppoort',], + 'supporters'=>['supportes',], + 'supports'=>['supportes',], + 'suppressed'=>['suppresed', 'supressed',], + 'symbolize'=>'symoblolize', + 'symbolized'=>'symoblolized', + 'symmetry'=>[ + 'simetry', + 'symetry', + ], + 'symmetric'=>[ + 'simetric', + 'symetric', + ], + 'symmetrical'=>[ + 'simetrical', + 'symetrical', + ], + 'synthesize'=>[ + 'synthetise', + 'synthetize', + ], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_T.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_T.php index 7227c98..1047f11 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_T.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_T.php @@ -27,6 +27,63 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'taken'=>['takn','takne',], + 'technique'=>['techique', 'techniqu',], + 'television'=>['televison', 'telivision',], + 'that'=>[ + 'tbat', + 'thot', + ], + 'that are'=>'thet are', + 'the'=>[ + 'hthe', + 'tbe', + 'the the', + 'tlie', + 'tthe', + ], + 'the large'=>['thelarge',], + 'the legal'=>'thelegal', + 'the new'=>['thenew',], + 'the other'=>'tho other', + 'their'=>['tehir',], + 'they'=>['tliey',], + 'thirteen'=>'thirteeen', + 'tibetan'=>'thibetan', + 'times'=>'timees', + 'thievish'=>'theivish', + 'this'=>'tihs', + 'thorougly'=>['thorougly',], + 'those'=>[ + 'thiose', + 'thosse', + ], + 'though'=>['though though',], + 'thoughts'=>['thoughs',], + 'threshold'=>'thresold', + 'throughout'=>['troughout',], + 'to a'=>'ot a', + 'to the'=>[ + 'ot the', + 'to tho', + 'tothe', + ], + 'tolkien'=>['tolkein',], + 'town'=>['twon',], + 'trader'=>['traider',], + 'traditional'=>['tradional',], + 'traditionalism'=>['tradionalism',], + 'traditionally'=>['traditonally', 'tradionally',], + 'transferring'=>'transfering', + 'transgender'=>['transgneder',], + 'translation'=>['trnaslation',], + 'transportation'=>['transporation',], + 'travel'=>'TraveI', + 'travels'=>'TraveIs', + 'trouble'=>'trobule', + 'trustworthy'=>'trustwortby', + 'tsunami'=>['tsuname',], + 'tunnel-disease'=>'tunneldisease', ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_U.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_U.php index e69c681..8cbd0e4 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_U.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_U.php @@ -27,6 +27,23 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'undertook'=>['undertok',], + 'unexpectedly'=>['unexpectadly',], + 'unforeseen'=>['unforseen',], + 'uninterrupted'=>'uninterupted', + 'united'=>[ + 'unitesd', + 'unitd', + ], + 'united states'=>[ + 'unitd states', + 'united staes', + 'united stats', + ], + 'universities'=>['univerisities',], + 'unmanageable'=>'umnanageable', + 'unmistakable'=>'unmistakeable', + 'upon'=>'apon', ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_V.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_V.php index 06b17f4..cda95fd 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_V.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_V.php @@ -27,6 +27,17 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'various'=>[ + 'varoius', + 'varous', + ], + 'vegetables'=>['vegeatables',], + 'vice-minister'=>'viceminister', + 'Vietnamese'=>['Vietnames',], + 'vigorous'=>'vigourous', + 'virginia'=>'virgina', + 'vladivostok'=>['vladivostock', 'vladovostock',], + 'volunteers'=>'volimteers', ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_W.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_W.php index 0227c32..7dd10ca 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_W.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_W.php @@ -27,6 +27,72 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'wage worker'=>[ + 'wageworker', + ], + 'way'=>[ + 'waye', + ], + 'ways'=>[ + 'wayes', + ], + 'wealth'=>[ + 'weaIth', + ], + 'wealthy'=>[ + 'weaIthy', + ], + 'wearing'=>'wearilig', + 'well'=>[ + 'we11', + 'we1l', + 'wel1', + ], + 'well conceived'=>'wellconceived', + 'well known'=>'wellknown', + 'wheat'=>[ + 'wheet', + ], + 'where'=>[ + 'where where', + ], + 'which'=>[ + 'which which', + ], + 'wholesome'=>'wholsome', + 'wholesomeness'=>'wholsomeness', + 'widespread'=>[ + 'widesperead', + ], + 'wisdom'=>[ + 'wisom', + ], + 'with the'=>[ + 'withthe', + ], + 'withhold'=>[ + 'withold', + ], + 'with'=>'uith', + 'without'=>[ + 'withotu', + ], + 'woeful'=>'woful', + 'wondrous'=>[ + 'wonderous', + ], + 'working classes'=>[ + 'workingclasses', + ], + 'worldly'=>[ + 'wordly', + ], + 'worm-eaten'=>[ + 'wormeaten', + ], + 'would'=>[ + 'wouid', + ], ]; } } diff --git a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_Y.php b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_Y.php index 7ed2081..e04716f 100644 --- a/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_Y.php +++ b/classes/Language/Words/EnglishMisspellings/EnglishMisspellingsWords_Y.php @@ -27,6 +27,18 @@ public function __construct($args) { public function EnglishMisspellingsWords() { return [ + 'yahoo'=>[ + 'yahhoo', + ], + 'year'=>[ + 'yera', + ], + 'years'=>[ + 'yeras', + ], + 'yield'=>[ + 'yeild', + ], ]; } } diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_0.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_0.php new file mode 100644 index 0000000..fe66b2a --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_0.php @@ -0,0 +1,138 @@ +EnglishMisspellingsWords_dynamicData(); + $static_misspellings = $this->EnglishMisspellingsWords_staticData(); + + $misspellings = []; + + foreach($dynamic_misspellings as $word => $misspelling) { + if(!$misspellings[$word]) { + $misspellings[$word] = []; + } + $misspellings[$word] = array_merge($misspellings[$word], $misspelling); + } + + foreach($static_misspellings as $word => $misspelling) { + if(!$misspellings[$word]) { + $misspellings[$word] = []; + } + $misspellings[$word] = array_merge($misspellings[$word], $misspelling); + } + + #print("
"); + # print_r($misspellings); + # print(""); + + return $misspellings; + } + + public function EnglishMisspellingsWords_dynamicData() { + $misspellings = []; + + $skip = [ + 'i.e', + ]; + + $left_space_misspelling_hash = [ + ',', + '.', + ')', + ]; + + $right_space_misspelling_hash = [ + '(', + ]; + + $alphas = range('a', 'z'); + $alphas = array_merge($alphas, range('0', '9')); + + foreach($left_space_misspelling_hash as $char) { + foreach($alphas as $alpha) { + $correct_string = $char . ' ' . $alpha; + $incorrect_string = $char . $alpha; + + if($char == '.') { + $incorrect_string = '[^A-Z0-1]' . $incorrect_string; + } + + if(!$misspellings[$correct_string]) { + $misspellings[$correct_string] = []; + } + + $misspellings[$correct_string][] = $incorrect_string; + } + } + + foreach($right_space_misspelling_hash as $char) { + foreach($alphas as $alpha) { + $correct_string = $alpha . ' ' . $char; + $incorrect_string = $alpha . $char; + + if(!$misspellings[$correct_string]) { + $misspellings[$correct_string] = []; + } + + $misspellings[$correct_string][] = $incorrect_string; + } + } + + return $misspellings; + } + + public function EnglishMisspellingsWords_staticData() { + return [ + ','=>[ + ' ,', + ',,', + ], + '.'=>[ + ' .', + ], + '!'=>[ + ' !', + ], + '?'=>[ + ' ?', + ], + '--'=>[ + '---', + '----', + '-----', + '------', + '-------', + '--------', + '[a-z0-9]--[a-z0-9]', + '[a-z0-9]- ', + ' -[a-z0-9]', + ], + ]; + } + } + +?> \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_A.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_A.php new file mode 100644 index 0000000..c7f0ed3 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_A.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_B.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_B.php new file mode 100644 index 0000000..88c5951 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_B.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_C.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_C.php new file mode 100644 index 0000000..64cf5f2 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_C.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_D.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_D.php new file mode 100644 index 0000000..ed538d5 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_D.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_E.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_E.php new file mode 100644 index 0000000..f903573 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_E.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_F.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_F.php new file mode 100644 index 0000000..daf1c2e --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_F.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_G.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_G.php new file mode 100644 index 0000000..55de9bd --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_G.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_H.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_H.php new file mode 100644 index 0000000..f17e209 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_H.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_I.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_I.php new file mode 100644 index 0000000..e161111 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_I.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_J.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_J.php new file mode 100644 index 0000000..a212d6c --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_J.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_K.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_K.php new file mode 100644 index 0000000..2e152d3 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_K.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_L.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_L.php new file mode 100644 index 0000000..80735b3 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_L.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_M.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_M.php new file mode 100644 index 0000000..b0261cc --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_M.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_N.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_N.php new file mode 100644 index 0000000..cf48a62 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_N.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_O.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_O.php new file mode 100644 index 0000000..7330051 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_O.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_P.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_P.php new file mode 100644 index 0000000..82aa3e9 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_P.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_Q.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_Q.php new file mode 100644 index 0000000..5a532c4 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_Q.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_R.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_R.php new file mode 100644 index 0000000..c44783a --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_R.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_S.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_S.php new file mode 100644 index 0000000..9462494 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_S.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_T.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_T.php new file mode 100644 index 0000000..91e4156 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_T.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_U.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_U.php new file mode 100644 index 0000000..cc4dc98 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_U.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_V.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_V.php new file mode 100644 index 0000000..b4f488f --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_V.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_W.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_W.php new file mode 100644 index 0000000..65ce318 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_W.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_X.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_X.php new file mode 100644 index 0000000..5343094 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_X.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_Y.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_Y.php new file mode 100644 index 0000000..13775ff --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_Y.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_Z.php b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_Z.php new file mode 100644 index 0000000..0a2a582 --- /dev/null +++ b/classes/Language/Words/IntensiveEnglishMisspellings/IntensiveEnglishMisspellingsWords_Z.php @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/classes/Networking/Cookie.php b/classes/Networking/Cookie.php index be5d3c0..58e8761 100644 --- a/classes/Networking/Cookie.php +++ b/classes/Networking/Cookie.php @@ -1,60 +1,52 @@ domain = $args[domain]; $this->time = $args[time]; $this->cleanser = $args[cleanser]; - $this->cookie = array(); - foreach ($_COOKIE as $cookie_key => $cookie_value) - { - $cleanser_args = array( + $this->cookie = []; + foreach ($_COOKIE as $cookie_key => $cookie_value) { + $cleanser_args = [ 'input'=>$cookie_key, - ); + ]; - $cleansed_key = $this->cleanser->CleanseInput_EscapeBitVariableChars($cleanse_input_utf8_args)[cleansedinput]; + $cleansed_key = $this->cleanser->CleanseInput_EscapeBitVariableChars($cleanse_input_utf8_args)['cleansedinput']; - $cleanser_args = array( + $cleanser_args = [ 'input'=>$cookie_value, - ); + ]; - $cleansed_value = $this->cleanser->CleanseInput_EscapeBitVariableChars($cleanse_input_utf8_args)[cleansedinput]; + $cleansed_value = $this->cleanser->CleanseInput_EscapeBitVariableChars($cleanse_input_utf8_args)['cleansedinput']; $this->cookie[$cleansed_key] = $cleansed_value; } $this->cookie = $_COOKIE; + + return TRUE; } - public function SetCookie($args) - { - $cookie_key = $args[key]; - $cookie_value = $args[value]; - $secure = $args[secure]; + public function SetCookie($args) { + $cookie_key = $args['key']; + $cookie_value = $args['value']; + $secure = $args['secure']; + $permanent = $args['permanent']; - if(isset($cookie_value)) - { - if(!$secure) - { - $secure = FALSE; - $cookie_time = $this->InsecureCookieExpirationTime(); - } - else - { - $cookie_time = $this->SecureCookieExpirationTime(); + if(isset($cookie_value)) { + if(!$secure && !$permanent) { + $cookie_time = $this->TemporaryCookieExpirationTime(); + } else { + $cookie_time = $this->PermanentCookieExpirationTime(); } - } - else - { + } else { $cookie_time = $this->DeleteCookieExpirationTime(); } @@ -67,36 +59,32 @@ public function SetCookie($args) $secure, $this->CookieHTTPOnlyOption() ); + + return TRUE; } - public function GetCookie($args) - { - $cookie_key = $args[cookie]; + public function GetCookie($args) { + $cookie_key = $args['cookie']; return $this->cookie[$cookie_key]; } - public function SecureCookieExpirationTime() - { - return $this->time->time + (4* 60 * 60); + public function PermanentCookieExpirationTime() { + return $this->time->time + (10 * 365 * 24 * 60 * 60); } - public function InsecureCookieExpirationTime() - { - return $this->time->time + (10 * 365 * 24 * 60 * 60); + public function TemporaryCookieExpirationTime() { + return $this->time->time + (4* 60 * 60); } - public function DeleteCookieExpirationTime() - { + public function DeleteCookieExpirationTime() { return (-1) * ($this->time->time + (10 * 365 * 24 * 60 * 60)); } - public function CookiePath() - { + public function CookiePath() { return '/'; } - public function CookieHTTPOnlyOption() - { + public function CookieHTTPOnlyOption() { return FALSE; } } diff --git a/classes/Networking/Domain.php b/classes/Networking/Domain.php index 9782dbc..e5673f3 100644 --- a/classes/Networking/Domain.php +++ b/classes/Networking/Domain.php @@ -49,13 +49,13 @@ public function GetPrimaryDomain($args) { $primary_domain .= 'http://'; } - if($args[www]) { + if($args['www']) { $primary_domain .= 'www.'; } - if($args[domain]) { + if($args['domain']) { $primary_domain .= $args['domain']; - } elseif($args[lowercased] || $args['lowercase']) { + } elseif($args['lowercased'] || $args['lowercase']) { $primary_domain .= $this->primary_domain_lowercased; } else { $primary_domain .= $this->primary_domain; diff --git a/classes/Networking/Handler.php b/classes/Networking/Handler.php index f4c81f3..04f8ff8 100644 --- a/classes/Networking/Handler.php +++ b/classes/Networking/Handler.php @@ -1,7 +1,6 @@ Construct_PresetAuthentication(); $this->Construct_ObjectsAndScripts(); $this->Construct_ScriptName(); - if($this->script_name) - { + + if($this->script_name) { $this->Construct_ScriptFileAndExtension(); $this->Construct_ScriptClassname(); $this->Construct_ScriptFormat(); $this->Construct_ScriptLocation(); $this->Construct_SocialMedia(); } + + return TRUE; } public function __destruct() { @@ -54,8 +55,8 @@ public function __destruct() { } public function Construct_SetErrorLogging() { - $this->error_logging = new ErrorLogging([handler=>$this]); - $this->issue_logging = new IssueLogging([handler=>$this]); + $this->error_logging = new ErrorLogging(['handler'=>$this]); + $this->issue_logging = new IssueLogging(['handler'=>$this]); return TRUE; } @@ -89,8 +90,7 @@ public function CheckSecurity() { $this->access = $authentication->access_granted; $this->redirect = $authentication->redirect; - if($this->script->script->isSecure()) - { + if($this->script->script->isSecure()) { $this->authentication->ReAuthenticate(); } } @@ -154,7 +154,10 @@ public function Construct_Language() { } public function Construct_Dictionaries() { - $dictionary = new Dictionary(['dbaccess'=>$this->db_access]); + $dictionary = new Dictionary([ + 'dbaccess'=>$this->db_access, + 'globals'=>$this->globals, + ]); return $this->dictionary = $dictionary; } @@ -212,9 +215,9 @@ public function Construct_ScriptName() { $permalink_id = (int)$this->query->Parameter(['parameter'=>'id']); if($permalink_id) { $assignment_record_args = [ - 'type'=>Assignment, + 'type'=>'Assignment', 'definition'=>[ - id=>$permalink_id, + 'id'=>$permalink_id, ], ]; @@ -222,14 +225,14 @@ public function Construct_ScriptName() { if($assignment && $assignment[0] && $assignment[0]['id']) { require('../classes/Database/ORM.php'); - $this->orm = new ORM([dbaccessobject=>$this->db_access]); + $this->orm = new ORM(['dbaccessobject'=>$this->db_access]); $assignment = $assignment[0]; $entry_records = $this->orm->SearchForEntries([ - fieldname=>'id', - fieldvalue=>$assignment['Childid'], - assignmentid=>$permalink_id, + 'fieldname'=>'id', + 'fieldvalue'=>$assignment['Childid'], + 'assignmentid'=>$permalink_id, ])[0]; $redirect_url = ''; @@ -248,7 +251,13 @@ public function Construct_ScriptName() { $redirect_url .= '/' . $entry_record['Code']; } - $redirect_url .= '/view.php'; + $action = $this->query->Parameter(['parameter'=>'action']); + + if($action == 'Edit') { + $redirect_url .= '/modify.php'; + } else { + $redirect_url .= '/view.php'; + } if($this->desired_action) { $redirect_url .= '?action=' . $this->desired_action; @@ -303,12 +312,13 @@ public function Construct_SocialMedia() { 'dbaccessobject'=>$this->db_access, 'authenticationobject'=>$this->authentication, 'globals'=>$this->globals, + 'cookie'=>$this->cookie, ]); - $google_token_id = $this->query->Parameter([parameter=>'google_token_id']); + $google_token_id = $this->query->Parameter(['parameter'=>'google_token_id']); $google_log_results = $this->google_api->AuthenticateOrDisauthenticateWithGoogle([ 'token'=>$google_token_id, - 'logout'=>$this->query->Parameter([parameter=>'logout']), + 'logout'=>$this->query->Parameter(['parameter'=>'logout']), ]); if($google_log_results['action'] == 'logout') { @@ -435,6 +445,10 @@ public function Construct_ScriptFormatLower_DetermineScriptFormatLower() { } public function HandleRequest() { + if($this->SecureRequired()) { + return $this->SecureRedirect(); + } + if(!$this->ValidateReferrals()) { return FALSE; } @@ -454,9 +468,26 @@ public function HandleRequest() { return TRUE; } + public function SecureRequired() { + if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === "off") { + if($_COOKIE['loggedin']) { + return TRUE; + } + } + + return FALSE; + } + + public function SecureRedirect() { + $location = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; + header('Location: ' . $location); + + return TRUE; + } + public function ValidateReferrals() { if(!$this->domain->ValidateReferringWebsite()) { - print("Error 403 - You done been smote."); + print('Error 403 - You done been smote.'); return FALSE; } @@ -481,40 +512,33 @@ public function HandleRequest_Content() { $shared_location = '../clonefrom.com' . $_SERVER['SCRIPT_URL']; - if(!is_file($client_location) && is_file($shared_location)) - { + if(!is_file($client_location) && is_file($shared_location)) { require('../classes/Networking/MIMEType.php'); $mimetype = new MIMEType; $mimetypes = $mimetype->GetMIMETypeCodes(); $desired_content_header = $mimetypes[$this->script_extension]; - if($desired_content_header) - { + if($desired_content_header) { $header_text = 'Content-type: ' . $desired_content_header . '; charset=utf-8'; header($header_text); } - if($desired_content_header == 'text/html') - { + if($desired_content_header == 'text/html') { return require($shared_location); - } - else - { + } else { return readfile($shared_location); } } - if(!is_file($this->script_location) || !$this->script_format) - { + if(!is_file($this->script_location) || !$this->script_format) { return FALSE; } $this->HandleRequest_Content_Format_GetFormatObject(); $this->script = $this->HandleRequest_Content_Format_InstantiateFormatObject(); - if($this->script->CanAccess()) - { + if($this->script->CanAccess()) { return $this->HandleRequest_Content_Format(); } @@ -524,22 +548,17 @@ public function HandleRequest_Content() { public function HandleRequest_Content_Format() { $this->CheckSecurity(); - if($this->access) - { - if(method_exists($this->script->script, $this->desired_action)) - { + if($this->access) { + if(method_exists($this->script->script, $this->desired_action)) { $desired_action = $this->desired_action; return $this->script->Display(); } - } - else - { - if($this->authentication->redirect) - { + } else { + if($this->authentication->redirect) { # handle security-triggered redirect $other_script_args = $this->HandleRequest_Content_Format_InstantiateFormatObject_PartialArgs(); - $other_script_args[redirect] = $this->script->redirect_object; + $other_script_args['redirect'] = $this->script->redirect_object; return ($this->authentication->RedirectToNewURL($other_script_args)); } } diff --git a/classes/Security/Authentication.php b/classes/Security/Authentication.php index 1341dfa..2c27559 100644 --- a/classes/Security/Authentication.php +++ b/classes/Security/Authentication.php @@ -1,7 +1,6 @@ db_access = $args[dbaccess]; $this->domain = $args[domain]; $this->cookie = $args[cookie]; @@ -26,11 +24,9 @@ public function __construct($args) $this->protocol = ''; } - public function Authenticate($args) - { + public function Authenticate($args) { $this->script = $args[script]; - if($this->script->script) - { + if($this->script->script) { $this->DetectHTTPS(); if($this->protocol == 'ssl') { @@ -104,8 +100,7 @@ public function Authenticate($args) } } - public function ReAuthenticate() - { + public function ReAuthenticate() { if(!$this->user_session) { $this->CheckCurrentAuthentication(); @@ -125,13 +120,11 @@ public function ReAuthenticate() return TRUE; } - public function RefreshAuthentication() - { + public function RefreshAuthentication() { return $this->Login_Successful([useraccount=>$this->user_account, refresh=>1]); } - public function CheckAuthenticationForCurrentObject() - { + public function CheckAuthenticationForCurrentObject() { if($this->CheckAuthenticationForCurrentObject_IsAdmin() || $this->CheckAuthenticationForCurrentObject_IsOwner()) { return TRUE; @@ -140,8 +133,7 @@ public function CheckAuthenticationForCurrentObject() return FALSE; } - public function CheckAuthenticationForCurrentObject_IsAdmin() - { + public function CheckAuthenticationForCurrentObject_IsAdmin() { if($this->user_session && $this->user_session['UserAdmin.id']) { return TRUE; @@ -150,28 +142,24 @@ public function CheckAuthenticationForCurrentObject_IsAdmin() return FALSE; } - public function CheckAuthenticationForCurrentObject_IsOwner() - { + public function CheckAuthenticationForCurrentObject_IsOwner() { return FALSE; } - public function CheckCurrentAuthentication() - { + public function CheckCurrentAuthentication() { $authentication_token = $this->cookie_token; - if(!$authentication_token) - { - $authentication_token = $this->cookie->GetCookie([cookie=>'AuthenticationToken']); + if(!$authentication_token) { + $authentication_token = $this->cookie->GetCookie(['cookie'=>'AuthenticationToken']); } - if($authentication_token) - { + if($authentication_token) { $user_session_record_args = [ - 'type'=>UserSession, + 'type'=>'UserSession', 'definition'=>[ - CookieToken=>$authentication_token, + 'CookieToken'=>$authentication_token, 'RAW'=>[ - LastAccess=>[ + 'LastAccess'=>[ '<', 'DATE_ADD(UserSession.LastAccess, INTERVAL 160 HOUR)', ], @@ -187,8 +175,7 @@ public function CheckCurrentAuthentication() ]; $user_session = $this->db_access->GetRecords($user_session_record_args); - if($user_session) - { + if($user_session) { $this->user_session = $user_session[0]; return TRUE; } @@ -197,8 +184,7 @@ public function CheckCurrentAuthentication() return 0; } - public function Login($args) - { + public function Login($args) { $username = $args[username]; $password = $args[password]; @@ -225,75 +211,70 @@ public function Login($args) $user_account = $this->db_access->GetRecords($user_record_args); - if($user_account) - { + if($user_account) { $this->user_account = $user_account; $login_successful_args = [ - useraccount=>$user_account, + 'useraccount'=>$user_account, ]; return $this->Login_Successful($login_successful_args); - } - else - { + } else { $login_failure_args = [ - username=>$username, - password=>$password, - hashedpassword=>$hashed_password, + 'username'=>$username, + 'password'=>$password, + 'hashedpassword'=>$hashed_password, ]; return $this->Login_Failure($login_failure_args); } } - public function Logout() - { + public function Logout() { + $user_session = $this->user_session; + $this->Logout_ResetCookie(); $this->Logout_ResetDatabase(); unset($this->user_session); unset($this->user_account); - return TRUE; + + return $user_session; } - public function Logout_ResetDatabase() - { - $authentication_token = $this->cookie->GetCookie([cookie=>'AuthenticationToken']); + public function Logout_ResetDatabase() { + $authentication_token = $this->cookie->GetCookie(['cookie'=>'AuthenticationToken']); $user_session_update_args = [ - type=>'UserSession', - update=>[ - CookieToken=>'', - LastAccess=>'00:00:00 0000-00-00', + 'type'=>'UserSession', + 'update'=>[ + 'CookieToken'=>'', + 'LastAccess'=>'00:00:00 0000-00-00', ], - where=>[ - CookieToken=>$authentication_token, + 'where'=>[ + 'CookieToken'=>$authentication_token, ], ]; return $this->db_access->UpdateRecord($user_session_update_args); } - public function Logout_ResetCookie() - { + public function Logout_ResetCookie() { $set_authentication_cookie_args = [ - secure=>TRUE, - key=>'AuthenticationToken', - value=>null, + 'secure'=>TRUE, + 'key'=>'AuthenticationToken', + 'value'=>null, ]; $this->cookie->SetCookie($set_authentication_cookie_args); } - public function GenerateCookieToken($args) - { + public function GenerateCookieToken($args) { return $this->GenerateCookieToken_Secure($args); } - public function GenerateCookieToken_Secure($args) - { - $user_account = $args[useraccount]; + public function GenerateCookieToken_Secure($args) { + $user_account = $args['useraccount']; $hash_values = []; - $hash_values[] = $user_account[Username]; + $hash_values[] = $user_account['Username']; $hash_values[] = $this->AuthenticationToken_Salt1(); $hash_values[] = $this->time->time; $hash_values[] = $this->AuthenticationToken_Salt2(); @@ -305,9 +286,9 @@ public function GenerateCookieToken_Secure($args) $this->base_object = $base_object; $convert_base_args = [ - value=>$hash_token, - startingbase=>'Hexadecimal', - endingbase=>'Base64', + 'value'=>$hash_token, + 'startingbase'=>'Hexadecimal', + 'endingbase'=>'Base64', ]; $hash_token_base64 = $base_object->ConvertBase($convert_base_args); @@ -315,18 +296,15 @@ public function GenerateCookieToken_Secure($args) return $hash_token_base64; } - public function AuthenticationToken_Salt1() - { + public function AuthenticationToken_Salt1() { return 'Ehtdetohda80d2)*08'; } - public function AuthenticationToken_Salt2() - { + public function AuthenticationToken_Salt2() { return ';d79d(:Ddaddhr]LS-'; } - public function GenerateCookieToken_Random() - { + public function GenerateCookieToken_Random() { $random_class_location = '../classes/Math/Random.php'; require($random_class_location); $this->random = new Random(); @@ -340,47 +318,42 @@ public function GenerateCookieToken_Random() return $cookie_token; } - public function Login_Successful($args) - { - $user_account = $args[useraccount]; + public function Login_Successful($args) { + $user_account = $args['useraccount']; $user_session = $this->user_session; $first_user_account = $user_account[0]; $userid = $first_user_account[id]; - if(!$userid) - { + if(!$userid) { $userid = $user_session['Userid']; } $cookie_token_args = [ - useraccount=>$first_user_account, + 'useraccount'=>$first_user_account, ]; $cookie_token = $this->GenerateCookieToken($cookie_token_args); - if(!$this->AllowMultipleDeviceLogin() || $args['refresh']) - { + if(!$this->AllowMultipleDeviceLogin() || $args['refresh']) { $user_session_where_args = [ - type=>UserSession, - definition=>[ - Userid=>$userid, + 'type'=>'UserSession', + 'definition'=>[ + 'Userid'=>$userid, ], - limit=>1, + 'limit'=>1, ]; - if($args['refresh']) - { + if($args['refresh']) { $user_session_where_args['definition']['CookieToken'] = $user_session['CookieToken']; } $user_session = $this->db_access->GetRecords($user_session_where_args); - if($user_session) - { + if($user_session) { $first_user_session = $user_session[0]; $new_user_session = $first_user_session; - $new_user_session[CookieToken] = $cookie_token; - $new_user_session[LastAccess] = 'NOW()'; + $new_user_session['CookieToken'] = $cookie_token; + $new_user_session['LastAccess'] = 'NOW()'; $user_session_update_args = [ type=>UserSession, @@ -405,8 +378,7 @@ public function Login_Successful($args) } } - if(!$user_session_returnable) - { + if(!$user_session_returnable) { $user_session_insert_args = [ type=>UserSession, definition=>[ @@ -442,8 +414,7 @@ public function Login_Successful($args) ]; } - public function Login_Failure($args) - { + public function Login_Failure($args) { $username = $args[username]; $password = $args[password]; $hashed_password = $args[hashed_password]; @@ -454,18 +425,15 @@ public function Login_Failure($args) ]; } - public function AllowMultipleDeviceLogin() - { + public function AllowMultipleDeviceLogin() { return TRUE; } - public function RedirectToNewURL($args) - { - $redirect_object = $args[redirect]; - unset($args[redirect]); + public function RedirectToNewURL($args) { + $redirect_object = $args['redirect']; + unset($args['redirect']); - switch($this->redirect_type) - { + switch($this->redirect_type) { case 'ssl': return $redirect_object->RedirectToSecuredConnection($args); break; @@ -482,14 +450,10 @@ public function RedirectToNewURL($args) return FALSE; } - public function DetectHTTPS() - { - if($_SERVER[HTTPS] == 'on') - { + public function DetectHTTPS() { + if($_SERVER['HTTPS'] == 'on') { $this->protocol = 'ssl'; - } - else - { + } else { $this->protocol = 'unencrypted'; } } diff --git a/clonefrom.com/crossword-puzzle-demo.html b/clonefrom.com/crossword-puzzle-demo.html index 429c2e3..88cb091 100644 --- a/clonefrom.com/crossword-puzzle-demo.html +++ b/clonefrom.com/crossword-puzzle-demo.html @@ -5,7 +5,6 @@ - @@ -15,1280 +14,24 @@ '); +// print(""); + + // Display Social Media Options + + // ------------------------------------------------------------- + + $social_media_share_links->display(); + + // Display Language Options + + // ------------------------------------------------------------- + + $languages->display(); + + // Display Final Ending Navigation + + // ------------------------------------------------------------- + + $bottom_navigation_args = [ + 'thispage'=>'Home', + ]; + $navigation->DisplayBottomNavigation($bottom_navigation_args); + +?> \ No newline at end of file diff --git a/templates/default/spellchecker/display_css.php b/templates/default/spellchecker/display_css.php new file mode 100644 index 0000000..1c2c2c1 --- /dev/null +++ b/templates/default/spellchecker/display_css.php @@ -0,0 +1,64 @@ +width/width-1percent.css +width/width-33percent.css +width/width-100percent.css +width/width-70percent.css +width/width-95percent.css +width/width-90percent.css +width/width-50percent.css +location/float-left.css +location/float-right.css +location/horizontal-center.css +location/horizontal-left.css +location/display-inline-block.css +cursor/cursor-pointer.css +location/clear-float.css +divider/overflow-auto.css +height/height-400px.css +height/height-75px.css +height/height-115px.css +height/height-50percent.css +list/hideable.css +background-color/background-color-gray13.css +background-color/background-color-gray10.css +background-color/background-color-6495ED.css +background-color/background-color-C2DFFF.css +list/arrow.css +image/flip-image.css +border/border-1px.css +border/border-2px.css +border/border-bottom-1px.css +spacing/margin-5px.css +spacing/margin-10px.css +spacing/padding-0px.css +spacing/padding-5px.css +spacing/padding-10px.css +spacing/padding-left-10px.css +spacing/padding-right-10px.css +spacing/padding-left-15px.css +spacing/padding-right-15px.css +spacing/margin-0px.css +spacing/margin-top-5px.css +spacing/margin-top-10px.css +spacing/margin-top-14px.css +spacing/margin-top-22px.css +spacing/padding-top-14px.css +spacing/padding-top-22px.css +spacing/margin-bottom-5px.css +spacing/margin-left-5px.css +spacing/margin-right-5px.css +spacing/margin-left-10px.css +spacing/margin-right-10px.css +location/vertical-center.css +spacing/margin-5px.css +spacing/margin-50px.css +spacing/margin-bottom-10px.css +spacing/padding-2px.css +spacing/margin-2px.css +width/width-50px.css +font/header-1.css +font/header-2.css +font/noselect.css +font/font-family-tahoma.css +font/font-family-arial.css +font/font-size-150percent.css +jquery.numberedtextarea.css \ No newline at end of file diff --git a/templates/default/spellchecker/display_javascript.php b/templates/default/spellchecker/display_javascript.php new file mode 100644 index 0000000..0ebf4f7 --- /dev/null +++ b/templates/default/spellchecker/display_javascript.php @@ -0,0 +1,4 @@ +jQueryRotate.js +list/hideable-arrow.js +link-clickable.js +spellchecker.js \ No newline at end of file diff --git a/templates/default/suggest/display.php b/templates/default/suggest/display.php index 1a0dda0..0ff833b 100644 --- a/templates/default/suggest/display.php +++ b/templates/default/suggest/display.php @@ -75,6 +75,53 @@ ]; $header->display($header_primary_args); + + // Start Top Bar + + // ------------------------------------------------------------- + + print('
Logged in as : ' . $username . ' (Logout)
'); + print('');
print('ADMIN, Suggestion Definition ::');
@@ -349,11 +392,11 @@
print('