Missing close form tag
[squirrelmail.git] / plugins / squirrelspell / modules / lang_setup.mod
index c4be516b7da84274b0db4241e83cabb04404ec14..74fc24b6b1d64d8e27241715108f6721b24352c9 100644 (file)
@@ -9,7 +9,7 @@
  * him/her choose which ones s/he wants to check messages with.
  *
  * @author Konstantin Riabitsev <icon at duke.edu>
- * @copyright &copy; 1999-2005 The SquirrelMail Project Team
+ * @copyright 1999-2017 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -23,21 +23,23 @@ $msg = '<p>'
   . '</p>'
   . '<form method="post">'
   . '<input type="hidden" name="MOD" value="lang_change" />'
+  . '<input type="hidden" name="smtoken" value="' . sm_generate_security_token() . '" />'
   . '<blockquote><p>';
 /**
  * Present a nice listing.
  */
 $langs = sqspell_getSettings();
-$add = '<p>'
+$add = '<p><label for="lang_default">'
   . _("Make this dictionary my default selection:")
-  . " <select name=\"lang_default\">\n";
+  . "</label> <select name=\"lang_default\" id=\"lang_default\">\n";
 while (list($avail_lang, $junk) = each($SQSPELL_APP)){
   $msg .= "<input type=\"checkbox\" name=\"use_langs[]\" "
-    . "value=\"$avail_lang\"";
+    . "value=\"$avail_lang\" id=\"use_langs_$avail_lang\"";
   if (in_array($avail_lang, $langs)) {
     $msg .= ' checked="checked"';
   }
-  $msg .= ' /> ' . _($avail_lang) . "<br />\n";
+  $msg .= ' /> <label for="use_langs_' . $avail_lang . '">'
+    . _($avail_lang) . "</label><br />\n";
   $add .= "<option";
   if ($avail_lang==$langs[0]) {
     $add .= ' selected="selected"';
@@ -46,7 +48,7 @@ while (list($avail_lang, $junk) = each($SQSPELL_APP)){
 }
 $msg .= "</p>\n" . $add . "</select>\n";
 $msg .= "</p></blockquote><p><input type=\"submit\" value=\" "
-  . _("Make these changes") . " \" /></p>";
+  . _("Make these changes") . " \" /></p></form>";
 sqspell_makePage(_("Add International Dictionaries"), null, $msg);
 
 /**
@@ -56,5 +58,3 @@ sqspell_makePage(_("Add International Dictionaries"), null, $msg);
  * End:
  * vim: syntax=php
  */
-
-?>
\ No newline at end of file