X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ffilters%2Foptions.php;h=8056a83dc5cb2cefe04fc1a91ef8827be3ff8e34;hb=d95b10b37612d4ccb3712a90a3f9be85fd92910f;hp=58ecfddd5c8c59085183bbd315682ac8330559b9;hpb=f265009a3bf872cf6c9d9aaefe7949e1688555a0;p=squirrelmail.git
diff --git a/plugins/filters/options.php b/plugins/filters/options.php
index 58ecfddd..8056a83d 100644
--- a/plugins/filters/options.php
+++ b/plugins/filters/options.php
@@ -3,7 +3,7 @@
/**
* Message and Spam Filter Plugin - Filtering Options
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
@@ -11,22 +11,16 @@
*/
/**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
*/
-define('SM_PATH','../../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
-include_once(SM_PATH . 'functions/imap.php');
+require('../../include/init.php');
+include_once(SM_PATH . 'functions/imap_general.php');
+include_once(SM_PATH . 'functions/forms.php');
include_once(SM_PATH . 'plugins/filters/filters.php');
displayPageHeader($color, 'None');
/* get globals */
-sqgetGlobalVar('username', $username, SQ_SESSION);
-sqgetGlobalVar('key', $key, SQ_COOKIE);
-sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION);
sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
sqgetGlobalVar('theid', $theid);
@@ -104,8 +98,7 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) {
'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"'
) .
'