浏览代码

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

tokul 19 年之前
父节点
当前提交
3926e84f88
共有 2 个文件被更改,包括 10 次插入10 次删除
  1. 5 6
      plugins/squirrelspell/sqspell_interface.php
  2. 5 4
      plugins/squirrelspell/sqspell_options.php

+ 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');