/** ** 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 "
"; echo " " . _("Sign Out") . ""; echo " | ";
echo " " . _("Current Folder: ") . "$shortBoxName ";
echo " | ";
echo "
"; echo " " . _("Compose") . "  "; echo " ". _("Addresses") ."  "; echo " " . _("Folders") . "  "; echo " " . _("Options") . "  "; echo " | "; echo " SquirrelMail"; echo " | "; echo "