home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / akce / web / phpnuke / PHP-Nuke-7.5.exe / html / header.php < prev    next >
PHP Script  |  2004-08-26  |  2KB  |  60 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. ##################################################
  23. # Include some common header for HTML generation #
  24. ##################################################
  25.  
  26. $header = 1;
  27.  
  28. function head() {
  29.     global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
  30.     $ThemeSel = get_theme();
  31.     include("themes/$ThemeSel/theme.php");
  32.     echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
  33.     echo "<html>\n";
  34.     echo "<head>\n";
  35.     echo "<title>$sitename $pagetitle</title>\n";
  36.  
  37.     include("includes/meta.php");
  38.     include("includes/javascript.php");
  39.  
  40.     if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
  41.     echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
  42.     }
  43.  
  44.     echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
  45.     include("includes/my_header.php");
  46.     echo "\n\n\n</head>\n\n";
  47.     themeheader();
  48. }
  49.  
  50. online();
  51. head();
  52. include("includes/counter.php");
  53. global $home;
  54. if ($home == 1) {
  55.     message_box();
  56.     blocks(Center);
  57. }
  58.  
  59. ?>
  60.