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

  1. <?php
  2.  
  3. ######################################################################
  4. # PHP-NUKE: Advanced Content Management System
  5. # ============================================
  6. #
  7. # Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)
  8. # http://phpnuke.org
  9. #
  10. # This module is to configure the main options for your site
  11. #
  12. # This program is free software. You can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License.
  15. ######################################################################
  16.  
  17. ######################################################################
  18. # Database & System Config
  19. #
  20. # dbhost:       SQL Database Hostname
  21. # dbuname:      SQL Username
  22. # dbpass:       SQL Password
  23. # dbname:       SQL Database Name
  24. # $prefix:      Your Database table's prefix
  25. # $user_prefix: Your Users' Database table's prefix (To share it)
  26. # $dbtype:      Your Database Server type. Supported servers are:
  27. #               MySQL, mSQL, PostgreSQL, PostgreSQL_local, ODBC,
  28. #               ODBC_Adabas, Interbase, and Sybase.
  29. #               Be sure to write it exactly as above, case SeNsItIvE!
  30. ######################################################################
  31.  
  32. $dbhost = "localhost";
  33. $dbuname = "root";
  34. $dbpass = "";
  35. $dbname = "nuke";
  36. $prefix = "nuke";
  37. $user_prefix = "nuke";
  38. $dbtype = "MySQL";
  39.  
  40. /*********************************************************************/
  41. /* You finished to configure the Database. Now you can change all    */
  42. /* you want in the Administration Section.   To enter just launch    */
  43. /* you web browser pointing to http://yourdomain.com/admin.php       */
  44. /*                                                                   */
  45. /* Remeber to go to Settings section where you can configure your    */
  46. /* new site. In that menu you can change all you need to change.     */
  47. /*                                                                   */
  48. /* Congratulations! now you have an automated news portal!           */
  49. /* Thanks for choose PHP-Nuke: The Future of the Web                 */
  50. /*********************************************************************/
  51.  
  52. // DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING
  53.  
  54. $reasons = array("As Is",
  55.             "Offtopic",
  56.             "Flamebait",
  57.             "Troll",
  58.             "Redundant",
  59.             "Insighful",
  60.             "Interesting",
  61.             "Informative",
  62.             "Funny",
  63.             "Overrated",
  64.             "Underrated");
  65. $badreasons = 4;
  66. $AllowableHTML = array("b"=>1,
  67.             "i"=>1,
  68.             "a"=>2,
  69.             "em"=>1,
  70.             "br"=>1,
  71.             "strong"=>1,
  72.             "blockquote"=>1,
  73.                     "tt"=>1,
  74.                     "li"=>1,
  75.                     "ol"=>1,
  76.                     "ul"=>1);
  77. $CensorList = array("fuck",
  78.             "cunt",
  79.             "fucker",
  80.             "fucking",
  81.             "pussy",
  82.             "cock",
  83.             "c0ck",
  84.             "cum",
  85.             "twat",
  86.             "clit",
  87.             "bitch",
  88.             "fuk",
  89.             "fuking",
  90.             "motherfucker");
  91. $tipath = "images/topics/";
  92. if (eregi("config.php",$PHP_SELF)) {
  93.     Header("Location: index.php");
  94.     die();
  95. }
  96.  
  97. ?>