$first should not cause e_notice errors, but it still can be abused
[squirrelmail.git] / src / view_header.php
index 7df97dc5e557d21102a07daceb7c56b7603e5c37..824c69f4ac1b52a31b786dd22367f3cb10617290 100644 (file)
@@ -3,11 +3,10 @@
 /**
  * view_header.php
  *
- * Copyright (c) 1999-2005 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.
  *
+ * @copyright © 1999-2005 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  */
@@ -27,6 +26,10 @@ require_once(SM_PATH . 'functions/url_parser.php');
 
 function parse_viewheader($imapConnection,$id, $passed_ent_id) {
 
+    $header_output = array();
+    $second = array();
+    $first = array();
+
     if (!$passed_ent_id) {
         $read=sqimap_run_command ($imapConnection, "FETCH $id BODY[HEADER]",
                               true, $a, $b, TRUE);
@@ -93,15 +96,15 @@ function view_header($header, $mailbox, $color) {
          _("Viewing Full Header") . '</b> - '.
          '<a href="';
     echo_template_var($ret_addr);
-    echo '">' ._("View message") . "</a></b></td></tr></table>\n";
+    echo '">' ._("View message") . "</a></td></tr></table>\n";
 
     echo_template_var($header,
         array(
             '<table width="99%" cellpadding="2" cellspacing="0" border="0" '.
                 "align=center>\n".'<tr><td>',
-            '<nobr><tt><b>',
+            '<tt style="white-space: nowrap;"><b>',
             '</b>',
-            '</tt></nobr>',
+            '</tt>',
             '</td></tr></table>'."\n"
          )
     );
@@ -130,4 +133,4 @@ $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox, false, false, t
 $header = parse_viewheader($imapConnection,$passed_id, $passed_ent_id);
 view_header($header, $mailbox, $color);
 
-?>
\ No newline at end of file
+?>