Update copyright
[squirrelmail.git] / plugins / squirrelspell / modules / edit_dic.mod
index dd4ea26d7c90e8f8256516eebbbb6bd2cc4e092f..7b570c26e44f9fc41a6b80f4e45cc3a05ae684b8 100644 (file)
@@ -1,15 +1,15 @@
 <?php
+
 /**
  * edit_dic.mod
- * -------------
- * Squirrelspell module
  *
- * Copyright (c) 1999-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
+ * Squirrelspell module
  *
  * This module lets the user edit his/her personal dictionary.
  *
- * @author Konstantin Riabitsev <icon@duke.edu>
+ * @author Konstantin Riabitsev <icon at duke.edu>
+ * @copyright 1999-2013 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage squirrelspell
@@ -61,8 +61,9 @@ foreach ($langs as $lang) {
         $msg .= "</td><td valign=\"top\">\n";
       }
       $msg .= "<input type=\"checkbox\" name=\"words_ary[]\" "
-        . 'value="'.htmlspecialchars($lang_words[$j]). '" /> '
-        . htmlspecialchars($lang_words[$j]) . "<br />\n";
+        . 'value="'.sm_encode_html_special_chars($lang_words[$j]). '" id="words_ary_'
+        . $j . '" /> <label for="words_ary_' . $j .'">'
+        . sm_encode_html_special_chars($lang_words[$j]) . "</label><br />\n";
     }
     $msg .= '</td></tr></table></td></tr>'
       . "<tr bgcolor=\"$color[0]\" align=\"center\"><td>"
@@ -89,5 +90,3 @@ sqspell_makePage(_("Edit your Personal Dictionary"), null, $msg);
  * End:
  * vim: syntax=php
  */
-
-?>
\ No newline at end of file