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://www.ncc.org.ve/php-nuke.php |
9 |
# |
10 |
# This modules 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 Config # |
19 |
########################################## |
20 |
|
21 |
$dbhost = "localhost"; # Mysql Database host |
22 |
$dbuname = "root"; # Mysql user |
23 |
$dbpass = ""; # Mysql password |
24 |
$dbname = "nuke"; # Mysql Database name |
25 |
|
26 |
########################################## |
27 |
# Site Identification Config # |
28 |
########################################## |
29 |
|
30 |
$sitename = "PHP-Nuke Based Site"; # Your site name |
31 |
$nuke_url = "http://yoursite.com"; # ex: http://yoursite.com - for root dir (NO SLASH ON END) |
32 |
$titletag = "Write here your site's slogan..."; # might be phased out |
33 |
$titlebar = "Write here your site's slogan..."; # for theme title bars; can contain HTML |
34 |
$startdate = "September 2.000"; # Your site's start date |
35 |
$adminmail = "webmaster@yourdomain.com"; # Main Administrator/Webmaster E-mail address |
36 |
$top = "10"; # How many items in the TOP page would you have? |
37 |
$oldnum = "20"; # How many stories in Past Articles box |
38 |
$ultramode = "0"; # Generate ultramode.txt headlines file? 1=yes 0=no (need chmod 777 of your main web directory) |
39 |
|
40 |
########################################## |
41 |
# Banners / Advertising Config # |
42 |
########################################## |
43 |
|
44 |
$banners = "1"; # 1 if you want banners ads in your site, otherwise 0 |
45 |
$myIP = "150.10.10.10"; # Your IP for NOT count banners impressions (be fair) |
46 |
|
47 |
########################################## |
48 |
# Footer Messages for each page # |
49 |
########################################## |
50 |
|
51 |
$foot1 = "<a href=http://www.ncc.org.ve/php-nuke.php3><img src=images/powered/phpnuke.gif border=0 Alt=\"Web site powered by PHP-Nuke\"></a><br>"; |
52 |
$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"; |
53 |
$foot3 = "This web site was made with <a href=http://www.ncc.org.ve/php-nuke.php3>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>."; |
54 |
$foot4 = "You can syndicate our news using the file <a href=backend.php>Backend.php</a>"; |
55 |
|
56 |
########################################## |
57 |
# Backend / Headlines Config # |
58 |
########################################## |
59 |
|
60 |
$backend_title = "Your site Name - Your slogan"; # Title for backend.php; NO HTML |
61 |
$backend_language = "es-ve"; # Backend text language |
62 |
$backend_image = "$nuke_url/images/mynetscape.gif"; # Image for your channel |
63 |
$backend_width = "88"; # Image width |
64 |
$backend_height = "31"; # Image height |
65 |
|
66 |
########################################## |
67 |
# Language Config # |
68 |
########################################## |
69 |
|
70 |
$language = "english"; # Language module (valid options are: english, spanish, french, german, italian, danish, swedish, portuguese, russian, dutch, traditionalchinese, simplifiedchinese, polish, japanese) in lowercase |
71 |
$locale = "en_US"; # Locale time format (look at "/usr/share/locale" with this you can have date and time in your language!) |
72 |
|
73 |
########################################## |
74 |
# Web Links Config # |
75 |
########################################## |
76 |
|
77 |
$perpage = 10; # How many links per page you want to display |
78 |
$popular = 100; # How many Hits to be a Popular Site |
79 |
$newlinks = 10; # How many links to display as a new links |
80 |
$toplinks = 10; # How many links in the best |
81 |
$linksresults = 10; # How many links in search results page |
82 |
|
83 |
########################################## |
84 |
# Mail New Stories to Admin # |
85 |
########################################## |
86 |
|
87 |
$notify = 0; # 1 to receive an email when news is submitted through submit.php |
88 |
# 0 not to receive email |
89 |
# notify will not work with Windows unless php properly configured |
90 |
$notify_email = "me@yourdomain.com"; #address where you want to receive notice |
91 |
$notify_subject = "NEWS for $sitename"; |
92 |
$notify_message = "You have a new news submission titled $subject\n---\n$story"; |
93 |
$notify_from = "webmaster"; # server email account |
94 |
|
95 |
########################################## |
96 |
# Moderation Config (not working yet) # |
97 |
########################################## |
98 |
|
99 |
$moderate = 1; # 1 for comment moderation by admin |
100 |
# 2 for moderation by anyone |
101 |
# 0 for no moderation |
102 |
|
103 |
$reasons = array('As Is', # "Normal" |
104 |
'Offtopic', # Bad Responses |
105 |
'Flamebait', |
106 |
'Troll', |
107 |
'Redundant', |
108 |
'Insightful', # Good Responses |
109 |
'Interesting', |
110 |
'Informative', |
111 |
'Funny', |
112 |
'Overrated', # Last two are "special" |
113 |
'Underrated'); |
114 |
$badreasons = 4; # number of "Bad" reasons in $reasons, skip 0 (which is neutral) |
115 |
|
116 |
########################################## |
117 |
# Some Comments Options # |
118 |
########################################## |
119 |
|
120 |
$commentlimit = 4096; # Max displayed size of comments in bytes (over will make read more link) |
121 |
$anonymous = "Anonymous"; # Anonimous user's default name |
122 |
|
123 |
########################################## |
124 |
# Filters Options (not working yet) # |
125 |
########################################## |
126 |
|
127 |
$MaxTextLength = 0; # Maximum # of displayable characters, ignoring HTML |
128 |
$MaxTotalLength = 0; # Max # of characters total |
129 |
$CensorList = array('fuck','cunt','fucker','fucking','pussy','cock','c0ck','cum','twat','clit','bitch','fuk','fuking','motherfucker'); |
130 |
$CensorMode = 1; # 0: no filtering |
131 |
# 1: exact match |
132 |
# 2: match word beginnings |
133 |
# 3: match string anywhere in words |
134 |
$CensorReplace = '*'; # Character to replace the bad words in $Censorlist |
135 |
|
136 |
########################################## |
137 |
# Some Comments Options # |
138 |
########################################## |
139 |
|
140 |
$AllowableHTML = array("p"=>2, # 2 means accept all qualifiers: <foo bar> |
141 |
"b"=>1, # 1 means accept the tag only: <foo> |
142 |
"i"=>1, |
143 |
"a"=>2, |
144 |
"em"=>1, |
145 |
"br"=>1, |
146 |
"strong"=>1, |
147 |
"blockquote"=>1, |
148 |
"tt"=>1, |
149 |
"li"=>1, |
150 |
"ol"=>1, |
151 |
"div"=>2, |
152 |
"ul"=>1); |
153 |
|
154 |
########################################## |
155 |
# Voting Booth Options # |
156 |
########################################## |
157 |
|
158 |
$maxOptions = "12"; # maximal number of options allowed |
159 |
$BarScale = "1"; # scale of result bar (in multiples of 100 pixels) |
160 |
$setCookies = "1"; # 1 - not allowing a user to vote twice for the same poll |
161 |
# 0 - does not set a cookie nor does it check for one |
162 |
|
163 |
########################################## |
164 |
# Images and Fonts for Dynamic Pages # |
165 |
########################################## |
166 |
|
167 |
$tipath = "images/topics/"; # Path to the Topics images directory |
168 |
$userimg = "images/menu/"; # Location for the Users images |
169 |
$adminimg = "images/menu/admin/"; # Location for the Admin images |
170 |
$admingraphic = "1"; # 1 = Graphical Administration |
171 |
# 0 = Text Administration |
172 |
$font1 = "<font face=Arial,Helvetica size=1>"; # Default font with size of 1 |
173 |
$font2 = "<font face=Arial,Helvetica size=2>"; # Default font with size of 2 |
174 |
$font3 = "<font face=Arial,Helvetica size=3>"; # Default font with size of 3 |
175 |
$font4 = "<font face=Arial,Helvetica size=4>"; # Default font with size of 4 |
176 |
|
177 |
########################################## |
178 |
# Other Misc System Options # |
179 |
########################################## |
180 |
|
181 |
$system = "0"; # use 0 for Unix/Linux (tested!) and 1 for others like Windows (not tested!) |
182 |
$admart = "20"; # How many articles to display in admin section? |
183 |
$minpass = "5"; # Minimum user password length in charachters |
184 |
$httpref = "1"; # 1 to save referers, otherwise 0 |
185 |
$pollcomm = "1"; # Comments in Polls? 1=yes 0=no |
186 |
$events = 1; # 1 to activate Historic Events otherwhise 0 |
187 |
# Events will show in the last Left block |
188 |
|
189 |
########################################## |
190 |
# Cookies Configuration # |
191 |
########################################## |
192 |
|
193 |
$cookieadmtime = "2592000"; # Number of seconds to the Admin cookie to expire |
194 |
$cookiePrefix = "NukePoll"; # Prefix for cookie name |
195 |
|
196 |
########################################## |
197 |
# Do NOT touch the Following Options # |
198 |
########################################## |
199 |
|
200 |
$uimages = "$userimg$language"; |
201 |
|
202 |
?> |