displayHtmlHeader now takes a title as parameter (defaults to SquirrelMail).
[squirrelmail.git] / functions / page_header.php
index 8f8b4f1037c2caba7c5840b1364928396c6c4e9a..95a19741ed72fe4bd200fe9e49d6dd702d049c5b 100644 (file)
    if ($default_charset != "")
       header ("Content-Type: text/html; charset=$default_charset");
 
+   function displayHtmlHeader ($title="SquirrelMail") {
+      echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
+      echo "\n\n";
+      echo "<HTML>\n";
+      echo "<HEAD>\n";
+      echo "<TITLE>$title</TITLE>";
+      echo "</HEAD>\n\n";
+   }
+
    function displayPageHeader($color, $mailbox) {
+      displayHtmlHeader ($color);
+
+      printf('<BODY TEXT="%s" BGCOLOR="%s" LINK="%s" VLINK="%s" ALINK="%s">',
+             $color[8], $color[4], $color[7], $color[7], $color[7]);
+
       /** Here is the header and wrapping table **/
       $shortBoxName = readShortMailboxName($mailbox, ".");
       $shortBoxName = stripslashes($shortBoxName);