($Author$) * @version $Date */ global $color; /** * Get the user dictionary and see if it's empty or not. */ $words=sqspell_getWords(); if (!$words){ /** * Agt. Smith: "You're empty." * Neo: "So are you." */ sqspell_makePage(_("Personal Dictionary"), null, '

' . _("No words in your personal dictionary.") . '

'); } else { /** * We're loaded with booty. */ $pre_msg = '

' . _("Please check any words you wish to delete from your dictionary.") . "

\n"; $pre_msg .= "\n"; /** * Get how many dictionaries this user has defined. */ $langs=sqspell_getSettings($words); for ($i=0; $i' . '' . "\n"; } } /** * Check if all dictionaries were empty. */ if (!$msg) { $msg = '

' . _("No words in your personal dictionary.") . '

'; } else { $msg .= '
" . sprintf( _("%s dictionary"), $langs[$i] ) . '
' . '
' . '' . '' . '' . '' . "
\n"; $words_ary=explode("\n", $lang_words); /** * There are two lines we need to remove: * 1st: # Language * last: # End */ array_pop($words_ary); array_shift($words_ary); /** * Do some fancy stuff to separate the words into three * columns. */ for ($j=0; $j\n"; } $msg .= " $words_ary[$j]
"; } $msg .= '
" . '' . '

' . "
'; } sqspell_makePage(_("Edit your Personal Dictionary"), null, $msg); } /** * For Emacs weenies: * Local variables: * mode: php * End: */ ?>