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