Add cmd, vxd, cpl to upload blacklist
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?
2 # DO NOT EDIT THIS FILE!
3 # To customize your installation, edit "LocalSettings.php".
4 # Note that since all these string interpolations are expanded
5 # before LocalSettings is included, if you localize something
6 # like $wgScriptPath, you must also localize everything that
7 # depends on it.
8
9 $wgSitename = "Wikipedia";
10 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename
11
12 $wgServer = "http://" . getenv( "SERVER_NAME" );
13 $wgScriptPath = "/wiki";
14 $wgScript = "{$wgScriptPath}/wiki.phtml";
15 $wgRedirectScript = "{$wgScriptPath}/redirect.phtml";
16 $wgStyleSheetPath = "{$wgScriptPath}/style";
17 $wgStyleSheetDirectory = "{$IP}/style";
18 $wgArticlePath = "{$wgScript}?title=$1";
19 $wgUploadPath = "{$wgScriptPath}/upload";
20 $wgUploadDirectory = "{$IP}/upload";
21 $wgLogo = "{$wgUploadPath}/wiki.png";
22 $wgMathPath = "{$wgUploadPath}/math";
23 $wgMathDirectory = "{$wgUploadDirectory}/math";
24 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
25 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
26 #$wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>";
27 $wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>\r\nReply-To: webmaster@www.wikipedia.org";
28
29 # MySQL settings
30 #
31 $wgDBserver = "localhost";
32 $wgDBname = "wikidb";
33 $wgDBconnection = "";
34 $wgDBuser = "wikiuser";
35 $wgDBpassword = "userpass";
36 $wgDBsqluser = "sqluser";
37 $wgDBsqlpassword = "sqlpass";
38 $wgDBminWordLen = 4;
39 $wgDBtransactions = false; # Set to true if using InnoDB tables
40 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
41
42 # Database load balancer
43 $wgDBservers = false; # e.g. array("larousse", "pliny")
44 $wgDBloads = false; # e.g. array(0.6, 0.4);
45
46
47 # memcached settings
48 # See docs/memcached.doc
49 #
50 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
51 $wgUseMemCached = false;
52 $wgMemCachedServers = array( "127.0.0.1:11000" );
53 $wgMemCachedDebug = false;
54 $wgSessionsInMemcached = false;
55 $wgLinkCacheMemcached = false; # Not fully tested
56
57 # Language settings
58 #
59 $wgLanguageCode = "en";
60 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
61 $wgInputEncoding = "ISO-8859-1";
62 $wgOutputEncoding = "ISO-8859-1";
63 $wgEditEncoding = "";
64 $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
65 $wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
66 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
67 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
68 $wgAmericanDates = false; # Enable for English module to print dates
69 # as eg 'May 12' instead of '12 May'
70 $wgLocalInterwiki = "w";
71 $wgShowIPinHeader = true; # For non-logged in users
72 $wgMaxNameChars = 32; # Maximum number of bytes in username
73
74 # Translation using MediaWiki: namespace
75 # Not recommended unless memcached is installed
76 $wgUseDatabaseMessages = false;
77 $wgMsgCacheExpiry = 86400;
78
79 $wgExtraSubtitle = "";
80 $wgSiteSupportPage = "";
81
82 # Miscellaneous configuration settings
83 #
84 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
85
86 # The debug log file should be not be publically accessible if it is
87 # used, as it may contain private data.
88 $wgDebugLogFile = "";
89
90 $wgDebugComments = false;
91 $wgReadOnly = false;
92 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
93 $wgLogQueries = false;
94 $wgUseCategoryMagic = false;
95 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
96 $wgCompressedPersistentLC = true; # use gzcompressed blobs
97
98 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
99
100 # wgHitcounterUpdateFreq sets how often page counters should be
101 # updated, higher values are easier on the database. A value of 1
102 # causes the counters to be updated on every hit, any higher value n
103 # cause them to update *on average* every n hits. Should be set to
104 # either 1 or something largish, eg 1000, for maximum efficiency.
105
106 $wgHitcounterUpdateFreq = 1;
107
108 # User rights
109 $wgWhitelistEdit = false;
110 $wgWhitelistRead = false;
111 $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
112 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
113 $wgIPBlockExpiration = 86400; # IP blocks expire after this many seconds, 0=infinite
114 $wgUserBlockExpiration = 0; # As above, but for logged-in users
115
116 # User agent/range blocking
117 # Blocks all users using a particular user agent, possibly restricted to a
118 # set of IP ranges. Note: you can't block all user agents by leaving
119 # $wgBadUserAgents blank. That would block nothing.
120 $wgBadRanges = false; # e.g. array(array("1.2.3.0", "1.2.3.255"))
121 $wgBadUserAgents = false; # e.g. array("OfflineExplorer/1.0")
122 $wgRangeBlockUser = 0; # The block is attributed to this user ID
123 $wgRangeBlockReason = ""; # This reason is given (should be in wfMsg, obviously)
124
125 # Client-side caching:
126 $wgCachePages = true; # Allow client-side caching of pages
127
128 # Set this to current time to invalidate all prior cached pages.
129 # Affects both client- and server-side caching.
130 $wgCacheEpoch = "20030516000000";
131
132 # Server-side caching:
133 # This will cache static pages for non-logged-in users
134 # to reduce database traffic on public sites.
135 # Must set $wgShowIPinHeader = false
136 $wgUseFileCache = false;
137 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
138
139 $wgCookieExpiration = 2592000;
140
141 # Squid-related settings
142 #
143 # Enable/disable Squid
144 $wgUseSquid = false;
145 # If you run Squid3 with ESI support, enable this (default:false):
146 $wgUseESI = false;
147 # Internal server name as known to Squid, if different
148 # $wgInternalServer = 'http://yourinternal.tld:8000';
149 $wgInternalServer = $wgServer;
150 # A list of proxy servers (ips if possible) to purge on changes
151 # don't specify ports here (80 is default)
152 # $wgSquidServers = array('127.0.0.1');
153
154 # Set to set an explicit domain on the login cookies
155 # eg, "justthis.domain.org" or ".any.subdomain.net"
156 $wgCookieDomain = "";
157 $wgCookiePath = "/";
158 $wgDisableCookieCheck = false;
159
160 $wgAllowExternalImages = true;
161 $wgMiserMode = false; # Disable database-intensive features
162 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
163 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
164 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
165
166 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
167 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
168 # convert (ImageMagick) installed and available in the PATH.
169 # Please see math/README for more information.
170 $wgUseTeX = false;
171 $wgTexvc = "./math/texvc"; # Location of the texvc binary
172
173 # Profiling / debugging
174 $wgProfiling = false; # Enable for more detailed by-function times in debug log
175 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
176 $wgProfileOnly = false; # Don't put non-profiling info into log file
177 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
178 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
179 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
180 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
181
182 $wgDisableCounters = false;
183 $wgDisableTextSearch = false;
184 $wgDisableSearchUpdate = false; # If you've disabled search semi-permanently, this also disables updates to the table. If you ever re-enable, be sure to rebuild the search table.
185 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
186 $wgRemoteUploads = false; # Set to true to enable the upload _link_ while local uploads are disabled. Assumes that the special page link will be bounced to another server where uploads do work.
187 $wgDisableAnonTalk = false;
188
189 # We can serve pages compressed in order to save bandwidth,
190 # but this will increase CPU usage.
191 # Requires zlib support enabled in PHP.
192 $wgUseGzip = function_exists( "gzencode" );
193
194 # We can also compress text in the old revisions table. If this is set on,
195 # old revisions will be compressed on page save if zlib support is available.
196 # Any compressed revisions will be decompressed on load regardless of this
197 # setting *but will not be readable at all* if zlib support is not available.
198 $wgCompressRevisions = false;
199
200 # This is the list of preferred extensions for uploading files. Uploading
201 # files with extensions not in this list will trigger a warning.
202
203 $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
204
205 # Files with these extensions will never be allowed as uploads.
206 $wgFileBlacklist = array(
207 # HTML may contain cookie-stealing JavaScript and web bugs
208 "html", "htm",
209 # PHP scripts may execute arbitrary code on the server
210 "php", "phtml", "php3", "php4", "phps",
211 # Other types that may be interpreted by some servers
212 "shtml", "jhtml", "pl", "py",
213 # May contain harmful executables for Windows victims
214 "exe", "scr", "dll", "msi", "vbs", "bat", "com", "pif", "cmd", "vxd", "cpl" );
215
216 # This is a flag to determine whether or not to check file extensions on
217 # upload.
218 $wgCheckFileExtensions = true;
219
220 # If this is turned off, users may override the warning for files not
221 # covered by $wgFileExtensions.
222 $wgStrictFileExtensions = true;
223
224 $wgPasswordSalt = true; # For compatibility with old installations set to false
225
226 # Which namespaces should support subpages?
227 # See Language.php for a list of namespaces.
228 #
229 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
230 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1 );
231
232 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
233 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0 );
234
235 # If set, a bold ugly notice will show up at the top of every page.
236 $wgSiteNotice = "";
237
238 # Whether to allow anonymous users to set changes to 'minor'
239
240 $wgAllowAnonymousMinor = false;
241 ?>