home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / akce / web / unitednuke / unitednuke.exe / html / config.php < prev    next >
PHP Script  |  2004-01-10  |  7KB  |  196 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 (for english users)
  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, mysql4, postgres, mssql, oracle, msaccess,
  28. #               db2 and mssql-odbc
  29. #               Be sure to write it exactly as above, case SeNsItIvE!
  30. # $sitekey:    Security Key. CHANGE it to whatever you want, as long
  31. #               as you want. Just don't use quotes.
  32. # $gfx_chk:    Set the graphic security code on every login screen,
  33. #        You need to have GD extension installed:
  34. #        0: No check
  35. #        1: Administrators login only
  36. #        2: Users login only
  37. #        3: New users registration only
  38. #        4: Both, users login and new users registration only
  39. #        5: Administrators and users login only
  40. #        6: Administrators and new users registration only
  41. #        7: Everywhere on all login options (Admins and Users)
  42. #        NOTE: If you aren't sure set this value to 0
  43. ######################################################################
  44.  
  45. ######################################################################
  46. # Nastaveni databaze & Systemu (pro ceske uzivatele)
  47. #
  48. # dbhost:       Hostname SQL Databaze
  49. # dbuname:      Uzivatelske jmeno SQL
  50. # dbpass:       Heslo SQL
  51. # dbname:       Jmeno SQL databaze
  52. # $prefix:      prefix vasich databazovych tabulek
  53. # $user_prefix: prefix tabulek s daty uzivatelu (pro sdileni)
  54. # $dbtype:      Typ vaseho databazoveho serveru. Podporovane servery:
  55. #               MySQL, mysql4, postgres, mssql, oracle, msaccess,
  56. #               db2 and mssql-odbc
  57. #               Overte si prosim, ze jste napsali typ databaze stejne jako je uvedeno.
  58. #         Rozlisujte mezi malymi a velkymi pismeny!
  59. # $sitekey:    Bezpecnostni klic. ZMENTE ho jakkoli chcete, muze byt jakkoli dlouhy.
  60. #        Neomezujte se.
  61. # $gfx_chk:    Ovlivni nutnost zadavani bezpecnostniho klice pri prihlaseni.
  62. #        Jestlize chcete pouzivat bezpecnostni klic, musite mit nainstalovane rozsireni GD pro PHP:
  63. #        0: Bez bezpecnostniho klice
  64. #        1: Pouze pri prihlaseni do administrace
  65. #        2: Pouze pri prihlaseni uzivatelu
  66. #        3: Pri registraci novych uzivatelu
  67. #        4: Oboji, pri prihlaseni uzivatelu i registraci novych uzivatelu
  68. #        5: Pri prihlaseni do administrace a pri prihlaseni uzivatelu
  69. #        6: Pri prihlaseni do administrace a pri registraci novych uzivatelu
  70. #        7: Vsude, pri kazdem prihlasovani (administratorskem a uzivatelskem)
  71. #        POZNAMKA: Jestlize nevite co nastavit, nastavte 0
  72. ######################################################################
  73.  
  74. $dbhost = "localhost";
  75. $dbuname = "root";
  76. $dbpass = "";
  77. $dbname = "nuke";
  78. $prefix = "nuke";
  79. $user_prefix = "nuke";
  80. $dbtype = "MySQL";
  81. $sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
  82. $gfx_chk = 7;
  83.  
  84. #For English users:
  85. /*********************************************************************/
  86. /* You finished to configure the Database. Now you can change all    */
  87. /* you want in the Administration Section.   To enter just launch    */
  88. /* you web browser pointing to http://yourdomain.com/admin.php       */
  89. /*                                                                   */
  90. /* Remeber to go to Settings section where you can configure your    */
  91. /* new site. In that menu you can change all you need to change.     */
  92. /*                                                                   */
  93. /* Congratulations! now you have an automated news portal!           */
  94. /* Thanks for choose PHP-Nuke: The Future of the Web                 */
  95. /*********************************************************************/
  96.  
  97. #Pro ceske uzivatele
  98. /*********************************************************************/
  99. /* Dokoncili jste nastaveni databaze. Nyni muzete vsechny zmeny provadet    */
  100. /* v Administracni sekci. Vstoupite do ni pomoci weboveho prohlizece a
  101. /* zadanim adresy http://vasweb.cz/admin.php       */
  102. /*                                                                   */
  103. /* Nezapomente jit do sekce Nastaveni, kde muzete nastavit vas novy web    */
  104. /*                                                                   */
  105. /* Gratulujeme! nyni mate dynamicky webovy portal!           */
  106. /* Dekujeme vam za vybrani UNITED PHP-NUKE Czech Edition
  107. /*********************************************************************/
  108.  
  109. // DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING
  110. // NEMENTE COKOLIV NIZE PAKLIZE NEVITE PRESNE CO DELATE
  111.  
  112. #For English users:
  113. /*$reasons = array("As Is",
  114.             "Offtopic",
  115.             "Flamebait",
  116.             "Troll",
  117.             "Redundant",
  118.             "Insighful",
  119.             "Interesting",
  120.             "Informative",
  121.             "Funny",
  122.             "Overrated",
  123.             "Underrated");
  124. $badreasons = 4;
  125. $AllowableHTML = array("b"=>1,
  126.             "i"=>1,
  127.             "a"=>2,
  128.             "em"=>1,
  129.             "br"=>1,
  130.             "strong"=>1,
  131.             "blockquote"=>1,
  132.                     "tt"=>1,
  133.                     "li"=>1,
  134.                     "ol"=>1,
  135.                     "ul"=>1);
  136. $CensorList = array("fuck",
  137.             "cunt",
  138.             "fucker",
  139.             "fucking",
  140.             "pussy",
  141.             "cock",
  142.             "c0ck",
  143.             "cum",
  144.             "twat",
  145.             "clit",
  146.             "bitch",
  147.             "fuk",
  148.             "fuking",
  149.             "motherfucker");*/
  150.  
  151. #Pro ceske uzivatele
  152. $reasons = array("Nechat",
  153.             "Mimo (OT)",
  154.             "Urß╛ejφcφ",
  155.             "Kritick²",
  156.             "Nepot°ebn²",
  157.             "K v∞ci",
  158.             "Zajφmav²",
  159.             "PouΦn²",
  160.             "Zßbavn²",
  161.             "Snφ╛it hodnocenφ",
  162.             "Zv²╣it hodnocenφ");
  163. $badreasons = 4;
  164. $AllowableHTML = array("b"=>1,
  165.             "i"=>1,
  166.             "a"=>2,
  167.             "em"=>1,
  168.             "br"=>1,
  169.             "strong"=>1,
  170.             "blockquote"=>1,
  171.                     "tt"=>1,
  172.                     "li"=>1,
  173.                     "ol"=>1,
  174.                     "ul"=>1);
  175. $CensorList = array("fuck",
  176.             "cunt",
  177.             "fucker",
  178.             "fucking",
  179.             "pussy",
  180.             "cock",
  181.             "c0ck",
  182.             "cum",
  183.             "twat",
  184.             "clit",
  185.             "bitch",
  186.             "fuk",
  187.             "fuking",
  188.             "motherfucker");
  189.  
  190. $tipath = "images/topics/";
  191. if (eregi("config.php",$_SERVER['PHP_SELF'])) {
  192.     Header("Location: index.php");
  193.     die();
  194. }
  195.  
  196. ?>