From d8aa9efe1122e427f1db3736df0b6e9a4ddca831 Mon Sep 17 00:00:00 2001 From: kink Date: Wed, 25 Sep 2002 17:00:43 +0000 Subject: [PATCH] rg=0 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3730 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/squirrelspell/modules/check_me.mod | 6 ++++-- plugins/squirrelspell/modules/crypto.mod | 5 +++-- plugins/squirrelspell/modules/crypto_badkey.mod | 8 +++++++- plugins/squirrelspell/modules/forget_me.mod | 6 +++++- plugins/squirrelspell/modules/forget_me_not.mod | 6 +++++- plugins/squirrelspell/modules/lang_change.mod | 6 +++++- 6 files changed, 29 insertions(+), 8 deletions(-) diff --git a/plugins/squirrelspell/modules/check_me.mod b/plugins/squirrelspell/modules/check_me.mod index 3faa076c..41cfd15c 100644 --- a/plugins/squirrelspell/modules/check_me.mod +++ b/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: diff --git a/plugins/squirrelspell/modules/crypto.mod b/plugins/squirrelspell/modules/crypto.mod index 6dd1da97..e10a6065 100644 --- a/plugins/squirrelspell/modules/crypto.mod +++ b/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. diff --git a/plugins/squirrelspell/modules/crypto_badkey.mod b/plugins/squirrelspell/modules/crypto_badkey.mod index 6a192696..ff238204 100644 --- a/plugins/squirrelspell/modules/crypto_badkey.mod +++ b/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 diff --git a/plugins/squirrelspell/modules/forget_me.mod b/plugins/squirrelspell/modules/forget_me.mod index 06e6396b..59471e38 100644 --- a/plugins/squirrelspell/modules/forget_me.mod +++ b/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. diff --git a/plugins/squirrelspell/modules/forget_me_not.mod b/plugins/squirrelspell/modules/forget_me_not.mod index eda679ab..a70a3c64 100644 --- a/plugins/squirrelspell/modules/forget_me_not.mod +++ b/plugins/squirrelspell/modules/forget_me_not.mod @@ -15,7 +15,11 @@ * @author Konstantin Riabitsev ($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 diff --git a/plugins/squirrelspell/modules/lang_change.mod b/plugins/squirrelspell/modules/lang_change.mod index d0ea2b42..927d9bb9 100644 --- a/plugins/squirrelspell/modules/lang_change.mod +++ b/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(); -- 2.25.1