Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.58 KB | None | 0 0
  1. <?php
  2. /**
  3. * This file is part of
  4. * pragmaMx - Web Content Management System.
  5. * Copyright by pragmaMx Developer Team - http://www.pragmamx.org
  6. *
  7. * pragmaMx is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * $Revision: 1.19.2.10 $
  13. * $Author: tora60 $
  14. * $Date: 2008/01/29 00:41:42 $
  15. */
  16.  
  17. defined('mxMainFileLoaded') or die('access denied');
  18.  
  19. /**
  20. * definiert, dass diese Datei bereits includet wurde
  21. * nicht veraendern!
  22. */
  23. $GLOBALS['header_is_shown'] = true;
  24. $GLOBALS['header'] = 1;
  25.  
  26. /**
  27. * nur fuer nuke-Module noch drin!
  28. */
  29. global $PHP_SELF, $pagetitle;
  30.  
  31. /**
  32. * rechte Bloecke ausblenden oder nicht
  33. */
  34. if (defined('mxAdminFileLoaded')) {
  35. // in der Administration, die Bloecke NIE anzeigen
  36. $GLOBALS['index'] = 0;
  37. } else if (!empty($GLOBALS['vkpBlocksRight'])) {
  38. if ($GLOBALS['vkpBlocksRight'] == 1) {
  39. // Bloecke immer anzeigen
  40. $GLOBALS['index'] = 1;
  41. } else if ($GLOBALS['vkpBlocksRight'] == 2) {
  42. // Bloecke NIE anzeigen
  43. $GLOBALS['index'] = 0;
  44. }
  45. }
  46.  
  47. /**
  48. * Statistik aktualisieren
  49. */
  50. mxCounter();
  51.  
  52. /**
  53. * Onlineliste aktualisieren
  54. */
  55. online();
  56.  
  57. /**
  58. * das theme includen und die dort deklarierten Variablen in den globalen Scope importieren
  59. */
  60. $themevars = includetheme();
  61. foreach ($themevars as $key => $value) {
  62. global $$key;
  63. $$key = $value;
  64. }
  65.  
  66. /* falls kein Seitentitel angegeben wurde, diesen aus dem Modulnamen generieren */
  67. if (empty($pagetitle) && empty($GLOBALS['home']) && defined('MX_MODULE')) {
  68. $result = sql_query("SELECT custom_title FROM " . $GLOBALS['prefix'] . "_modules WHERE title='" . MX_MODULE . "' LIMIT 1");
  69. list($pagetitle) = sql_fetch_row($result);
  70. unset($result);
  71. }
  72. /* wenn kein Seitentitel, oder die Startseite, nur den Seitenname als Seitentitel anzeigen. */
  73. $pagetitle = (empty($pagetitle) || !empty($GLOBALS['home'])) ? $GLOBALS['sitename'] : $GLOBALS['sitename'] . " - " . $pagetitle;
  74. /* sicherstellen, dass der Seitentitel keine Tags enthaelt und Sonderzeichen nicht zerstueckelt werden */
  75. $pagetitle = strip_tags(str_replace('&nbsp;', ' ', $pagetitle));
  76.  
  77. /**
  78. * alter Mist, nur noch zur Kompatibilitaet mit alten vkp-Themes vorhanden
  79. */
  80. $VKPTheme = (empty($VKPTheme)) ? false : true;
  81.  
  82. /**
  83. * Die HTML-Ausgabe beginnen
  84. * Info zum Doctype:
  85. * - http://carsten-protsch.de/zwischennetz/doctype/einleitung.html
  86. */
  87. $GLOBALS['DOCTYPE'] = (empty($GLOBALS['DOCTYPE'])) ? 0 : intval($GLOBALS['DOCTYPE']);
  88. $doctype_arr = mxDoctypeArray($GLOBALS['DOCTYPE']);
  89. echo $doctype_arr['value'], "\n";
  90. if ($doctype_arr['xhtml']) {
  91. echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="', _DOC_LANGUAGE, '" lang="', _DOC_LANGUAGE, '" dir="', _DOC_DIRECTION, '">';
  92. } else {
  93. echo '<html lang="', _DOC_LANGUAGE, '" dir="', _DOC_DIRECTION, '">';
  94. }
  95.  
  96. /**
  97. * der HTML-Beginn und Seitentitel
  98. * die Metatags
  99. */
  100. ?>
  101. <head>
  102. <title><?php echo $pagetitle ?></title>
  103. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET ?>">
  104. <meta http-equiv="Content-Language" content="<?php echo _DOC_LANGUAGE ?>">
  105. <meta http-equiv="Content-Style-Type" content="text/css">
  106. <meta http-equiv="Content-Script-Type" content="text/javascript">
  107. <meta http-equiv="expires" content="0">
  108. <meta name="revisit-after" content="10 DAYS">
  109. <meta name="robots" content="INDEX, FOLLOW">
  110. <meta name="resource-type" content="DOCUMENT">
  111. <meta name="distribution" content="GLOBAL">
  112. <meta name="rating" content="general">
  113. <meta name="author" content="<?php echo htmlentities(strip_tags($GLOBALS['sitename'])) ?>">
  114. <meta name="keywords" content="<?php echo htmlentities($GLOBALS['metakeywords']) ?>, <?php echo MX_VERSION ?>">
  115. <meta name="generator" content="<?php echo MX_VERSION ?> - by http://pragmaMx.org">
  116. <meta name="copyright" content="Copyright (c) <?php echo Date("Y") ?> by <?php echo htmlentities(strip_tags($GLOBALS['sitename'])) ?>">
  117. <meta name="description" content="<?php echo htmlentities(strip_tags($GLOBALS['slogan'])) ?>">
  118. <?php
  119. if (!empty($GLOBALS['mxGoogleMetaVeri'])) {
  120. echo '<meta name="verify-v1" content="' . htmlentities($GLOBALS['mxGoogleMetaVeri']) . '">';
  121. }
  122.  
  123. /**
  124. * Zusaetze aus den Modulen und Themes
  125. * Bloecke werden evtl. erst in der footer.php beruecksichtigt,
  126. * dort wird die Funktion nochmals aufgerufen, falls etwas dazu gekommen ist.
  127. */
  128. pmxHeader::show();
  129.  
  130. /* Platzhalter fuer spaetere Ersetzungen in der footer.php */
  131. echo '<!-- pmx~header~' . MX_TIME . '~pmx -->';
  132.  
  133. /**
  134. * das favicon, versuchen aus dem Theme zu holen, wenn nicht...
  135. */
  136. if (@file_exists('favicon.ico')) {
  137. echo '<link rel="shortcut icon" href="', MX_BASE_URL, 'favicon.ico" type="image/x-icon">', "\n";
  138. } else if (@file_exists(MX_THEME_DIR . '/images/favicon.ico')) {
  139. echo '<link rel="shortcut icon" href="', MX_BASE_URL, MX_THEME_DIR . '/images/favicon.ico" type="image/x-icon">', "\n";
  140. }
  141.  
  142. /**
  143. * die globale CSS-Datei des Themes muss immer vorhanden sein,
  144. * weitere koennen problemlos ueber die pmxHeader-Klasse eingebunden werden
  145. */
  146. echo '<link rel="stylesheet" href="', MX_THEME_DIR, '/style/style.css" type="text/css">', "\n";
  147.  
  148. /**
  149. * zusaetzliche Datei fuer benutzerdefinierte Zusaetze im HTML-Headerbereich
  150. */
  151. include('includes/my_header.php');
  152.  
  153. /**
  154. * HTML-Header Bereich beenden
  155. * - weiter geht es mit dem body-Tag in der Funktion themeheader()
  156. */
  157. echo "\n
  158. <link href="http://colibriventura.com/modules/Gallery/themes_styles/dyna__mx-port__colibri_kiss.css" rel="stylesheet" type="text/css" >
  159. <script type="text/javascript" src="modules/Gallery/scripts.js"></script>
  160.  
  161. </head>\n";
  162.  
  163. /**
  164. * den Siteservice als erstes anzeigen
  165. */
  166. if (!empty($GLOBALS['mxSiteService']) || !empty($GLOBALS['mxDebugService'])) {
  167. mxSiteService();
  168. }
  169.  
  170. /**
  171. * der Seitenkopf des Themes,
  172. * evtl. mit Ausgabe der linken Bloecke in nuke-styled Thems
  173. */
  174. themeheader();
  175.  
  176. /**
  177. * Ausgabe der oberen Center-Bloecke in nuke-styled Themes
  178. */
  179. if (!empty($GLOBALS['home']) && !$VKPTheme) {
  180. blocks('center');
  181. }
  182.  
  183.  
  184.  
  185.  
  186. /* __________________________________________________________________________ */
  187. /**
  188. * kompatibilitaet zu < nuke-themes
  189. */
  190. function themecenterbox($title, $content, $block = array())
  191. {
  192. if (function_exists ('thememiddlebox')) {
  193. /**
  194. * In pragmaMx Themes existiert normalerweise diese Funktion und wird stattdessen verwendet
  195. */
  196. thememiddlebox($title, $content, $block);
  197. } else {
  198. OpenTable();
  199. echo '<div class="title">', $title, '</div><br>', "\n", '<div class="content">', $content, "</div>\n";
  200. CloseTable();
  201. echo '<br>';
  202. }
  203. }
  204.  
  205. /**
  206. * kompatibilitaet zu < VKP-Maxi-themes
  207. */
  208. if (!function_exists('OpenTableAl')) {
  209. /**
  210. * In pragmaMx Themes existiert normalerweise diese Funktion und wird stattdessen verwendet
  211. */
  212. function OpenTableAl()
  213. {
  214. global $bgcolor1;
  215. echo '<table width="80%" border="1" cellspacing="1" cellpadding="0" bgcolor="#ff0000" align="center">
  216. <tr><td><table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="', $bgcolor1, '">
  217. <tr><td>
  218. ';
  219. }
  220. }
  221.  
  222. /**
  223. * kompatibilitaet zu < VKP-Maxi-themes
  224. */
  225. if (!function_exists('CloseTableAl')) {
  226. /**
  227. * In pragmaMx Themes existiert normalerweise diese Funktion und wird stattdessen verwendet
  228. */
  229. function CloseTableAl()
  230. {
  231. echo '</td></tr></table>
  232. </td></tr></table>
  233. ';
  234. }
  235. }
  236.  
  237. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement