[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/ -> footer.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']), "footer.php")) {
  16      Header("Location: index.php");
  17      die();
  18  }
  19  
  20  define('NUKE_FOOTER', true);
  21  
  22  function footmsg() {
  23      global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time, $commercial_license, $footmsg;
  24      $mtime = microtime();
  25      $mtime = explode(" ",$mtime);
  26      $mtime = $mtime[1] + $mtime[0];
  27      $end_time = $mtime;
  28      $total_time = ($end_time - $start_time);
  29      $total_time = _PAGEGENERATION." ".substr($total_time,0,4)." "._SECONDS;
  30      $footmsg = "<span class=\"footmsg\">\n";
  31      if (!empty($foot1)) {
  32          $footmsg .= $foot1."<br>\n";
  33      }
  34      if (!empty($foot2)) {
  35          $footmsg .= $foot2."<br>\n";
  36      }
  37      if (!empty($foot3)) {
  38          $footmsg .= $foot3."<br>\n";
  39      }
  40      // DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.

  41      // IF YOU REALLY NEED TO REMOVE IT AND HAVE MY WRITTEN AUTHORIZATION CHECK: http://phpnuke.org/modules.php?name=Commercial_License

  42      // PLAY FAIR AND SUPPORT THE DEVELOPMENT, PLEASE!

  43      if ($commercial_license == 1) {
  44          $footmsg .= $total_time."<br>\n</span>\n";
  45      } else {
  46          $footmsg .= $copyright."<br>$total_time<br>\n</span>\n";
  47      }
  48      echo $footmsg;
  49  }
  50  
  51  function foot() {
  52      global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $name, $admin, $commercial_license;
  53      if(defined('HOME_FILE')) {
  54          blocks("Down");
  55      }
  56      if (basename($_SERVER['PHP_SELF']) != "index.php" AND defined('MODULE_FILE') AND file_exists("modules/$name/copyright.php") && $commercial_license != 1) {
  57          $cpname = str_replace("_", " ", $name);
  58          echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &copy;</a></div>";
  59      }
  60      if (basename($_SERVER['PHP_SELF']) != "index.php" AND defined('MODULE_FILE') AND (file_exists("modules/$name/admin/panel.php") && is_admin($admin))) {
  61          echo "<br>";
  62          OpenTable();
  63          include("modules/$name/admin/panel.php");
  64          CloseTable();
  65      }
  66      themefooter();
  67      if (file_exists("includes/custom_files/custom_footer.php")) {
  68          include_once("includes/custom_files/custom_footer.php");
  69      }
  70      echo "</body>\n</html>";
  71          ob_end_flush();
  72      die();
  73  }
  74  
  75  foot();
  76  
  77  ?>


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