global $theme_css, $custom_css, $pageheader_sent;
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' .
- "\n\n" . html_tag( 'html' ,'' , '', '', '' ) . "\n<head>\n";
+ "\n\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) . "\n<head>\n";
if ( !isset( $custom_css ) || $custom_css == 'none' ) {
if ($theme_css != '') {
if ($squirrelmail_language == 'ja_JP') {
echo "<!-- \xfd\xfe -->\n";
- echo '<meta http-equuiv="Content-type" content="text/html; charset=euc-jp">' . "\n";
+ echo '<meta http-equiv="Content-type" content="text/html; charset=euc-jp">' . "\n";
}
if ($do_hook) {
if ($target != '') {
$target = " target=\"$target\"";
}
+ $hooktext = do_hook_function('internal_link',$text);
+ if ($hooktext != '')
+ $text = $hooktext;
return '<a href="'.$base_uri.$path.'"'.$target.'>'.$text.'</a>';
}
global $hide_sm_attributions, $PHP_SELF, $frame_top,
$compose_new_win, $compose_width, $compose_height,
$attachemessages, $provider_name, $provider_uri,
- $javascript_on;
+ $javascript_on, $default_use_mdn, $mdn_user_support;
sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION );
sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION );
switch ( $module ) {
case 'src/read_body.php':
$js ='';
+
+ // compose in new window code
if ($compose_new_win == '1') {
if (!preg_match("/^[0-9]{3,4}$/", $compose_width)) {
$compose_width = '640';
if (!preg_match("/^[0-9]{3,4}$/", $compose_height)) {
$compose_height = '550';
}
- $js .= "\n".'<script language="JavaScript" type="text/javascript">' .
- "\n<!--\n";
$js .= "function comp_in_new(comp_uri) {\n".
" if (!comp_uri) {\n".
' comp_uri = "'.$compose_uri."\";\n".
'"width='.$compose_width. ',height='.$compose_height.
',scrollbars=yes,resizable=yes");'."\n".
"}\n\n";
+ }
-
+ // javascript for sending read receipts
+ if($default_use_mdn && $mdn_user_support) {
$js .= 'function sendMDN() {'."\n".
- "mdnuri=window.location+'&sendreceipt=1';".
+ " mdnuri=window.location+'&sendreceipt=1'; ".
"var newwin = window.open(mdnuri,'right');".
"\n}\n\n";
+ }
- $js .= "// -->\n".
- "</script>\n";
-
- }
- displayHtmlHeader ('SquirrelMail', $js);
- $onload = $xtra;
+ // if any of the above passes, add the JS tags too.
+ if($js) {
+ $js = "\n".'<script language="JavaScript" type="text/javascript">' .
+ "\n<!--\n" . $js . "// -->\n</script>\n";
+ }
+
+ displayHtmlHeader ('SquirrelMail', $js);
+ $onload = $xtra;
break;
case 'src/compose.php':
$js = '<script language="JavaScript" type="text/javascript">' .
echo "</b></td>\n"
. " </tr>\n"
. html_tag( 'tr', '', '', $color[4] ) ."\n"
- . html_tag( 'td', '', 'left' ) ."\n";
+ . ($hide_sm_attributions ? html_tag( 'td', '', 'left', '', 'colspan="2"' )
+ : html_tag( 'td', '', 'left' ) )
+ . "\n";
$urlMailbox = urlencode($mailbox);
echo makeComposeLink('src/compose.php?mailbox='.$urlMailbox);
echo " \n";
do_hook('menuline');
- echo " </td>\n"
- . html_tag( 'td', '', 'right' ) ."\n";
- if (!isset($provider_uri)) $provider_uri= 'http://www.squirrelmail.org/';
- if (!isset($provider_name)) $provider_name= 'SquirrelMail';
- echo ($hide_sm_attributions ? ' ' :
- '<a href="'.$provider_uri.'" target="_blank">'.$provider_name.'</a>');
- echo "</td>\n".
- " </tr>\n".
+ echo " </td>\n";
+
+ if (!$hide_sm_attributions)
+ {
+ echo html_tag( 'td', '', 'right' ) ."\n";
+ if (!isset($provider_uri)) $provider_uri= 'http://www.squirrelmail.org/';
+ if (!isset($provider_name)) $provider_name= 'SquirrelMail';
+ echo '<a href="'.$provider_uri.'" target="_blank">'.$provider_name.'</a>';
+ echo "</td>\n";
+ }
+ echo " </tr>\n".
"</table><br>\n\n";
}