[ Index ]
 

Code source de PHP NUKE 7.9

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/ -> header.php (source)

   1  <?php
   2  
   3  /************************************************************************/

   4  /* PHP-NUKE: Advanced Content Management System                         */

   5  /* ============================================                         */

   6  /*                                                                      */

   7  /* Copyright (c) 2005 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 (stristr(htmlentities($_SERVER['PHP_SELF']), "header.php")) {
  16      Header("Location: index.php");
  17      die();
  18  }
  19  
  20  define('NUKE_HEADER', true);
  21  require_once ("mainfile.php");
  22  
  23  ##################################################

  24  # Include some common header for HTML generation #

  25  ##################################################

  26  
  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_once("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      include ("includes/meta.php");
  37      include ("includes/javascript.php");
  38  
  39      if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
  40          echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
  41      }
  42      echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
  43      echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
  44      if (file_exists("includes/custom_files/custom_head.php")) {
  45          include_once("includes/custom_files/custom_head.php");
  46      }
  47      echo "\n\n\n</head>\n\n";
  48      if (file_exists("includes/custom_files/custom_header.php")) {
  49          include_once("includes/custom_files/custom_header.php");
  50      }
  51      themeheader();
  52  }
  53  
  54  online();
  55  head();
  56  include ("includes/counter.php");
  57  if(defined('HOME_FILE')) {
  58      message_box();
  59      blocks("Center");
  60  }
  61  
  62  ?>


Généré le : Sun Apr 1 11:11:59 2007 par Balluche grâce à PHPXref 0.7