Make RC patroling an optional feature that can be turned off by setting wgUseRCPatrol...
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2 if( defined( "MEDIAWIKI" ) ) {
3
4 # $Id$
5 # DO NOT EDIT THIS FILE!
6 # To customize your installation, edit "LocalSettings.php".
7 # Note that since all these string interpolations are expanded
8 # before LocalSettings is included, if you localize something
9 # like $wgScriptPath, you must also localize everything that
10 # depends on it.
11
12 $wgVersion = '1.3.0+';
13
14 $wgSitename = 'MediaWiki'; # Please customize!
15 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename
16
17
18 # check if server use https:
19 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
20
21 if ( @$wgCommandLineMode ) {
22 $wgServer = $wgProto.'://localhost';
23 } else {
24 $wgServer = $wgProto.'://' . $_SERVER['SERVER_NAME'];
25 if( $_SERVER['SERVER_PORT'] != 80 ) $wgServer .= ":" . $_SERVER['SERVER_PORT'];
26 }
27 unset($wgProto);
28
29 $wgScriptPath = '/wiki';
30
31 # Whether to support URLs like index.php/Page_title
32 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
33
34 # ATTN: Old installations used wiki.phtml and redirect.phtml -
35 # make sure that LocalSettings.php is correctly set!
36 $wgScript = "{$wgScriptPath}/index.php";
37 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
38
39 $wgStylePath = "{$wgScriptPath}/style";
40 $wgStyleDirectory = "{$IP}/style";
41 $wgStyleSheetPath = &$wgStylePath;
42 $wgStyleSheetDirectory = &$wgStyleDirectory;
43 $wgArticlePath = "{$wgScript}?title=$1";
44 $wgUploadPath = "{$wgScriptPath}/upload";
45 $wgUploadDirectory = "{$IP}/upload";
46 $wgLogo = "{$wgUploadPath}/wiki.png";
47 $wgMathPath = "{$wgUploadPath}/math";
48 $wgMathDirectory = "{$wgUploadDirectory}/math";
49 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
50 $wgEmergencyContact = 'wikiadmin@' . getenv( 'SERVER_NAME' );
51 $wgPasswordSender = 'Wikipedia Mail <apache@' . getenv( 'SERVER_NAME' ) . '>';
52
53 # For using a direct (authenticated) SMTP server connection.
54 # "host" => 'SMTP domain', "IDHost" => 'domain for MessageID', "port" => "25", "auth" => true/false, "username" => user, "password" => password
55 $wgSMTP = false;
56
57 # Database settings
58 #
59 $wgDBserver = 'localhost';
60 $wgDBname = 'wikidb';
61 $wgDBconnection = '';
62 $wgDBuser = 'wikiuser';
63 $wgDBtype = "mysql"; # "mysql" for working code and "PostgreSQL" for development/broken code
64 $wgDBprefix = ''; # Table name prefix
65
66 # Database load balancer
67 # This is a two-dimensional array, an array of server info structures
68 # Fields are:
69 # host: Host name
70 # dbname: Default database name
71 # user: DB user
72 # password: DB password
73 # type: "mysql" or "pgsql"
74 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
75 # flags: bit field
76 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
77 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
78 # DBO_TRX -- wrap entire request in a transaction
79 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
80 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
81 #
82 # Leave at false to use the single-server variables above
83 $wgDBservers = false;
84
85 # Sysop SQL queries
86 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
87 $wgDBsqluser = 'sqluser';
88 $wgDBsqlpassword = 'sqlpass';
89 $wgDBpassword = 'userpass';
90 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
91 $wgDBerrorLog = false; # File to log MySQL errors to
92
93 $wgDBminWordLen = 4;
94 $wgDBtransactions = false; # Set to true if using InnoDB tables
95 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
96 $wgSqlTimeout = 30;
97
98 $wgBufferSQLResults = true; # use buffered queries by default
99
100 # Other wikis on this site, can be administered from a single developer account
101 # Array, interwiki prefix => database name
102 $wgLocalDatabases = array();
103
104 # memcached settings
105 # See docs/memcached.doc
106 #
107 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
108 $wgUseMemCached = false;
109 $wgMemCachedServers = array( '127.0.0.1:11000' );
110 $wgMemCachedDebug = false;
111 $wgSessionsInMemcached = false;
112 $wgLinkCacheMemcached = false; # Not fully tested
113
114 # Language settings
115 #
116 $wgLanguageCode = 'en';
117 $wgLanguageFile = false; # Filename of a language file generated by dumpMessages.php
118 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
119 $wgInputEncoding = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this
120 $wgOutputEncoding = 'ISO-8859-1'; # unless you set the next option to true:
121 $wgUseLatin1 = false; # Enable ISO-8859-1 compatibility mode
122 $wgEditEncoding = '';
123 $wgMimeType = 'text/html';
124 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
125 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
126 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
127 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
128 $wgAmericanDates = false; # Enable for English module to print dates
129 # as eg 'May 12' instead of '12 May'
130 $wgTranslateNumerals = true; # For Hindi and Arabic use local numerals instead
131 # of Western style (0-9) numerals in interface.
132
133 $wgLocalInterwiki = 'w';
134 $wgShowIPinHeader = true; # For non-logged in users
135 $wgMaxNameChars = 32; # Maximum number of bytes in username
136 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
137
138 # Translation using MediaWiki: namespace
139 # This will increase load times by 25-60% unless memcached is installed
140 $wgUseDatabaseMessages = true;
141 $wgMsgCacheExpiry = 86400;
142
143 $wgExtraSubtitle = '';
144 $wgSiteSupportPage = '';
145
146 # Miscellaneous configuration settings
147 #
148 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
149
150 # The debug log file should be not be publicly accessible if it is
151 # used, as it may contain private data.
152 $wgDebugLogFile = '';
153 $wgDebugRedirects = false;
154 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
155
156 $wgDebugComments = false;
157 $wgReadOnly = false;
158 $wgLogQueries = false;
159 $wgDebugDumpSql = false;
160
161 # Whether to disable automatic generation of "we're sorry,
162 # but there has been a database error" pages.
163 $wgIgnoreSQLErrors = false;
164
165 # Should [[Category:Dog]] on a page associate it with the
166 # category "Dog"? (a link to that category page will be
167 # added to the article, clicking it reveals a list of
168 # all articles in the category)
169 $wgUseCategoryMagic = true;
170
171 # disable experimental dmoz-like category browsing. Output things like:
172 # Encyclopedia > Music > Style of Music > Jazz
173 # FIXME: need fixing
174 $wgUseCategoryBrowser = false;
175
176 $wgEnablePersistentLC = false; # Obsolete, do not use
177 $wgCompressedPersistentLC = true; # use gzcompressed blobs
178
179 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
180
181 # wgHitcounterUpdateFreq sets how often page counters should be
182 # updated, higher values are easier on the database. A value of 1
183 # causes the counters to be updated on every hit, any higher value n
184 # cause them to update *on average* every n hits. Should be set to
185 # either 1 or something largish, eg 1000, for maximum efficiency.
186
187 $wgHitcounterUpdateFreq = 1;
188
189 # User rights
190 $wgWhitelistEdit = false; # true = user must login to edit.
191 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
192 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
193 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
194 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
195 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
196 # strtotime format, or "infinite" for an infinite block
197 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
198 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
199 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
200 $wgProxyScriptPath = "$IP/proxy_check.php";
201 $wgProxyMemcExpiry = 86400;
202 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
203 $wgProxyList = array(); # big list of banned IP addresses, in the keys not the values
204 $wgAccountCreationThrottle = 0; # Number of accounts each IP address may create, 0 to disable. Requires memcached
205
206 # Client-side caching:
207 $wgCachePages = true; # Allow client-side caching of pages
208
209 # Set this to current time to invalidate all prior cached pages.
210 # Affects both client- and server-side caching.
211 $wgCacheEpoch = '20030516000000';
212
213 # Server-side caching:
214 # This will cache static pages for non-logged-in users
215 # to reduce database traffic on public sites.
216 # Must set $wgShowIPinHeader = false
217 $wgUseFileCache = false;
218 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
219
220 $wgCookieExpiration = 2592000;
221
222 # Squid-related settings
223 #
224 # Enable/disable Squid
225 $wgUseSquid = false;
226 # If you run Squid3 with ESI support, enable this (default:false):
227 $wgUseESI = false;
228 # Internal server name as known to Squid, if different
229 # $wgInternalServer = 'http://yourinternal.tld:8000';
230 $wgInternalServer = $wgServer;
231 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
232 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
233 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
234 $wgSquidMaxage = 18000;
235 # A list of proxy servers (ips if possible) to purge on changes
236 # don't specify ports here (80 is default)
237 # $wgSquidServers = array('127.0.0.1');
238
239 # Maximum number of titles to purge in any one client operation
240 $wgMaxSquidPurgeTitles = 400;
241
242
243 # Set to set an explicit domain on the login cookies
244 # eg, "justthis.domain.org" or ".any.subdomain.net"
245 $wgCookieDomain = '';
246 $wgCookiePath = '/';
247 $wgDisableCookieCheck = false;
248
249 $wgAllowExternalImages = true;
250 $wgMiserMode = false; # Disable database-intensive features
251 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
252 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
253 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
254
255 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
256 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
257 # convert (ImageMagick) installed and available in the PATH.
258 # Please see math/README for more information.
259 $wgUseTeX = false;
260 $wgTexvc = './math/texvc'; # Location of the texvc binary
261
262 # Profiling / debugging
263 $wgProfiling = false; # Enable for more detailed by-function times in debug log
264 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
265 $wgProfileOnly = false; # Don't put non-profiling info into log file
266 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
267 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
268 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
269 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
270 $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
271
272 $wgDisableCounters = false;
273 $wgDisableTextSearch = false;
274 $wgDisableFuzzySearch = false;
275 $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.
276 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
277 $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.
278 $wgDisableAnonTalk = false;
279
280 # We can serve pages compressed in order to save bandwidth,
281 # but this will increase CPU usage.
282 # Requires zlib support enabled in PHP.
283 $wgUseGzip = function_exists( 'gzencode' );
284
285 # Path to the GNU diff3 utility. If the file doesn't exist,
286 # edit conflicts will fall back to the old behaviour (no merging).
287 $wgDiff3 = '/usr/bin/diff3';
288
289 # We can also compress text in the old revisions table. If this is set on,
290 # old revisions will be compressed on page save if zlib support is available.
291 # Any compressed revisions will be decompressed on load regardless of this
292 # setting *but will not be readable at all* if zlib support is not available.
293 $wgCompressRevisions = false;
294
295 # This is the list of preferred extensions for uploading files. Uploading
296 # files with extensions not in this list will trigger a warning.
297 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
298
299 # Files with these extensions will never be allowed as uploads.
300 $wgFileBlacklist = array(
301 # HTML may contain cookie-stealing JavaScript and web bugs
302 'html', 'htm',
303 # PHP scripts may execute arbitrary code on the server
304 'php', 'phtml', 'php3', 'php4', 'phps',
305 # Other types that may be interpreted by some servers
306 'shtml', 'jhtml', 'pl', 'py',
307 # May contain harmful executables for Windows victims
308 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
309
310 # This is a flag to determine whether or not to check file extensions on
311 # upload.
312 $wgCheckFileExtensions = true;
313
314 # If this is turned off, users may override the warning for files not
315 # covered by $wgFileExtensions.
316 $wgStrictFileExtensions = true;
317
318 # Warn if uploaded files are larger than this
319 $wgUploadSizeWarning = 150000;
320
321 $wgPasswordSalt = true; # For compatibility with old installations set to false
322
323 # Which namespaces should support subpages?
324 # See Language.php for a list of namespaces.
325 #
326 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
327 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
328
329 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
330 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
331
332 # If set, a bold ugly notice will show up at the top of every page.
333 $wgSiteNotice = "";
334
335 # Whether to allow anonymous users to set changes to 'minor'
336 $wgAllowAnonymousMinor = false;
337
338 ## Set $wgUseImageResize to true if you want to enable dynamic
339 ## server side image resizing ("Thumbnails")
340 #
341 $wgUseImageResize = false;
342
343 ## Resizing can be done using PHP's internal image libraries
344 ## or using ImageMagick. The later supports more file formats
345 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
346 ##
347 ## Set $wgUseImageMagick to true to use Image Magick instead
348 ## of the builtin functions
349 #
350 $wgUseImageMagick = false;
351 $wgImageMagickConvertCommand = '/usr/bin/convert';
352
353 # PHPTal is a library for page templates. MediaWiki includes
354 # a recent PHPTal distribution. It is required to use the
355 # Monobook (default) skin.
356 #
357 # Currently it does not work on PHP5.
358 $wgUsePHPTal = version_compare( phpversion(), "5.0", "lt" );
359
360 if( !isset( $wgCommandLineMode ) ) {
361 $wgCommandLineMode = false;
362 }
363
364 # Show seconds in Recent Changes
365 $wgRCSeconds = false;
366
367 # Log IP addresses in the recentchanges table
368 $wgPutIPinRC = false;
369
370 # RDF metadata toggles
371 $wgEnableDublinCoreRdf = false;
372 $wgEnableCreativeCommonsRdf = false;
373
374 # Override for copyright metadata.
375 # TODO: these options need documentation
376 $wgRightsPage = NULL;
377 $wgRightsUrl = NULL;
378 $wgRightsText = NULL;
379 $wgRightsIcon = NULL;
380
381 # Set this to true if you want detailed copyright information forms on Upload.
382 $wgUseCopyrightUpload = false;
383
384 # Set this to false if you want to disable checking that detailed
385 # copyright information values are not empty.
386 $wgCheckCopyrightUpload = true;
387
388
389 # Set this to false to avoid forcing the first letter of links
390 # to capitals. WARNING: may break links! This makes links
391 # COMPLETELY case-sensitive. Links appearing with a capital at
392 # the beginning of a sentence will *not* go to the same place
393 # as links in the middle of a sentence using a lowercase initial.
394 $wgCapitalLinks = true;
395
396 # List of interwiki prefixes for wikis we'll accept as sources
397 # for Special:Import (for sysops). Since complete page history
398 # can be imported, these should be 'trusted'.
399 $wgImportSources = array();
400
401 # Set this to the number of authors that you want to be credited below an
402 # article text. Set it to zero to hide the attribution block, and a
403 # negative number (like -1) to show all authors. Note that this will
404 # require 2-3 extra database hits, which can have a not insignificant
405 # impact on performance for large wikis.
406 $wgMaxCredits = 0;
407
408 # If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
409 # Otherwise, link to a separate credits page.
410 $wgShowCreditsIfMax = true;
411
412 # Text matching this regular expression will be recognised as spam
413 # See http://en.wikipedia.org/wiki/Regular_expression
414 $wgSpamRegex = false;
415 # Similarly if this function returns true
416 $wgFilterCallback = false;
417
418 # Go button goes straight to the edit screen if the article doesn't exist
419 $wgGoToEdit = false;
420
421 # Allow limited user-specified HTML in wiki pages?
422 # It will be run through a whitelist for security.
423 # Set this to false if you want wiki pages to consist only of wiki
424 # markup. Note that replacements do not yet exist for all HTML
425 # constructs.
426 $wgUserHtml = true;
427
428 # Allow raw, unchecked HTML in <html>...</html> sections.
429 # THIS IS VERY DANGEROUS on a publically editable site.
430 # Don't enable it unless you've restricted editing to trusted
431 # users only.
432 $wgRawHtml = false;
433
434 # $wgUseTidy: use tidy to make sure HTML output is sane.
435 # This should only be enabled if $wgUserHtml is true.
436 # tidy is a free tool that fixes broken HTML.
437 # See http://www.w3.org/People/Raggett/tidy/
438 # $wgTidyBin should be set to the path of the binary and
439 # $wgTidyConf to the path of the configuration file.
440 # $wgTidyOpts can include any number of parameters.
441 $wgUseTidy = false;
442 $wgTidyBin = 'tidy';
443 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
444 $wgTidyOpts = '';
445
446 # See list of skins and their symbolic names in language/Language.php
447 $wgDefaultSkin = 'monobook';
448
449 # Whether or not to allow real name fields. Defaults to true.
450 $wgAllowRealName = true;
451
452 # Extensions
453 $wgExtensionFunctions = array();
454
455 # Allow user Javascript page?
456 $wgAllowUserJs = true;
457
458 # Allow user Cascading Style Sheets (CSS)?
459 $wgAllowUserCss = true;
460
461 # Filter for Special:Randompage. Part of a WHERE clause
462 $wgExtraRandompageSQL = false;
463
464 # Allow the "info" action, very inefficient at the moment
465 $wgAllowPageInfo = false;
466
467 # Maximum indent level of toc.
468 $wgMaxTocLevel = 999;
469
470 # Recognise longitude/latitude coordinates
471 $wgUseGeoMode = false;
472
473 # Validation for print or other production versions
474 $wgUseValidation = false;
475
476 # Use external C++ diff engine (module wikidiff from the
477 # extensions package)
478 $wgUseExternalDiffEngine = false;
479
480 # Use RC Patrolling to check for vandalism
481 $wgUseRCPatrol = true;
482
483 } else {
484 die();
485 }
486 ?>