/**
* 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:
/**
* 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.
* @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
* @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.
* @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
* @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();