<?php
/**
- * forget_me.mod
+ * forget_me.mod
* --------------
* Squirrelspell module
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2005 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.
+ * 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;
$words=sqspell_getWords();
$lang_words = sqspell_getLang($words, $sqspell_use_app);
$msg = '<p>'
- . sprintf(_("Deleting the following entries from <strong>%s</strong> dictionary:"), $sqspell_use_app)
+ . sprintf(_("Deleting the following entries from %s dictionary:"), '<strong>'.$sqspell_use_app.'</strong>')
. '</p>'
. "<ul>\n";
for ($i=0; $i<sizeof($words_ary); $i++){
* Remove word by word...
*/
$lang_words=str_replace("$words_ary[$i]\n", "", $lang_words);
- $msg .= "<li>$words_ary[$i]</li>\n";
+ $msg .= '<li>' . htmlspecialchars($words_ary[$i]) . "</li>\n";
}
$new_words_ary=split("\n", $lang_words);
/**
*/
$langs=sqspell_getSettings($words);
$words_dic = "# SquirrelSpell User Dictionary $SQSPELL_VERSION\n# "
- . "Last Revision: " . date("Y-m-d") . "\n# LANG: "
+ . "Last Revision: " . date("Y-m-d") . "\n# LANG: "
. join(", ", $langs) . "\n";
for ($i=0; $i<sizeof($langs); $i++){
/**
/**
* Click on some words first, Einstein!
*/
- sqspell_makePage(_("Personal Dictionary"), null,
- '<p>' . _("No changes requested.") . '</p>');
+ sqspell_makePage(_("Personal Dictionary"), null,
+ '<p>' . _("No changes requested.") . '</p>');
}
/**
* Local variables:
* mode: php
* End:
- */
-?>
+ * vim: syntax=php
+ */
+?>
\ No newline at end of file