X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fpage_header.php;h=7ea711d077d104ddff771755a0e8eeb39ea8e5f2;hb=fbecf05fbb1c46ab5e60d5156c179502571b5dbf;hp=cc347f2a34bf5f129b301134109a783e6fc642b3;hpb=5479d7092f359d69ca0186daf8cf399ef4d12922;p=squirrelmail.git
diff --git a/functions/page_header.php b/functions/page_header.php
index cc347f2a..7ea711d0 100644
--- a/functions/page_header.php
+++ b/functions/page_header.php
@@ -1,65 +1,293 @@
-
- /**
- ** page_header.php
- **
- ** Prints the page header (duh)
- **
- **/
-
- $page_header_php = true;
-
- if (!isset($prefs_php))
- include ("../functions/prefs.php");
- if (!isset($i18n_php))
- include ("../functions/i18n.php");
-
- // Check to see if gettext is installed
- if (function_exists("_")) {
- // Setting the language to use for gettext if it is not English
- // (the default language) or empty.
- $squirrelmail_language = getPref ($data_dir, $username, "language");
- if ($squirrelmail_language != "en" && $squirrelmail_language != "") {
- putenv("LANG=$squirrelmail_language");
- bindtextdomain("squirrelmail", "../locale/");
- textdomain("squirrelmail");
- $default_charset = $languages[$squirrelmail_language]["CHARSET"];
-
- // Setting cookie to use on the login screen the next time the
- // same user logs in.
- setcookie("squirrelmail_language", $squirrelmail_language,
- time()+2592000);
- }
- } else {
- function _($string) {
- return $string;
- }
- }
-
- // This is done to ensure that the character set is correct.
- if ($default_charset != "")
- header ("Content-Type: text/html; charset=$default_charset");
-
- function displayPageHeader($color, $mailbox) {
- /** Here is the header and wrapping table **/
- $shortBoxName = readShortMailboxName($mailbox, ".");
- $shortBoxName = stripslashes($shortBoxName);
- echo "