Back out support for using SM without Frames
[squirrelmail.git] / plugins / info / options.php
index 0578ffca419b833be9cfc279167c67eb43f8101e..9eb2ce69fdb6150fda84bc50b585e222885b5de9 100644 (file)
@@ -1,25 +1,50 @@
 <?PHP
 
-/* options page for IMAP info plugin 
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+/**
+ * options page for IMAP info plugin 
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *   
  * This is where it all happens :)
  *
  * Written by: Jason Munro 
  * jason@stdbev.com
+ * 
+ * $Id$
+ * @package plugins
+ * @subpackage info
  */
 
-chdir ('..');
-  require_once('../src/validate.php');
-  require_once('../functions/page_header.php');
-  require_once('../functions/imap.php');
-  require_once('../plugins/info/functions.php');
+/** @ignore */
+define('SM_PATH','../../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/page_header.php');
+require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'plugins/info/functions.php');
 
 global $username, $color, $folder_prefix, $default_charset;
 $default_charset = strtoupper($default_charset);
 displayPageHeader($color, 'None');
 $mailbox = 'INBOX';
+
+/* GLOBALS */
+sqgetGlobalVar('username', $username, SQ_SESSION);     
+sqgetGlobalVar('key', $key, SQ_COOKIE);     
+sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION);  
+
+sqgetGlobalVar('submit', $submit, SQ_POST);
+
+for($i = 0; $i <= 9; $i++){
+    $varc = 'CHECK_TEST_'.$i;
+    sqgetGlobalVar($varc, $$varc, SQ_POST);
+    $vart  = 'TEST_'.$i;
+    sqgetGlobalVar($vart, $$vart, SQ_POST);
+}
+
+/* END GLOBALS */
+
 $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 $caps_array = get_caps($imap_stream);
 $list = array (