home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 March / PCWorld_2001-03_cd.bin / KOMUNIK / progweb / progweb.exe / phpnuke / html / config.php < prev    next >
PHP Script  |  2000-12-05  |  12KB  |  302 lines

  1. <?PHP
  2.  
  3. ######################################################################
  4. # PHP-NUKE: Web Portal System
  5. # ===========================
  6. #
  7. # Copyright (c) 2000 by Francisco Burzi (fburzi@ncc.org.ve)
  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:   MySQL Database Hostname
  21. # dbuname:  MySQL Username
  22. # dbpass:   MySQL Password
  23. # dbname:   MySQL Database Name
  24. # system:   0 for Unix/Linux, 1 for Windows
  25. ######################################################################
  26.  
  27. $dbhost = "localhost";
  28. $dbuname = "root";
  29. $dbpass = "";
  30. $dbname = "nuke";
  31. $system = 0;
  32.  
  33. /*********************************************************************/
  34. /* You finished to configure the Database. Now you can change all    */
  35. /* you want in the Administration Section.   To enter just launch    */
  36. /* you web browser pointing to http://yourdomain.com/admin.php       */
  37. /*                                                                   */
  38. /* At the prompt use the following ID to login (case sensitive):     */
  39. /*                                                                   */
  40. /* AdminID: God                                                      */
  41. /* Password: Password                                                */
  42. /*                                                                   */
  43. /* Be sure to change inmediately the God login & password clicking   */
  44. /* on Edit Admin in the Admin menu. After that, click on Preferences */
  45. /* to configure your new site. In that menu you can change all you   */
  46. /* need to change.                                                   */
  47. /*                                                                   */
  48. /* Remember to chmod 666 this file in order to let the system write  */
  49. /* to it properly. If you can't change the permissions you can edit  */
  50. /* the rest of this file by hand.                                    */
  51. /*                                                                   */
  52. /* Congratulations! now you have an automated news portal!           */
  53. /* Thanks for choose PHP-Nuke: The Future of the Web                 */
  54. /*********************************************************************/
  55.  
  56.  
  57.  
  58. ######################################################################
  59. # General Site Configuration
  60. #
  61. # $sitename:      Your Site Name
  62. # $nuke_url:      Complete URL for your site (Do not put / at end)
  63. # $site_logo:     Logo for Printer Friendly Page (It's good to have a Black/White graphic)
  64. # $slogan:        Your site's slogan
  65. # $startdate:     Start Date to display in Statistic Page
  66. # $adminmail:     Site Administrator's Email
  67. # $anonpost:      Allow Anonymous to Post Comments? (1=Yes 0=No)
  68. # $Default_Theme: Default Theme for your site (See /themes directory for the complete list, case sensitive!)
  69. # $foot(x):       Messages for all footer pages (Can include HTML code)
  70. # $commentlimit:  Maximum number of bytes for each comment
  71. # $anonymous:     Anonymous users Default Name
  72. # $site_font:     Font for your entire site (Comma separated for many fonts type)
  73. # $minpass:       Minimum character for users passwords
  74. # $pollcomm:      Activate comments in Polls? (1=Yes 0=No)
  75. ######################################################################
  76.  
  77. $sitename = "PHP-Nuke Powered Site";
  78. $nuke_url = "http://yoursite.com";
  79. $site_logo = "logo.gif";
  80. $slogan = "Your slogan here";
  81. $startdate = "December 2.000";
  82. $adminmail = "webmaster@yoursite.com";
  83. $anonpost = 1;
  84. $Default_Theme = "Green";
  85. $foot1 = "<a href=http://phpnuke.org><img src=images/powered/phpnuke.gif border=0 Alt=\"Web site powered by PHP-Nuke\"></a><br>";
  86. $foot2 = "All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest ⌐ 2000 by me";
  87. $foot3 = "This web site was made with <a href=http://phpnuke.org>PHP-Nuke</a>, a web portal system written in PHP. PHP-Nuke is Free Software released under the <a href=http://www.gnu.org>GNU/GPL license</a>.";
  88. $foot4 = "You can syndicate our news using the file <a href=backend.php>Backend.php</a> or <a href=ultramode.txt>ultramode.txt</a>";
  89. $commentlimit = 4096;
  90. $anonymous = "Anonymous";
  91. $site_font = "Verdana,Arial,Helvetica";
  92. $minpass = 5;
  93. $pollcomm = 1;
  94.  
  95. ######################################################################
  96. # General Stories Options
  97. #
  98. # $top:       How many items in Top Page?
  99. # $storyhome: How many stories to display in Home Page?
  100. # $oldnum:    How many stories in Old Articles Box?
  101. # $ultramode: Activate ultramode plain text file backend syndication? (1=Yes 0=No  Need to chmod 666 ultramode.txt file)
  102. ######################################################################
  103.  
  104. $top = 10;
  105. $storyhome = 10;
  106. $oldnum = 30;
  107. $ultramode = 0;
  108.  
  109. ######################################################################
  110. # Banners/Advertising Configuration
  111. #
  112. # $banners: Activate Banners Ads for your site? (1=Yes 0=No)
  113. # $myIP:    Write your IP number to not count impressions, be fair about this!
  114. ######################################################################
  115.  
  116. $banners = 0;
  117. $myIP = "150.10.10.10";
  118.  
  119. ######################################################################
  120. # XML/RDF Backend Configuration
  121. #
  122. # $backend_title:    Backend title, can be your site's name and slogan
  123. # $backend_language: Language format of your site
  124. # $backend_image:    Image logo for your site
  125. # $backend_width:    Image logo width
  126. # $backend_height:   Image logo height
  127. ######################################################################
  128.  
  129. $backend_title = "PHP-Nuke Powered Site";
  130. $backend_language = "en-us";
  131. $backend_image = "http://yoursite.com/images/logo.gif";
  132. $backend_width = 88;
  133. $backend_height = 31;
  134.  
  135. ######################################################################
  136. # Site Language Preferences
  137. #
  138. # $language: Language of your site (You need to have lang-xxxxxx.php file for your selected language in the /language directory of your site)
  139. # $locale:   Locale configuration to correctly display date with your country format. (See /usr/share/locale)
  140. ######################################################################
  141.  
  142. $language = "english";
  143. $locale = "en_US";
  144.  
  145. ######################################################################
  146. # Web Links Preferences
  147. #
  148. # $perpage:            How many links to show on each page?
  149. # $popular:            How many hits need a link to be listed as popular?
  150. # $newlinks:           How many links to display in the New Links Page?
  151. # $toplinks:           How many links to display in The Best Links Page? (Most Popular)
  152. # $linksresults:       How many links to display on each search result page?
  153. # $links_anonaddlinklock: Let Anonymous users to post new links? (1=Yes 0=No)
  154. ######################################################################
  155.  
  156. $perpage = 10;
  157. $popular = 500;
  158. $newlinks = 10;
  159. $toplinks = 10;
  160. $linksresults = 10;
  161. $links_anonaddlinklock = 1;
  162.  
  163. ######################################################################
  164. # Notification of News Submissions
  165. #
  166. # $notify:         Notify you each time your site receives a news submission? (1=Yes 0=No)
  167. # $notify_email:   Email, address to send the notification
  168. # $notify_subject: Email subject
  169. # $notify_message: Email body, message
  170. # $notify_from:    account name to appear in From field of the Email
  171. ######################################################################
  172.  
  173. $notify = 0;
  174. $notify_email = "me@yoursite.com";
  175. $notify_subject = "NEWS for my site";
  176. $notify_message = "Hey! You got a new submission for your site.";
  177. $notify_from = "webmaster";
  178.  
  179. ######################################################################
  180. # Moderation Config (not 100% working)
  181. #
  182. # $moderate:   Activate moderation system? (1=Yes 0=No)
  183. # $resons:     List of reasons for the moderation (each reason under quotes and comma separated)
  184. # $badreasons: Number of bad reasons in the reasons list
  185. ######################################################################
  186.  
  187. $moderate = 0;
  188. $reasons = array("As Is",
  189.             "Offtopic",
  190.             "Flamebait",
  191.             "Troll",
  192.             "Redundant",
  193.             "Insighful",
  194.             "Interesting",
  195.             "Informative",
  196.             "Funny",
  197.             "Overrated",
  198.             "Underrated");
  199. $badreasons = 4;
  200.  
  201. ######################################################################
  202. # Survey/Polls Config
  203. #
  204. # $maxOptions: Number of maximum options for each poll
  205. # $BarScale:   Scale for the Bar, multiple of 100, You may leave this to 1
  206. # $setCookies: Set cookies to prevent visitors vote twice in a period of 24 hours? (1=Yes 0=No)
  207. ######################################################################
  208.  
  209. $maxOptions = 12;
  210. $BarScale = 1;
  211. $setCookies = 1;
  212.  
  213. ######################################################################
  214. # Some Graphics Options
  215. #
  216. # $tipath:       Topics images path (put / only at the end, not at the begining)
  217. # $userimg:      User images path (put / only at the end, not at the begining)
  218. # $adminimg:     Administration system images path (put / only at the end, not at the begining)
  219. # $admingraphic: Activate graphic menu for Administration Menu? (1=Yes 0=No)
  220. # $admart:       How many articles to show in the admin section?
  221. ######################################################################
  222.  
  223. $tipath = "images/topics/";
  224. $userimg = "images/menu/";
  225. $adminimg = "images/admin/";
  226. $admingraphic = 0;
  227. $admart = 20;
  228.  
  229. ######################################################################
  230. # HTTP Referers Options
  231. #
  232. # $httpref:    Activate HTTP referer logs to know who is linking to our site? (1=Yes 0=No)# $httprefmax: Maximum number of HTTP referers to store in the Database (Try to not set this to a high number, 500 ~ 1000 is Ok)
  233. ######################################################################
  234.  
  235. $httpref = 1;
  236. $httprefmax = 1000;
  237.  
  238. ######################################################################
  239. # Allowable HTML tags
  240. #
  241. # $AllowableHTML: HTML command to allow in the comments
  242. #                  =>2 means accept all qualifiers: <foo bar>
  243. #                  =>1 means accept the tag only: <foo>
  244. ######################################################################
  245.  
  246. $AllowableHTML = array("p"=>2,
  247.             "b"=>1,
  248.             "i"=>1,
  249.             "a"=>2,
  250.             "em"=>1,
  251.             "br"=>1,
  252.             "strong"=>1,
  253.             "blockquote"=>1,
  254.                     "tt"=>1,
  255.                     "li"=>1,
  256.                     "ol"=>1,
  257.             "div"=>2,
  258.                     "ul"=>1);
  259.  
  260. ######################################################################
  261. # Miscelaneous Options
  262. #
  263. # $Ephemerids:    Activate Ephemerids (Past Events) system? (1=Yes 0=No)
  264. # $advancedstats: Activate Advanced Stats? (1=Yes 0=No  This will display a new box in Statistics page with relevant server info)
  265. ######################################################################
  266.  
  267. $Ephemerids = 0;
  268. $advancedstats = 0;
  269.  
  270. ######################################################################
  271. # Filters Options (not working yet)
  272. ######################################################################
  273.  
  274. $MaxTextLength = 0;
  275. $MaxTotalLength = 0;
  276. $CensorList = array("fuck",
  277.             "cunt",
  278.             "fucker",
  279.             "fucking",
  280.             "pussy",
  281.             "cock",
  282.             "c0ck",
  283.             "cum",
  284.             "twat",
  285.             "clit",
  286.             "bitch",
  287.             "fuk",
  288.             "fuking",
  289.             "motherfucker");
  290. $CensorMode = 1;
  291. $CensorReplace = "*";
  292.  
  293. ######################################################################
  294. # Do not touch the following options!
  295. ######################################################################
  296.  
  297. $cookieadmtime = 2592000;
  298. $cookiePrefix = "NukePoll";
  299. $uimages = "$userimg$language";
  300. $Version_Num = "4.3";
  301.  
  302. ?>