home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / akce / web / unitednuke / unitednuke.exe / html / header.php < prev    next >
PHP Script  |  2004-08-06  |  3KB  |  64 lines

  1. <?php
  2.  
  3. /************************************************************************/
  4. /* PHP-NUKE: Advanced Content Management System                         */
  5. /* ============================================                         */
  6. /*                                                                      */
  7. /* Copyright (c) 2002 by Francisco Burzi                                */
  8. /* http://phpnuke.org                                                   */
  9. /*                                                                      */
  10. /* This program is free software. You can redistribute it and/or modify */
  11. /* it under the terms of the GNU General Public License as published by */
  12. /* the Free Software Foundation; either version 2 of the License.       */
  13. /************************************************************************/
  14.  
  15. if (eregi("header.php",$_SERVER['PHP_SELF'])) {
  16.     Header("Location: index.php");
  17.     die();
  18. }
  19.  
  20. require_once("mainfile.php");
  21.  
  22. un_update_system_alert();
  23. ##################################################
  24. # Include some common header for HTML generation #
  25. ##################################################
  26.  
  27. $header = 1;
  28.  
  29. function head() {
  30.     global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle, $url, $name, $op;
  31.     $ThemeSel = get_theme();
  32.     include("themes/$ThemeSel/theme.php");
  33.     echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
  34.     echo "<html "._HTML_PARAMS.">\n";
  35.     echo "<head>\n";
  36.     echo "<title>$sitename $pagetitle</title>\n";
  37.  
  38.     include("includes/meta.php");
  39.     include("includes/javascript.php");
  40.  
  41.     if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
  42.     echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
  43.     }
  44.     echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">";
  45.     include("includes/my_header.php");
  46.     echo "\n\n\n</head>\n\n";
  47.     themeheader();
  48.     //hlavicka pro Splatt forum
  49.     if ((ereg('Splatt',$name)) OR (ereg('Splatt',$op)))
  50.     {
  51.     include "modules/Splatt_Forums/class.overlib_header.php"; //vlozi specialni hlavicku pro Splatt forum
  52.     }
  53. }
  54.  
  55. online();
  56. head();
  57. include("includes/counter.php");
  58. global $home;
  59. if ($home == 1) {
  60.     message_box();
  61.     blocks(Center);
  62. }
  63.  
  64. ?>