home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / akce / web / unitednuke / unitednuke.exe / html / footer.php < prev    next >
PHP Script  |  2004-01-10  |  2KB  |  61 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("footer.php",$_SERVER['PHP_SELF'])) {
  16.     Header("Location: index.php");
  17.     die();
  18. }
  19.  
  20. $footer = 1;
  21.  
  22. function footmsg() {
  23.     global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time;
  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,5)." "._SECONDS."";
  30.     echo "<font class=\"footmsg\">\n";
  31.     if ($foot1 != "") {
  32.     echo "$foot1<br>\n";
  33.     }
  34.     if ($foot2 != "") {
  35.     echo "$foot2<br>\n";
  36.     }
  37.     if ($foot3 != "") {
  38.     echo "$foot3<br>\n";
  39.     }
  40.     // DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
  41.     echo "$copyright<br>$total_time<br>\n</font>\n";
  42. }
  43.  
  44. function foot() {
  45.     global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
  46.     if ($home == 1) {
  47.     blocks(Down);
  48.     }
  49.     if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
  50.     $cpname = ereg_replace("_", " ", $name);
  51.     echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname ©</a></div>";
  52.     }
  53.     themefooter();
  54.     echo "</body>\n"
  55.     ."</html>";
  56.     die();
  57. }
  58.  
  59. foot();
  60.  
  61. ?>