Thijs Kinkhorst 23 年之前
父節點
當前提交
31dfbd1dac

+ 4 - 2
plugins/squirrelspell/modules/check_me.mod

@@ -36,8 +36,10 @@ function SpellLink($jscode, $title, $link) {
 /**
  * Declaring globals for users with E_ALL set.
  */
-global $sqspell_text, $SQSPELL_APP, $sqspell_use_app, $attachment_dir,
-  $username, $SQSPELL_EREG, $color;
+global $SQSPELL_APP, $attachment_dir, $SQSPELL_EREG, $color;
+
+$sqspell_text = $_POST['sqspell_text'];
+$sqspell_use_app = $_POST['sqspell_use_app'];
 
 /**
  * Now we explode the lines for three reasons:

+ 3 - 2
plugins/squirrelspell/modules/crypto.mod

@@ -19,8 +19,9 @@
 /**
  * Declaring globals for E_ALL
  */
-global $action, $SQSPELL_CRYPTO;
-switch ($action){
+global $SQSPELL_CRYPTO;
+
+switch ($_POST['action']){
   case 'encrypt':
     /**
      * Let's encrypt the file and save it in an encrypted format.

+ 7 - 1
plugins/squirrelspell/modules/crypto_badkey.mod

@@ -16,7 +16,13 @@
  * @version $Date$
  */
 
-global $delete_words, $SCRIPT_NAME, $old_key;
+global $SCRIPT_NAME;
+
+$delete_words = $_POST['delete_words'];
+if(isset($_POST['old_key'])) {
+    $old_key = $_POST['old_key'];
+}
+
 if ($delete_words=='ON'){
   /**
    * $delete_words is passed via the query_string. If it's set, then

+ 5 - 1
plugins/squirrelspell/modules/forget_me.mod

@@ -16,7 +16,11 @@
  * @version $Date$
  */
 
-global $words_ary, $sqspell_use_app, $SQSPELL_VERSION;
+global $SQSPELL_VERSION;
+
+$words_ary = $_POST['words_ary'];
+$sqspell_use_app = $_POST['sqspell_use_app'];
+
 /**
  * If something needs to be deleted, then $words_ary will be
  * non-zero length.

+ 5 - 1
plugins/squirrelspell/modules/forget_me_not.mod

@@ -15,7 +15,11 @@
  * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
  */
 
-global $words, $SQSPELL_VERSION, $SQSPELL_APP_DEFFAULT, $sqspell_use_app;
+global $SQSPELL_VERSION, $SQSPELL_APP_DEFFAULT;
+
+$words = $_POST['words'];
+$sqspell_use_app = $_POST['sqspell_use_app'];
+
 /**
  * Because of the nature of Javascript, there is no way to efficiently
  * pass an array. Hence, the words will arrive as a string separated by

+ 5 - 1
plugins/squirrelspell/modules/lang_change.mod

@@ -16,7 +16,11 @@
  * @version $Date$
  */
 
-global $use_langs, $lang_default, $SQSPELL_APP_DEFAULT;
+global $SQSPELL_APP_DEFAULT;
+
+$use_langs = $_POST['use_langs'];
+$lang_default = $_POST['lang_default'];
+
 $words = sqspell_getWords();
 if (!$words) {
   $words = sqspell_makeDummy();