home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 May / INTERNET103.ISO / pc / software / windows / building / php_nuke / html / blocks / block-content.php < prev    next >
Encoding:
PHP Script  |  2002-09-16  |  1.2 KB  |  27 lines

  1. <?php
  2.  
  3. /************************************************************************/
  4. /* PHP-NUKE: Web Portal 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("block-Content.php", $PHP_SELF)) {
  16.     Header("Location: index.php");
  17.     die();
  18. }
  19.  
  20. global $prefix, $dbi;
  21.  
  22. $result = sql_query("SELECT pid, title FROM ".$prefix."_pages WHERE active='1'", $dbi);
  23. while(list($pid, $title) = sql_fetch_row($result, $dbi)) {
  24.     $content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=Content&pa=showpage&pid=$pid\">$title</a><br>";
  25. }
  26.  
  27. ?>