From: tokul Date: Tue, 7 Sep 2004 13:46:36 +0000 (+0000) Subject: adding option that allows html transitional or frameset doctype X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=62b9c984ed731b7ac0678a98b133cd1369b9f435;p=squirrelmail.git adding option that allows html transitional or frameset doctype git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8031 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/page_header.php b/functions/page_header.php index afbe6b89..5ed8469e 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -25,9 +25,10 @@ require_once(SM_PATH . 'functions/global.php'); * @param string title the page title, default SquirrelMail. * @param string xtra extra HTML to insert into the header * @param bool do_hook whether to execute hooks, default true + * @param bool frames generate html frameset doctype (since 1.5.1) * @return void */ -function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) { +function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = true, $frames = false ) { global $squirrelmail_language; if ( !sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) { @@ -35,8 +36,12 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE } global $theme_css, $custom_css, $pageheader_sent; - echo '' . - "\n\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) . "\n\n"; + if ($frames) { + echo ''; + } else { + echo ''; + } + echo "\n\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) . "\n\n"; if ( !isset( $custom_css ) || $custom_css == 'none' ) { if ($theme_css != '') {