* the message to the spell-checker, parses the output, and loads
* the interface window.
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
/**
for($i=1; $i<=2; $i++){
while(!feof($pipes[$i]))
array_push($sqspell_output, rtrim(fgetss($pipes[$i],999),"\n"));
- fclose($pipes[$i]);
+ fclose($pipes[$i]);
}
$sqspell_exitcode=proc_close($spell_proc);
} else {
if (!$SQSPELL_EREG("\n$sqspell_word\n", $words)){
$sqspell_symb=intval($tmparray[2])-1;
if (!isset($misses[$sqspell_word])) {
- $misses[$sqspell_word] = '_NONE';
- $missed_words[$errors] = $sqspell_word;
- $errors++;
+ $misses[$sqspell_word] = '_NONE';
+ $missed_words[$errors] = $sqspell_word;
+ $errors++;
}
if (isset($locations[$sqspell_word])) {
- $locations[$sqspell_word] .= ', ';
+ $locations[$sqspell_word] .= ', ';
} else {
- $locations[$sqspell_word] = '';
- }
+ $locations[$sqspell_word] = '';
+ }
$locations[$sqspell_word] .= "$current_line:$sqspell_symb";
}
break;
<tr>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="3" width="100%">
- <tr align="center" bgcolor="<?php echo $color[9] ?>">
+ <tr align="center" bgcolor="<?php echo $color[9] ?>">
<?php
- SpellLink('sqspellChange()',
- _("Change this word"),
- _("Change"));
- SpellLink('sqspellChangeAll()',
- _("Change ALL occurances of this word"),
- _("Change All"));
- SpellLink('sqspellIgnore()',
- _("Ignore this word"),
- _("Ignore"));
- SpellLink('sqspellIgnoreAll()',
- _("Ignore ALL occurances this word"),
- _("Ignore All"));
- SpellLink('sqspellRemember()',
- _("Add this word to your personal dictionary"),
- _("Add to Dic"));
+ SpellLink('sqspellChange()',
+ _("Change this word"),
+ _("Change"));
+ SpellLink('sqspellChangeAll()',
+ _("Change ALL occurances of this word"),
+ _("Change All"));
+ SpellLink('sqspellIgnore()',
+ _("Ignore this word"),
+ _("Ignore"));
+ SpellLink('sqspellIgnoreAll()',
+ _("Ignore ALL occurances this word"),
+ _("Ignore All"));
+ SpellLink('sqspellRemember()',
+ _("Add this word to your personal dictionary"),
+ _("Add to Dic"));
?>
</tr>
</table>
* End:
* vim: syntax=php et ts=4
*/
-?>
+?>
\ No newline at end of file
* ---------------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This module handles the encryption/decryption of the user dictionary
* if the user so chooses from the options page.
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
/**
* ------------------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This module tries to decrypt the user dictionary with a newly provided
- * old password, or erases the file if everything else fails. :(
+ * old password, or erases the file if everything else fails. :(
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
global $SCRIPT_NAME;
* -------------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This module lets the user edit his/her personal dictionary.
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
global $color;
* Neo: "So are you."
*/
sqspell_makePage(_("Personal Dictionary"), null,
- '<p>' . _("No words in your personal dictionary.")
- . '</p>');
+ '<p>' . _("No words in your personal dictionary.")
+ . '</p>');
} else {
/**
* We're loaded with booty.
* "header" message.
*/
if (!isset($msg) || !$msg) {
- $msg = $pre_msg;
+ $msg = $pre_msg;
}
$msg .= "<tr bgcolor=\"$color[0]\" align=\"center\"><th>"
- . sprintf( _("%s dictionary"), $langs[$i] ) . '</th></tr>'
- . '<tr><td align="center">'
- . '<form method="post">'
- . '<input type="hidden" name="MOD" value="forget_me" />'
- . '<input type="hidden" name="sqspell_use_app" value="'
- . $langs[$i] . '" />'
- . '<table border="0" width="95%" align="center">'
- . '<tr>'
- . "<td valign=\"top\">\n";
+ . sprintf( _("%s dictionary"), $langs[$i] ) . '</th></tr>'
+ . '<tr><td align="center">'
+ . '<form method="post">'
+ . '<input type="hidden" name="MOD" value="forget_me" />'
+ . '<input type="hidden" name="sqspell_use_app" value="'
+ . $langs[$i] . '" />'
+ . '<table border="0" width="95%" align="center">'
+ . '<tr>'
+ . "<td valign=\"top\">\n";
$words_ary=explode("\n", $lang_words);
/**
* There are two lines we need to remove:
* columns.
*/
for ($j=0; $j<sizeof($words_ary); $j++){
- if ($j==intval(sizeof($words_ary)/3)
- || $j==intval(sizeof($words_ary)/3*2)){
- $msg .= "</td><td valign=\"top\">\n";
- }
- $msg .= "<input type=\"checkbox\" name=\"words_ary[]\" "
- . 'value="'.htmlspecialchars($words_ary[$j]). '" /> '
- . htmlspecialchars($words_ary[$j]) . "<br />\n";
+ if ($j==intval(sizeof($words_ary)/3)
+ || $j==intval(sizeof($words_ary)/3*2)){
+ $msg .= "</td><td valign=\"top\">\n";
+ }
+ $msg .= "<input type=\"checkbox\" name=\"words_ary[]\" "
+ . 'value="'.htmlspecialchars($words_ary[$j]). '" /> '
+ . htmlspecialchars($words_ary[$j]) . "<br />\n";
}
$msg .= '</td></tr></table></td></tr>'
- . "<tr bgcolor=\"$color[0]\" align=\"center\"><td>"
- . '<input type="submit" value="' . _("Delete checked words")
- . '" /></form>'
- . '</td></tr><tr><td><hr />'
- . "</td></tr>\n";
+ . "<tr bgcolor=\"$color[0]\" align=\"center\"><td>"
+ . '<input type="submit" value="' . _("Delete checked words")
+ . '" /></form>'
+ . '</td></tr><tr><td><hr />'
+ . "</td></tr>\n";
}
}
/**
* Check if all dictionaries were empty.
*/
- if (!$msg) {
+ if (! isset($msg)) {
$msg = '<p>' . _("No words in your personal dictionary.") . '</p>';
} else {
$msg .= '</table>';
* --------------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This module shows the user a nice invitation to encrypt or decypt
* his/her personal dictionary and explains the caveats of such a decision.
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
global $SQSPELL_CRYPTO;
. '</form>';
}
sqspell_makePage(_("Personal Dictionary Crypto Settings"),
- "crypto_settings.js", $msg);
+ "crypto_settings.js", $msg);
/**
* For Emacs weenies:
* --------------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This module deletes the words from the user dictionary. Called
* after EDIT_DIC module.
*
- * $Id$
+ *
*
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
global $SQSPELL_VERSION;
* Click on some words first, Einstein!
*/
sqspell_makePage(_("Personal Dictionary"), null,
- '<p>' . _("No changes requested.") . '</p>');
+ '<p>' . _("No changes requested.") . '</p>');
}
/**
* ------------------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This module saves the added words into the user dictionary. Called
* after CHECK_ME module.
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
global $SQSPELL_VERSION, $SQSPELL_APP_DEFAULT;
$lang_words=sqspell_getLang($words, $langs[$i]);
if ($langs[$i]==$sqspell_use_app){
if (!$lang_words) {
- $lang_words="# $langs[$i]\n";
+ $lang_words="# $langs[$i]\n";
}
$lang_words .= $new_words;
}
<?php
-
- /**
- ** index.php -- Displays the main frameset
- **
- ** Copyright (c) 1999-2004 The SquirrelMail development team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** Redirects to the login page.
- **
- ** $Id$
- * @package plugins
- * @subpackage squirrelspell
- **/
-
- header("Location:../../../src/login.php\n\n");
- exit();
-
-?>
+/**
+ * index.php -- Displays the main frameset
+ *
+ * Copyright (c) 1999-2004 The SquirrelMail development team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Redirects to the login page.
+ *
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
+ */
+header("Location:../../../src/login.php\n\n");
+exit();
+?>
\ No newline at end of file
* ---------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Initial loading of the popup window interface.
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
/**
* ----------------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This module changes the international dictionaries selection
* for the user. Called after LANG_SETUP module.
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
global $SQSPELL_APP_DEFAULT;
* to make the default dictionary first in line.
*/
if (in_array($lang_default, $use_langs)){
- /**
- * See if the user was dumb and chose a default dictionary
- * to be something other than the ones he selected.
- */
- $hold = array_shift($use_langs);
- $lang_string = join(", ", $use_langs);
- $lang_string = str_replace("$lang_default", "$hold", $lang_string);
- $lang_string = $lang_default . ", " . $lang_string;
+ /**
+ * See if the user was dumb and chose a default dictionary
+ * to be something other than the ones he selected.
+ */
+ $hold = array_shift($use_langs);
+ $lang_string = join(", ", $use_langs);
+ $lang_string = str_replace("$lang_default", "$hold", $lang_string);
+ $lang_string = $lang_default . ", " . $lang_string;
} else {
- /**
- * Yes, he is dumb.
- */
- $lang_string = join(', ', $use_langs);
+ /**
+ * Yes, he is dumb.
+ */
+ $lang_string = join(', ', $use_langs);
}
} else {
/**
}
$old_lang_string = join(", ", $langs);
$words = str_replace("# LANG: $old_lang_string", "# LANG: $lang_string",
- $words);
+ $words);
/**
* Write it down where the sun don't shine.
*/
sqspell_writeWords($words);
sqspell_makePage(_("International Dictionaries Preferences Updated"),
- null, $msg);
+ null, $msg);
/**
* For Emacs weenies:
* End:
* vim: syntax=php
*/
-?>
+?>
\ No newline at end of file
* ---------------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This module displays available dictionaries to the user and lets
* him/her choose which ones s/he wants to check messages with.
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
global $SQSPELL_APP;
* options_main.mod
* ----------------
* Squirrelspell module
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Default page called when accessing SquirrelSpell's options.
*
- * $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
+ * @author Konstantin Riabitsev <icon@duke.edu>
+ * @version $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
global $SQSPELL_APP;