X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fpage_header.php;h=bf731b50f10be978eb8d89c9110bc1c0a7e9c197;hb=60090c1c671f69340d60d5d006bc0423a0009732;hp=a658c6e5122ab28effa0c5a86abfaa21a90735ad;hpb=98fb28fd4ec24a6026af074e879855ce36555bc5;p=squirrelmail.git diff --git a/functions/page_header.php b/functions/page_header.php index a658c6e5..bf731b50 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -18,6 +18,7 @@ require_once(SM_PATH . 'functions/global.php'); /* 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; @@ -36,6 +37,11 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE $base_uri . 'themes/css/'.$custom_css.'" />'; } + if ($squirrelmail_language == 'ja_JP') { + echo "\n"; + echo '' . "\n"; + } + if ($do_hook) { do_hook('generic_header'); } @@ -167,7 +173,8 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) { "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". @@ -315,4 +322,5 @@ function compose_Header($color, $mailbox) { echo "\n\n"; } -?> + +?> \ No newline at end of file