Back out support for using SM without Frames
[squirrelmail.git] / plugins / info / options.php
index 0e8ca49dcec6c270814531592cd117f8b139a16a..9eb2ce69fdb6150fda84bc50b585e222885b5de9 100644 (file)
@@ -1,16 +1,22 @@
 <?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('..');
-define('SM_PATH','../');
+
+/** @ignore */
+define('SM_PATH','../../');
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'include/validate.php');
@@ -22,6 +28,23 @@ 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 (