Pārlūkot izejas kodu

move variables that are loaded before environment is secured against rg=on

tokul 19 gadi atpakaļ
vecāks
revīzija
3926e84f88

+ 5 - 6
plugins/squirrelspell/sqspell_interface.php

@@ -16,6 +16,11 @@
  * @subpackage squirrelspell
  */
 
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../../include/init.php');
+
 /**
  * Set up a couple of non-negotiable constants and
  * defaults. Don't change these, * the setuppable stuff is in
@@ -24,12 +29,6 @@
 $SQSPELL_DIR='plugins/squirrelspell/';
 $SQSPELL_CRYPTO=FALSE;
 
-
-/**
- * Include the SquirrelMail initialization file.
- */
-require('../../include/init.php');
-
 include_once(SM_PATH . $SQSPELL_DIR . 'sqspell_functions.php');
 
 /**

+ 5 - 4
plugins/squirrelspell/sqspell_options.php

@@ -13,6 +13,11 @@
  * @subpackage squirrelspell
  */
 
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../../include/init.php');
+
 /**
  * Set a couple of constants and defaults. Don't change these,
  * the configurable stuff is in sqspell_config.php
@@ -22,10 +27,6 @@ $SQSPELL_DIR='plugins/squirrelspell/';
 $SQSPELL_CRYPTO=FALSE;
 
 
-/**
- * Include the SquirrelMail initialization file.
- */
-require('../../include/init.php');
 
 include_once(SM_PATH . $SQSPELL_DIR . 'sqspell_functions.php');