Displaying and fixing some XHTML
[squirrelmail.git] / src / view_header.php
index 29055934efb9555e0b43449607bc0f04652757a8..030eb869aa68c6c97855417bc7b95102bda9662b 100644 (file)
@@ -3,16 +3,19 @@
 /**
  * view_header.php
  *
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * This is the code to view the message header.
  *
- * $Id$
+ * @version $Id$
  * @package squirrelmail
  */
 
-/** Path for SquirrelMail required files. */
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
 define('SM_PATH','../');
 
 /* SquirrelMail required files. */
@@ -23,16 +26,15 @@ require_once(SM_PATH . 'functions/html.php');
 require_once(SM_PATH . 'functions/url_parser.php');
 
 function parse_viewheader($imapConnection,$id, $passed_ent_id) {
-    global $uid_support;
 
     $header_full = array();
     if (!$passed_ent_id) {
         $read=sqimap_run_command ($imapConnection, "FETCH $id BODY[HEADER]", 
-                              true, $a, $b, $uid_support);
+                              true, $a, $b, TRUE);
     } else {
         $query = "FETCH $id BODY[".$passed_ent_id.'.HEADER]';
         $read=sqimap_run_command ($imapConnection, $query, 
-                              true, $a, $b, $uid_support);
+                              true, $a, $b, TRUE);
     }    
     $cnum = 0;
     for ($i=1; $i < count($read); $i++) {
@@ -103,7 +105,7 @@ function view_header($header, $mailbox, $color) {
            '</tt></nobr>',
            '</td></tr></table>'."\n" 
          ) );
-    noframes_bottom();
+    echo '</body></html>';
 }
 
 /* get global vars */