/* Always set up the language before calling these functions */
function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
+ global $squirrelmail_language;
if ( !sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) {
global $base_uri;
global $theme_css, $custom_css;
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' .
- "\n\n<html>\n<head>\n";
+ "\n\n" . html_tag( 'html' ,'' , '', '', '' ) . "\n<head>\n";
if ( !isset( $custom_css ) || $custom_css == 'none' ) {
if ($theme_css != '') {
$base_uri . 'themes/css/'.$custom_css.'" />';
}
+ if ($squirrelmail_language == 'ja_JP') {
+ echo "<!-- \xfd\xfe -->\n";
+ echo '<meta http-equuiv="Content-type" content="text/html; charset=euc-jp">' . "\n";
+ }
+
if ($do_hook) {
do_hook('generic_header');
}
"var e = document.forms[i].elements.length;\n".
"var j = 0;\n".
"while( pos == -1 && j < e ) {\n".
- "if ( document.forms[i].elements[j].type == 'text' ) {\n".
+ "if ( document.forms[i].elements[j].type == 'text' " .
+ "|| document.forms[i].elements[j].type == 'password' ) {\n".
"pos = j;\n".
"}\n".
"j++;\n".
displayInternalLink ("src/compose.php?mailbox=$urlMailbox", _("Compose"), 'right');
}
echo " \n";
- if (getPref($data_dir, $username,"vcard")==1) {
- displayInternalLink ('src/addressbook_vcard.php', _("Addresses"), 'right');
- } else {
displayInternalLink ('src/addressbook.php', _("Addresses"), 'right');
- }
echo " \n";
displayInternalLink ('src/folders.php', _("Folders"), 'right');
echo " \n";
echo "<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\" $onload>\n\n";
}
-?>
+
+?>
\ No newline at end of file