add a much-needed space in the html
[squirrelmail.git] / plugins / mail_fetch / fetch.php
index 85753e690e0b1b35bf3e94bb7dbd0f2fd7ef67ce..22e1791ad2a72ca30d5a036462b5ef15df33ee72 100644 (file)
@@ -1,28 +1,41 @@
 <?php
 
-   /**
   **  mail_fetch/fetch.php
   **
   **  Copyright (c) 1999-2002 The SquirrelMail Project Team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Fetch code.
   **
   **  $Id$
   **/
+/**
* mail_fetch/fetch.php
+ *
* Copyright (c) 1999-2002 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Fetch code.
+ *
* $Id$
+ */
 
-    chdir('..');
-    define('SM_PATH','../');
+define('SM_PATH','../../');
 
-    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 . 'include/load_prefs.php');
-    require_once(SM_PATH . 'plugins/mail_fetch/class.POP3.php');
-    require_once(SM_PATH . 'functions/i18n.php');
-    require_once(SM_PATH . 'plugins/mail_fetch/functions.php' );
-    require_once(SM_PATH . 'functions/html.php' );
+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 . 'include/load_prefs.php');
+require_once(SM_PATH . 'plugins/mail_fetch/class.POP3.php');
+require_once(SM_PATH . 'functions/i18n.php');
+require_once(SM_PATH . 'plugins/mail_fetch/functions.php' );
+require_once(SM_PATH . 'functions/html.php' );
 
+    /* globals */ 
+    $username = $_SESSION['username'];
+    $key = $_COOKIE['key'];
+    $onetimepad = $_SESSION['onetimepad'];
+    $delimter = $_SESSION['delimiter'];
+
+    /* This form, like the advanced identities form
+       uses dynamic post variable names so we need
+       to extract the whole $_POST array to make 
+       things work
+    */
+
+    extract($_POST);
+    /* end globals */
 
     function Mail_Fetch_Status($msg) {
         echo html_tag( 'table',