- echo "\n\n";
- echo "// Misses are all misspelled words
- var misses=new Array();\n";
- for ($i=0; $i<sizeof($missed_words); $i++){
+ echo "<html>\n".
+ "<head>\n".
+ '<title>' . _("SquirrelSpell Results") . '</title>';
+ if ($theme_css != '') {
+ echo "<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"$theme_css\">\n";
+ }
+ // Load the spelling errors into JavaScript arrays
+ echo "<script type=\"text/javascript\">\n".
+ "<!--\n";
+
+ $sqspell_lines = explode("\n", $sqspell_text);
+ // All lines of the message
+ echo "var sqspell_lines=new Array();\n";
+ for ($i=0; $i<sizeof($sqspell_lines); $i++){
+ echo "sqspell_lines[$i] = \"" . chop(addslashes($sqspell_lines[$i])) . "\";\n";
+ }
+
+ echo "\n\n";
+ // Misses are all misspelled words
+ echo "var misses=new Array();\n";
+ for ($i=0; $i<sizeof($missed_words); $i++){