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 * Needs to be in all Files and every File needs "svn propset *
20 * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
21 * -------------------------------------------------------------------- *
22 * Copyright (c) 2003 - 2009 by Roland Haeder *
23 * For more information visit: http://www.mxchange.org *
25 * This program is free software; you can redistribute it and/or modify *
26 * it under the terms of the GNU General Public License as published by *
27 * the Free Software Foundation; either version 2 of the License, or *
28 * (at your option) any later version. *
30 * This program is distributed in the hope that it will be useful, *
31 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
33 * GNU General Public License for more details. *
35 * You should have received a copy of the GNU General Public License *
36 * along with this program; if not, write to the Free Software *
37 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
39 ************************************************************************/
41 // Some security stuff...
42 if (!defined('__SECURITY')) {
46 // Is the header already sent?
47 if (($GLOBALS['header_sent'] != 1) && ($GLOBALS['header_sent'] != 2)) {
48 // If not in CSS mode generate the header
49 if (getOutputMode() != 1) {
50 // Determine the page title
51 $content['header_title'] = determinePageTitle();
53 // Output page header code
54 loadTemplate('page_header', false, $content);
56 // Include meta data in 'guest' module
57 if (getModule() == 'index') {
58 // Load meta data template
59 loadTemplate('metadata');
61 // Add meta description to header
62 if ((isInstalled()) && (isAdminRegistered()) && (SQL_IS_LINK_UP())) {
63 // Add meta description not in admin and login module and when the script is installed
64 generateMetaDescriptionCode(getModule(), getWhat());
68 // Include more header data here
69 loadTemplate('header');
72 loadIncludeOnce('inc/stylesheet.php');
76 if (getOutputMode() != 1) outputHtml('</head>');
77 if ($GLOBALS['header_sent'] == '0') $GLOBALS['header_sent'] = 1;
80 // Add BODY tag or not?
81 if ((getOutputMode() != 1) && (getOutputMode() != -1) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestElementSet('frame')))) {
82 loadTemplate('page_body');
83 $GLOBALS['header_sent'] = 2;