From 62b9c984ed731b7ac0678a98b133cd1369b9f435 Mon Sep 17 00:00:00 2001 From: tokul Date: Tue, 7 Sep 2004 13:46:36 +0000 Subject: [PATCH] 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 --- functions/page_header.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 != '') { -- 2.25.1