2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 08/25/2003 *
4 * =================== Last change: 11/24/2004 *
6 * -------------------------------------------------------------------- *
8 * -------------------------------------------------------------------- *
9 * Short description : Outputs header HTML code, will not when frameset *
11 * -------------------------------------------------------------------- *
12 * Kurzbeschreibung : Gibt nur dann HTML-Code fuer den Kopf-Bereich *
13 * aus, wenn Frameset nicht aktiv ist *
14 * -------------------------------------------------------------------- *
17 * $Tag:: 0.2.1-FINAL $ *
19 * -------------------------------------------------------------------- *
20 * Copyright (c) 2003 - 2009 by Roland Haeder *
21 * Copyright (c) 2009 - 2011 by Mailer Developer Team *
22 * For more information visit: http://mxchange.org *
24 * This program is free software; you can redistribute it and/or modify *
25 * it under the terms of the GNU General Public License as published by *
26 * the Free Software Foundation; either version 2 of the License, or *
27 * (at your option) any later version. *
29 * This program is distributed in the hope that it will be useful, *
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
32 * GNU General Public License for more details. *
34 * You should have received a copy of the GNU General Public License *
35 * along with this program; if not, write to the Free Software *
36 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
38 ************************************************************************/
40 // Some security stuff...
41 if (!defined('__SECURITY')) {
46 $GLOBALS['page_header'] = '';
48 // Is the header already sent?
49 if (($GLOBALS['header_sent'] != 1) && ($GLOBALS['header_sent'] != 2)) {
50 // Set default HTTP status to "200 OK"
51 setHttpStatus('200 OK');
53 // If not in CSS mode generate the header
54 if (!isCssOutputMode()) {
55 // Prepare the header for HTML output
60 if ($GLOBALS['header_sent'] == '0') {
61 $GLOBALS['header_sent'] = 1;
65 // Add BODY tag or not?
66 if ((!isCssOutputMode()) && (!isRawOutputMode()) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestElementSet('frame')))) {
67 loadTemplate('page_body');
68 $GLOBALS['header_sent'] = 2;