Merge branch 'master' of ssh://gerrit.wikimedia.org:29418/mediawiki/core into Wikidata
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2 /**
3 * Default values for configuration settings.
4 *
5 *
6 * NEVER EDIT THIS FILE
7 *
8 *
9 * To customize your installation, edit "LocalSettings.php". If you make
10 * changes here, they will be lost on next upgrade of MediaWiki!
11 *
12 * In this file, variables whose default values depend on other
13 * variables are set to false. The actual default value of these variables
14 * will only be set in Setup.php, taking into account any custom settings
15 * performed in LocalSettings.php.
16 *
17 * Documentation is in the source and on:
18 * http://www.mediawiki.org/wiki/Manual:Configuration_settings
19 *
20 * This program is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU General Public License as published by
22 * the Free Software Foundation; either version 2 of the License, or
23 * (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
29 *
30 * You should have received a copy of the GNU General Public License along
31 * with this program; if not, write to the Free Software Foundation, Inc.,
32 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33 * http://www.gnu.org/copyleft/gpl.html
34 *
35 * @file
36 */
37
38 /**
39 * @cond file_level_code
40 * This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
41 */
42 if( !defined( 'MEDIAWIKI' ) ) {
43 echo "This file is part of MediaWiki and is not a valid entry point\n";
44 die( 1 );
45 }
46
47 # Create a site configuration object. Not used for much in a default install.
48 # Note: this (and other things) will break if the autoloader is not enabled.
49 # Please include includes/AutoLoader.php before including this file.
50 $wgConf = new SiteConfiguration;
51 /** @endcond */
52
53 /** MediaWiki version number */
54 $wgVersion = '1.20alpha';
55
56 /** Name of the site. It must be changed in LocalSettings.php */
57 $wgSitename = 'MediaWiki';
58
59 /**
60 * URL of the server.
61 *
62 * Example:
63 * <code>
64 * $wgServer = 'http://example.com';
65 * </code>
66 *
67 * This is usually detected correctly by MediaWiki. If MediaWiki detects the
68 * wrong server, it will redirect incorrectly after you save a page. In that
69 * case, set this variable to fix it.
70 *
71 * If you want to use protocol-relative URLs on your wiki, set this to a
72 * protocol-relative URL like '//example.com' and set $wgCanonicalServer
73 * to a fully qualified URL.
74 */
75 $wgServer = WebRequest::detectServer();
76
77 /**
78 * Canonical URL of the server, to use in IRC feeds and notification e-mails.
79 * Must be fully qualified, even if $wgServer is protocol-relative.
80 *
81 * Defaults to $wgServer, expanded to a fully qualified http:// URL if needed.
82 */
83 $wgCanonicalServer = false;
84
85 /************************************************************************//**
86 * @name Script path settings
87 * @{
88 */
89
90 /**
91 * The path we should point to.
92 * It might be a virtual path in case with use apache mod_rewrite for example.
93 *
94 * This *needs* to be set correctly.
95 *
96 * Other paths will be set to defaults based on it unless they are directly
97 * set in LocalSettings.php
98 */
99 $wgScriptPath = '/wiki';
100
101 /**
102 * Whether to support URLs like index.php/Page_title These often break when PHP
103 * is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set,
104 * but then again it may not; lighttpd converts incoming path data to lowercase
105 * on systems with case-insensitive filesystems, and there have been reports of
106 * problems on Apache as well.
107 *
108 * To be safe we'll continue to keep it off by default.
109 *
110 * Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly
111 * incorrect garbage, or to true if it is really correct.
112 *
113 * The default $wgArticlePath will be set based on this value at runtime, but if
114 * you have customized it, having this incorrectly set to true can cause
115 * redirect loops when "pretty URLs" are used.
116 */
117 $wgUsePathInfo =
118 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
119 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
120 ( strpos( php_sapi_name(), 'isapi' ) === false );
121
122 /**
123 * The extension to append to script names by default. This can either be .php
124 * or .php5.
125 *
126 * Some hosting providers use PHP 4 for *.php files, and PHP 5 for *.php5. This
127 * variable is provided to support those providers.
128 */
129 $wgScriptExtension = '.php';
130
131 /**
132 * The URL path to index.php.
133 *
134 * Will default to "{$wgScriptPath}/index{$wgScriptExtension}" in Setup.php
135 */
136 $wgScript = false;
137
138 /**
139 * The URL path to redirect.php. This is a script that is used by the Nostalgia
140 * skin.
141 *
142 * Will default to "{$wgScriptPath}/redirect{$wgScriptExtension}" in Setup.php
143 */
144 $wgRedirectScript = false;
145
146 /**
147 * The URL path to load.php.
148 *
149 * Defaults to "{$wgScriptPath}/load{$wgScriptExtension}".
150 */
151 $wgLoadScript = false;
152
153
154 /**@}*/
155
156 /************************************************************************//**
157 * @name URLs and file paths
158 *
159 * These various web and file path variables are set to their defaults
160 * in Setup.php if they are not explicitly set from LocalSettings.php.
161 *
162 * These will relatively rarely need to be set manually, unless you are
163 * splitting style sheets or images outside the main document root.
164 *
165 * In this section, a "path" is usually a host-relative URL, i.e. a URL without
166 * the host part, that starts with a slash. In most cases a full URL is also
167 * acceptable. A "directory" is a local file path.
168 *
169 * In both paths and directories, trailing slashes should not be included.
170 *
171 * @{
172 */
173
174 /**
175 * The URL path of the skins directory. Will default to "{$wgScriptPath}/skins" in Setup.php
176 */
177 $wgStylePath = false;
178 $wgStyleSheetPath = &$wgStylePath;
179
180 /**
181 * The URL path of the skins directory. Should not point to an external domain.
182 * Defaults to "{$wgScriptPath}/skins".
183 */
184 $wgLocalStylePath = false;
185
186 /**
187 * The URL path of the extensions directory.
188 * Defaults to "{$wgScriptPath}/extensions".
189 * @since 1.16
190 */
191 $wgExtensionAssetsPath = false;
192
193 /**
194 * Filesystem stylesheets directory. Will default to "{$IP}/skins" in Setup.php
195 */
196 $wgStyleDirectory = false;
197
198 /**
199 * The URL path for primary article page views. This path should contain $1,
200 * which is replaced by the article title.
201 *
202 * Will default to "{$wgScript}/$1" or "{$wgScript}?title=$1" in Setup.php,
203 * depending on $wgUsePathInfo.
204 */
205 $wgArticlePath = false;
206
207 /**
208 * The URL path for the images directory. Will default to "{$wgScriptPath}/images" in Setup.php
209 */
210 $wgUploadPath = false;
211
212 /**
213 * The maximum age of temporary (incomplete) uploaded files
214 */
215 $wgUploadStashMaxAge = 6 * 3600; // 6 hours
216
217 /**
218 * The filesystem path of the images directory. Defaults to "{$IP}/images".
219 */
220 $wgUploadDirectory = false;
221
222 /**
223 * The URL path of the wiki logo. The logo size should be 135x135 pixels.
224 * Will default to "{$wgStylePath}/common/images/wiki.png" in Setup.php
225 */
226 $wgLogo = false;
227
228 /**
229 * The URL path of the shortcut icon.
230 */
231 $wgFavicon = '/favicon.ico';
232
233 /**
234 * The URL path of the icon for iPhone and iPod Touch web app bookmarks.
235 * Defaults to no icon.
236 */
237 $wgAppleTouchIcon = false;
238
239 /**
240 * The local filesystem path to a temporary directory. This is not required to
241 * be web accessible.
242 *
243 * Will default to "{$wgUploadDirectory}/tmp" in Setup.php
244 */
245 $wgTmpDirectory = false;
246
247 /**
248 * If set, this URL is added to the start of $wgUploadPath to form a complete
249 * upload URL.
250 */
251 $wgUploadBaseUrl = '';
252
253 /**
254 * To enable remote on-demand scaling, set this to the thumbnail base URL.
255 * Full thumbnail URL will be like $wgUploadStashScalerBaseUrl/e/e6/Foo.jpg/123px-Foo.jpg
256 * where 'e6' are the first two characters of the MD5 hash of the file name.
257 * If $wgUploadStashScalerBaseUrl is set to false, thumbs are rendered locally as needed.
258 */
259 $wgUploadStashScalerBaseUrl = false;
260
261 /**
262 * To set 'pretty' URL paths for actions other than
263 * plain page views, add to this array. For instance:
264 * 'edit' => "$wgScriptPath/edit/$1"
265 *
266 * There must be an appropriate script or rewrite rule
267 * in place to handle these URLs.
268 */
269 $wgActionPaths = array();
270
271 /**@}*/
272
273 /************************************************************************//**
274 * @name Files and file uploads
275 * @{
276 */
277
278 /** Uploads have to be specially set up to be secure */
279 $wgEnableUploads = false;
280
281 /** Allows to move images and other media files */
282 $wgAllowImageMoving = true;
283
284 /**
285 * These are additional characters that should be replaced with '-' in file names
286 */
287 $wgIllegalFileChars = ":";
288
289 /**
290 * @deprecated since 1.17 use $wgDeletedDirectory
291 */
292 $wgFileStore = array();
293
294 /**
295 * What directory to place deleted uploads in
296 */
297 $wgDeletedDirectory = false; // Defaults to $wgUploadDirectory/deleted
298
299 /**
300 * Set this to true if you use img_auth and want the user to see details on why access failed.
301 */
302 $wgImgAuthDetails = false;
303
304 /**
305 * If this is enabled, img_auth.php will not allow image access unless the wiki
306 * is private. This improves security when image uploads are hosted on a
307 * separate domain.
308 */
309 $wgImgAuthPublicTest = true;
310
311 /**
312 * File repository structures
313 *
314 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepos is
315 * an array of such structures. Each repository structure is an associative
316 * array of properties configuring the repository.
317 *
318 * Properties required for all repos:
319 * - class The class name for the repository. May come from the core or an extension.
320 * The core repository classes are FileRepo, LocalRepo, ForeignDBRepo.
321 * FSRepo is also supported for backwards compatibility.
322 *
323 * - name A unique name for the repository (but $wgLocalFileRepo should be 'local').
324 * The name should consist of alpha-numberic characters.
325 * - backend A file backend name (see $wgFileBackends).
326 *
327 * For most core repos:
328 * - zones Associative array of zone names that each map to an array with:
329 * container : backend container name the zone is in
330 * directory : root path within container for the zone
331 * url : base URL to the root of the zone
332 * Zones default to using <repo name>-<zone name> as the container name
333 * and default to using the container root as the zone's root directory.
334 * Nesting of zone locations within other zones should be avoided.
335 * - url Public zone URL. The 'zones' settings take precedence.
336 * - hashLevels The number of directory levels for hash-based division of files
337 * - thumbScriptUrl The URL for thumb.php (optional, not recommended)
338 * - transformVia404 Whether to skip media file transformation on parse and rely on a 404
339 * handler instead.
340 * - initialCapital Equivalent to $wgCapitalLinks (or $wgCapitalLinkOverrides[NS_FILE],
341 * determines whether filenames implicitly start with a capital letter.
342 * The current implementation may give incorrect description page links
343 * when the local $wgCapitalLinks and initialCapital are mismatched.
344 * - pathDisclosureProtection
345 * May be 'paranoid' to remove all parameters from error messages, 'none' to
346 * leave the paths in unchanged, or 'simple' to replace paths with
347 * placeholders. Default for LocalRepo is 'simple'.
348 * - fileMode This allows wikis to set the file mode when uploading/moving files. Default
349 * is 0644.
350 * - directory The local filesystem directory where public files are stored. Not used for
351 * some remote repos.
352 * - thumbDir The base thumbnail directory. Defaults to <directory>/thumb.
353 * - thumbUrl The base thumbnail URL. Defaults to <url>/thumb.
354 *
355 *
356 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
357 * for local repositories:
358 * - descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/File:
359 * - scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
360 * http://en.wikipedia.org/w
361 * - scriptExtension Script extension of the MediaWiki installation, equivalent to
362 * $wgScriptExtension, e.g. .php5 defaults to .php
363 *
364 * - articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
365 * - fetchDescription Fetch the text of the remote file description page. Equivalent to
366 * $wgFetchCommonsDescriptions.
367 *
368 * ForeignDBRepo:
369 * - dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
370 * equivalent to the corresponding member of $wgDBservers
371 * - tablePrefix Table prefix, the foreign wiki's $wgDBprefix
372 * - hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
373 *
374 * ForeignAPIRepo:
375 * - apibase Use for the foreign API's URL
376 * - apiThumbCacheExpiry How long to locally cache thumbs for
377 *
378 * If you leave $wgLocalFileRepo set to false, Setup will fill in appropriate values.
379 * Otherwise, set $wgLocalFileRepo to a repository structure as described above.
380 * If you set $wgUseInstantCommons to true, it will add an entry for Commons.
381 * If you set $wgForeignFileRepos to an array of repostory structures, those will
382 * be searched after the local file repo.
383 * Otherwise, you will only have access to local media files.
384 *
385 * @see Setup.php for an example usage and default initialization.
386 */
387 $wgLocalFileRepo = false;
388
389 /** @see $wgLocalFileRepo */
390 $wgForeignFileRepos = array();
391
392 /**
393 * Use Commons as a remote file repository. Essentially a wrapper, when this
394 * is enabled $wgForeignFileRepos will point at Commons with a set of default
395 * settings
396 */
397 $wgUseInstantCommons = false;
398
399 /**
400 * File backend structure configuration.
401 * This is an array of file backend configuration arrays.
402 * Each backend configuration has the following parameters:
403 * 'name' : A unique name for the backend
404 * 'class' : The file backend class to use
405 * 'wikiId' : A unique string that identifies the wiki (container prefix)
406 * 'lockManager' : The name of a lock manager (see $wgLockManagers)
407 * Additional parameters are specific to the class used.
408 */
409 $wgFileBackends = array();
410
411 /**
412 * Array of configuration arrays for each lock manager.
413 * Each backend configuration has the following parameters:
414 * 'name' : A unique name for the lock manger
415 * 'class' : The lock manger class to use
416 * Additional parameters are specific to the class used.
417 */
418 $wgLockManagers = array();
419
420 /**
421 * Show EXIF data, on by default if available.
422 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
423 *
424 * NOTE FOR WINDOWS USERS:
425 * To enable EXIF functions, add the following lines to the
426 * "Windows extensions" section of php.ini:
427 *
428 * extension=extensions/php_mbstring.dll
429 * extension=extensions/php_exif.dll
430 */
431 $wgShowEXIF = function_exists( 'exif_read_data' );
432
433 /**
434 * If to automatically update the img_metadata field
435 * if the metadata field is outdated but compatible with the current version.
436 * Defaults to false.
437 */
438 $wgUpdateCompatibleMetadata = false;
439
440 /**
441 * If you operate multiple wikis, you can define a shared upload path here.
442 * Uploads to this wiki will NOT be put there - they will be put into
443 * $wgUploadDirectory.
444 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
445 * no file of the given name is found in the local repository (for [[File:..]],
446 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
447 * directory.
448 *
449 * Note that these configuration settings can now be defined on a per-
450 * repository basis for an arbitrary number of file repositories, using the
451 * $wgForeignFileRepos variable.
452 */
453 $wgUseSharedUploads = false;
454 /** Full path on the web server where shared uploads can be found */
455 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
456 /** Fetch commons image description pages and display them on the local wiki? */
457 $wgFetchCommonsDescriptions = false;
458 /** Path on the file system where shared uploads can be found. */
459 $wgSharedUploadDirectory = "/var/www/wiki3/images";
460 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
461 $wgSharedUploadDBname = false;
462 /** Optional table prefix used in database. */
463 $wgSharedUploadDBprefix = '';
464 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
465 $wgCacheSharedUploads = true;
466 /**
467 * Allow for upload to be copied from an URL. Requires Special:Upload?source=web
468 * The timeout for copy uploads is set by $wgHTTPTimeout.
469 */
470 $wgAllowCopyUploads = false;
471 /**
472 * Allow asynchronous copy uploads.
473 * This feature is experimental and broken as of r81612.
474 */
475 $wgAllowAsyncCopyUploads = false;
476 /**
477 * A list of domains copy uploads can come from
478 */
479 $wgCopyUploadsDomains = array();
480
481 /**
482 * Max size for uploads, in bytes. If not set to an array, applies to all
483 * uploads. If set to an array, per upload type maximums can be set, using the
484 * file and url keys. If the * key is set this value will be used as maximum
485 * for non-specified types.
486 *
487 * For example:
488 * $wgMaxUploadSize = array(
489 * '*' => 250 * 1024,
490 * 'url' => 500 * 1024,
491 * );
492 * Sets the maximum for all uploads to 250 kB except for upload-by-url, which
493 * will have a maximum of 500 kB.
494 *
495 */
496 $wgMaxUploadSize = 1024*1024*100; # 100MB
497
498 /**
499 * Point the upload navigation link to an external URL
500 * Useful if you want to use a shared repository by default
501 * without disabling local uploads (use $wgEnableUploads = false for that)
502 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
503 */
504 $wgUploadNavigationUrl = false;
505
506 /**
507 * Point the upload link for missing files to an external URL, as with
508 * $wgUploadNavigationUrl. The URL will get (?|&)wpDestFile=<filename>
509 * appended to it as appropriate.
510 */
511 $wgUploadMissingFileUrl = false;
512
513 /**
514 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
515 * generating them on render and outputting a static URL. This is necessary if some of your
516 * apache servers don't have read/write access to the thumbnail path.
517 *
518 * Example:
519 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
520 */
521 $wgThumbnailScriptPath = false;
522 $wgSharedThumbnailScriptPath = false;
523
524 /**
525 * Set this to false if you do not want MediaWiki to divide your images
526 * directory into many subdirectories, for improved performance.
527 *
528 * It's almost always good to leave this enabled. In previous versions of
529 * MediaWiki, some users set this to false to allow images to be added to the
530 * wiki by simply copying them into $wgUploadDirectory and then running
531 * maintenance/rebuildImages.php to register them in the database. This is no
532 * longer recommended, use maintenance/importImages.php instead.
533 *
534 * Note that this variable may be ignored if $wgLocalFileRepo is set.
535 */
536 $wgHashedUploadDirectory = true;
537
538 /**
539 * Set the following to false especially if you have a set of files that need to
540 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
541 * directory layout.
542 */
543 $wgHashedSharedUploadDirectory = true;
544
545 /**
546 * Base URL for a repository wiki. Leave this blank if uploads are just stored
547 * in a shared directory and not meant to be accessible through a separate wiki.
548 * Otherwise the image description pages on the local wiki will link to the
549 * image description page on this wiki.
550 *
551 * Please specify the namespace, as in the example below.
552 */
553 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:";
554
555 /**
556 * This is the list of preferred extensions for uploading files. Uploading files
557 * with extensions not in this list will trigger a warning.
558 *
559 * WARNING: If you add any OpenOffice or Microsoft Office file formats here,
560 * such as odt or doc, and untrusted users are allowed to upload files, then
561 * your wiki will be vulnerable to cross-site request forgery (CSRF).
562 */
563 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
564
565 /** Files with these extensions will never be allowed as uploads. */
566 $wgFileBlacklist = array(
567 # HTML may contain cookie-stealing JavaScript and web bugs
568 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
569 # PHP scripts may execute arbitrary code on the server
570 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
571 # Other types that may be interpreted by some servers
572 'shtml', 'jhtml', 'pl', 'py', 'cgi',
573 # May contain harmful executables for Windows victims
574 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
575
576 /**
577 * Files with these mime types will never be allowed as uploads
578 * if $wgVerifyMimeType is enabled.
579 */
580 $wgMimeTypeBlacklist = array(
581 # HTML may contain cookie-stealing JavaScript and web bugs
582 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
583 # PHP scripts may execute arbitrary code on the server
584 'application/x-php', 'text/x-php',
585 # Other types that may be interpreted by some servers
586 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
587 # Client-side hazards on Internet Explorer
588 'text/scriptlet', 'application/x-msdownload',
589 # Windows metafile, client-side vulnerability on some systems
590 'application/x-msmetafile',
591 );
592
593 /**
594 * Allow Java archive uploads.
595 * This is not recommended for public wikis since a maliciously-constructed
596 * applet running on the same domain as the wiki can steal the user's cookies.
597 */
598 $wgAllowJavaUploads = false;
599
600 /**
601 * This is a flag to determine whether or not to check file extensions on upload.
602 *
603 * WARNING: setting this to false is insecure for public wikis.
604 */
605 $wgCheckFileExtensions = true;
606
607 /**
608 * If this is turned off, users may override the warning for files not covered
609 * by $wgFileExtensions.
610 *
611 * WARNING: setting this to false is insecure for public wikis.
612 */
613 $wgStrictFileExtensions = true;
614
615 /**
616 * Setting this to true will disable the upload system's checks for HTML/JavaScript.
617 * THIS IS VERY DANGEROUS on a publicly editable site, so USE wgGroupPermissions
618 * TO RESTRICT UPLOADING to only those that you trust
619 */
620 $wgDisableUploadScriptChecks = false;
621
622 /** Warn if uploaded files are larger than this (in bytes), or false to disable*/
623 $wgUploadSizeWarning = false;
624
625 /**
626 * list of trusted media-types and mime types.
627 * Use the MEDIATYPE_xxx constants to represent media types.
628 * This list is used by File::isSafeFile
629 *
630 * Types not listed here will have a warning about unsafe content
631 * displayed on the images description page. It would also be possible
632 * to use this for further restrictions, like disabling direct
633 * [[media:...]] links for non-trusted formats.
634 */
635 $wgTrustedMediaFormats = array(
636 MEDIATYPE_BITMAP, //all bitmap formats
637 MEDIATYPE_AUDIO, //all audio formats
638 MEDIATYPE_VIDEO, //all plain video formats
639 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
640 "application/pdf", //PDF files
641 #"application/x-shockwave-flash", //flash/shockwave movie
642 );
643
644 /**
645 * Plugins for media file type handling.
646 * Each entry in the array maps a MIME type to a class name
647 */
648 $wgMediaHandlers = array(
649 'image/jpeg' => 'JpegHandler',
650 'image/png' => 'PNGHandler',
651 'image/gif' => 'GIFHandler',
652 'image/tiff' => 'TiffHandler',
653 'image/x-ms-bmp' => 'BmpHandler',
654 'image/x-bmp' => 'BmpHandler',
655 'image/x-xcf' => 'XCFHandler',
656 'image/svg+xml' => 'SvgHandler', // official
657 'image/svg' => 'SvgHandler', // compat
658 'image/vnd.djvu' => 'DjVuHandler', // official
659 'image/x.djvu' => 'DjVuHandler', // compat
660 'image/x-djvu' => 'DjVuHandler', // compat
661 );
662
663 /**
664 * Plugins for page content model handling.
665 * Each entry in the array maps a model id to a class name
666 */
667 $wgContentHandlers = array(
668 CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler', // the usual case
669 CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler', // dumb version, no syntax highlighting
670 CONTENT_MODEL_CSS => 'CssContentHandler', // dumb version, no syntax highlighting
671 CONTENT_MODEL_TEXT => 'TextContentHandler', // dumb plain text in <pre>
672 );
673
674 /**
675 * Mime types for content formats.
676 * Each entry in the array maps a content format to a mime type.
677 *
678 * Extensions that define their own content formats can register
679 * the appropriate mime types in this array.
680 *
681 * Such extensions shall use content format IDs
682 * larger than 100 and register the ids they use at
683 * <http://mediawiki.org/ContentHandler/registry>
684 * to avoid conflicts with other extensions.
685 */
686 $wgContentFormatMimeTypes = array(
687 CONTENT_FORMAT_WIKITEXT => 'text/x-wiki',
688 CONTENT_FORMAT_JAVASCRIPT => 'text/javascript',
689 CONTENT_FORMAT_CSS => 'text/css',
690 CONTENT_FORMAT_TEXT => 'text/plain',
691 CONTENT_FORMAT_HTML => 'text/html',
692 CONTENT_FORMAT_XML => 'application/xml',
693 CONTENT_FORMAT_JSON => 'application/json',
694 CONTENT_FORMAT_SERIALIZED => 'application/vnd.php.serialized',
695 );
696
697 /**
698 * Resizing can be done using PHP's internal image libraries or using
699 * ImageMagick or another third-party converter, e.g. GraphicMagick.
700 * These support more file formats than PHP, which only supports PNG,
701 * GIF, JPG, XBM and WBMP.
702 *
703 * Use Image Magick instead of PHP builtin functions.
704 */
705 $wgUseImageMagick = false;
706 /** The convert command shipped with ImageMagick */
707 $wgImageMagickConvertCommand = '/usr/bin/convert';
708 /** The identify command shipped with ImageMagick */
709 $wgImageMagickIdentifyCommand = '/usr/bin/identify';
710
711 /** Sharpening parameter to ImageMagick */
712 $wgSharpenParameter = '0x0.4';
713
714 /** Reduction in linear dimensions below which sharpening will be enabled */
715 $wgSharpenReductionThreshold = 0.85;
716
717 /**
718 * Temporary directory used for ImageMagick. The directory must exist. Leave
719 * this set to false to let ImageMagick decide for itself.
720 */
721 $wgImageMagickTempDir = false;
722
723 /**
724 * Use another resizing converter, e.g. GraphicMagick
725 * %s will be replaced with the source path, %d with the destination
726 * %w and %h will be replaced with the width and height.
727 *
728 * Example for GraphicMagick:
729 * <code>
730 * $wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
731 * </code>
732 *
733 * Leave as false to skip this.
734 */
735 $wgCustomConvertCommand = false;
736
737 /**
738 * Some tests and extensions use exiv2 to manipulate the EXIF metadata in some image formats.
739 */
740 $wgExiv2Command = '/usr/bin/exiv2';
741
742 /**
743 * Scalable Vector Graphics (SVG) may be uploaded as images.
744 * Since SVG support is not yet standard in browsers, it is
745 * necessary to rasterize SVGs to PNG as a fallback format.
746 *
747 * An external program is required to perform this conversion.
748 * If set to an array, the first item is a PHP callable and any further items
749 * are passed as parameters after $srcPath, $dstPath, $width, $height
750 */
751 $wgSVGConverters = array(
752 'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output',
753 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
754 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
755 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
756 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
757 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
758 'ImagickExt' => array( 'SvgHandler::rasterizeImagickExt' ),
759 );
760 /** Pick a converter defined in $wgSVGConverters */
761 $wgSVGConverter = 'ImageMagick';
762 /** If not in the executable PATH, specify the SVG converter path. */
763 $wgSVGConverterPath = '';
764 /** Don't scale a SVG larger than this */
765 $wgSVGMaxSize = 2048;
766 /** Don't read SVG metadata beyond this point.
767 * Default is 1024*256 bytes */
768 $wgSVGMetadataCutoff = 262144;
769
770 /**
771 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
772 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
773 * crap files as images. When this directive is on, <title> will be allowed in files with
774 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
775 * and doesn't send appropriate MIME types for SVG images.
776 */
777 $wgAllowTitlesInSVG = false;
778
779 /**
780 * The maximum number of pixels a source image can have if it is to be scaled
781 * down by a scaler that requires the full source image to be decompressed
782 * and stored in decompressed form, before the thumbnail is generated.
783 *
784 * This provides a limit on memory usage for the decompression side of the
785 * image scaler. The limit is used when scaling PNGs with any of the
786 * built-in image scalers, such as ImageMagick or GD. It is ignored for
787 * JPEGs with ImageMagick, and when using the VipsScaler extension.
788 *
789 * The default is 50 MB if decompressed to RGBA form, which corresponds to
790 * 12.5 million pixels or 3500x3500.
791 */
792 $wgMaxImageArea = 1.25e7;
793 /**
794 * Force thumbnailing of animated GIFs above this size to a single
795 * frame instead of an animated thumbnail. As of MW 1.17 this limit
796 * is checked against the total size of all frames in the animation.
797 * It probably makes sense to keep this equal to $wgMaxImageArea.
798 */
799 $wgMaxAnimatedGifArea = 1.25e7;
800 /**
801 * Browsers don't support TIFF inline generally...
802 * For inline display, we need to convert to PNG or JPEG.
803 * Note scaling should work with ImageMagick, but may not with GD scaling.
804 *
805 * Example:
806 * <code>
807 * // PNG is lossless, but inefficient for photos
808 * $wgTiffThumbnailType = array( 'png', 'image/png' );
809 * // JPEG is good for photos, but has no transparency support. Bad for diagrams.
810 * $wgTiffThumbnailType = array( 'jpg', 'image/jpeg' );
811 * </code>
812 */
813 $wgTiffThumbnailType = false;
814
815 /**
816 * If rendered thumbnail files are older than this timestamp, they
817 * will be rerendered on demand as if the file didn't already exist.
818 * Update if there is some need to force thumbs and SVG rasterizations
819 * to rerender, such as fixes to rendering bugs.
820 */
821 $wgThumbnailEpoch = '20030516000000';
822
823 /**
824 * If set, inline scaled images will still produce <img> tags ready for
825 * output instead of showing an error message.
826 *
827 * This may be useful if errors are transitory, especially if the site
828 * is configured to automatically render thumbnails on request.
829 *
830 * On the other hand, it may obscure error conditions from debugging.
831 * Enable the debug log or the 'thumbnail' log group to make sure errors
832 * are logged to a file for review.
833 */
834 $wgIgnoreImageErrors = false;
835
836 /**
837 * Allow thumbnail rendering on page view. If this is false, a valid
838 * thumbnail URL is still output, but no file will be created at
839 * the target location. This may save some time if you have a
840 * thumb.php or 404 handler set up which is faster than the regular
841 * webserver(s).
842 */
843 $wgGenerateThumbnailOnParse = true;
844
845 /**
846 * Show thumbnails for old images on the image description page
847 */
848 $wgShowArchiveThumbnails = true;
849
850 /** Obsolete, always true, kept for compatibility with extensions */
851 $wgUseImageResize = true;
852
853 /**
854 * If set to true, images that contain certain the exif orientation tag will
855 * be rotated accordingly. If set to null, try to auto-detect whether a scaler
856 * is available that can rotate.
857 */
858 $wgEnableAutoRotation = null;
859
860 /**
861 * Internal name of virus scanner. This servers as a key to the
862 * $wgAntivirusSetup array. Set this to NULL to disable virus scanning. If not
863 * null, every file uploaded will be scanned for viruses.
864 */
865 $wgAntivirus = null;
866
867 /**
868 * Configuration for different virus scanners. This an associative array of
869 * associative arrays. It contains one setup array per known scanner type.
870 * The entry is selected by $wgAntivirus, i.e.
871 * valid values for $wgAntivirus are the keys defined in this array.
872 *
873 * The configuration array for each scanner contains the following keys:
874 * "command", "codemap", "messagepattern":
875 *
876 * "command" is the full command to call the virus scanner - %f will be
877 * replaced with the name of the file to scan. If not present, the filename
878 * will be appended to the command. Note that this must be overwritten if the
879 * scanner is not in the system path; in that case, plase set
880 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full
881 * path.
882 *
883 * "codemap" is a mapping of exit code to return codes of the detectVirus
884 * function in SpecialUpload.
885 * - An exit code mapped to AV_SCAN_FAILED causes the function to consider
886 * the scan to be failed. This will pass the file if $wgAntivirusRequired
887 * is not set.
888 * - An exit code mapped to AV_SCAN_ABORTED causes the function to consider
889 * the file to have an usupported format, which is probably imune to
890 * virusses. This causes the file to pass.
891 * - An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning
892 * no virus was found.
893 * - All other codes (like AV_VIRUS_FOUND) will cause the function to report
894 * a virus.
895 * - You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
896 *
897 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
898 * output. The relevant part should be matched as group one (\1).
899 * If not defined or the pattern does not match, the full message is shown to the user.
900 */
901 $wgAntivirusSetup = array(
902
903 #setup for clamav
904 'clamav' => array (
905 'command' => "clamscan --no-summary ",
906
907 'codemap' => array (
908 "0" => AV_NO_VIRUS, # no virus
909 "1" => AV_VIRUS_FOUND, # virus found
910 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune)
911 "*" => AV_SCAN_FAILED, # else scan failed
912 ),
913
914 'messagepattern' => '/.*?:(.*)/sim',
915 ),
916
917 #setup for f-prot
918 'f-prot' => array (
919 'command' => "f-prot ",
920
921 'codemap' => array (
922 "0" => AV_NO_VIRUS, # no virus
923 "3" => AV_VIRUS_FOUND, # virus found
924 "6" => AV_VIRUS_FOUND, # virus found
925 "*" => AV_SCAN_FAILED, # else scan failed
926 ),
927
928 'messagepattern' => '/.*?Infection:(.*)$/m',
929 ),
930 );
931
932
933 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected. */
934 $wgAntivirusRequired = true;
935
936 /** Determines if the mime type of uploaded files should be checked */
937 $wgVerifyMimeType = true;
938
939 /** Sets the mime type definition file to use by MimeMagic.php. */
940 $wgMimeTypeFile = "includes/mime.types";
941 #$wgMimeTypeFile= "/etc/mime.types";
942 #$wgMimeTypeFile= null; #use built-in defaults only.
943
944 /** Sets the mime type info file to use by MimeMagic.php. */
945 $wgMimeInfoFile= "includes/mime.info";
946 #$wgMimeInfoFile= null; #use built-in defaults only.
947
948 /**
949 * Switch for loading the FileInfo extension by PECL at runtime.
950 * This should be used only if fileinfo is installed as a shared object
951 * or a dynamic library.
952 */
953 $wgLoadFileinfoExtension = false;
954
955 /** Sets an external mime detector program. The command must print only
956 * the mime type to standard output.
957 * The name of the file to process will be appended to the command given here.
958 * If not set or NULL, mime_content_type will be used if available.
959 * Example:
960 * <code>
961 * #$wgMimeDetectorCommand = "file -bi"; # use external mime detector (Linux)
962 * </code>
963 */
964 $wgMimeDetectorCommand = null;
965
966 /**
967 * Switch for trivial mime detection. Used by thumb.php to disable all fancy
968 * things, because only a few types of images are needed and file extensions
969 * can be trusted.
970 */
971 $wgTrivialMimeDetection = false;
972
973 /**
974 * Additional XML types we can allow via mime-detection.
975 * array = ( 'rootElement' => 'associatedMimeType' )
976 */
977 $wgXMLMimeTypes = array(
978 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
979 'svg' => 'image/svg+xml',
980 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
981 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
982 'html' => 'text/html', // application/xhtml+xml?
983 );
984
985 /**
986 * Limit images on image description pages to a user-selectable limit. In order
987 * to reduce disk usage, limits can only be selected from a list.
988 * The user preference is saved as an array offset in the database, by default
989 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
990 * change it if you alter the array (see bug 8858).
991 * This is the list of settings the user can choose from:
992 */
993 $wgImageLimits = array(
994 array( 320, 240 ),
995 array( 640, 480 ),
996 array( 800, 600 ),
997 array( 1024, 768 ),
998 array( 1280, 1024 )
999 );
1000
1001 /**
1002 * Adjust thumbnails on image pages according to a user setting. In order to
1003 * reduce disk usage, the values can only be selected from a list. This is the
1004 * list of settings the user can choose from:
1005 */
1006 $wgThumbLimits = array(
1007 120,
1008 150,
1009 180,
1010 200,
1011 250,
1012 300
1013 );
1014
1015 /**
1016 * Default parameters for the <gallery> tag
1017 */
1018 $wgGalleryOptions = array (
1019 'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize
1020 'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
1021 'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
1022 'captionLength' => 25, // Length of caption to truncate (in characters)
1023 'showBytes' => true, // Show the filesize in bytes in categories
1024 );
1025
1026 /**
1027 * Adjust width of upright images when parameter 'upright' is used
1028 * This allows a nicer look for upright images without the need to fix the width
1029 * by hardcoded px in wiki sourcecode.
1030 */
1031 $wgThumbUpright = 0.75;
1032
1033 /**
1034 * Default value for chmoding of new directories.
1035 */
1036 $wgDirectoryMode = 0777;
1037
1038 /**
1039 * DJVU settings
1040 * Path of the djvudump executable
1041 * Enable this and $wgDjvuRenderer to enable djvu rendering
1042 */
1043 # $wgDjvuDump = 'djvudump';
1044 $wgDjvuDump = null;
1045
1046 /**
1047 * Path of the ddjvu DJVU renderer
1048 * Enable this and $wgDjvuDump to enable djvu rendering
1049 */
1050 # $wgDjvuRenderer = 'ddjvu';
1051 $wgDjvuRenderer = null;
1052
1053 /**
1054 * Path of the djvutxt DJVU text extraction utility
1055 * Enable this and $wgDjvuDump to enable text layer extraction from djvu files
1056 */
1057 # $wgDjvuTxt = 'djvutxt';
1058 $wgDjvuTxt = null;
1059
1060 /**
1061 * Path of the djvutoxml executable
1062 * This works like djvudump except much, much slower as of version 3.5.
1063 *
1064 * For now I recommend you use djvudump instead. The djvuxml output is
1065 * probably more stable, so we'll switch back to it as soon as they fix
1066 * the efficiency problem.
1067 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
1068 */
1069 # $wgDjvuToXML = 'djvutoxml';
1070 $wgDjvuToXML = null;
1071
1072
1073 /**
1074 * Shell command for the DJVU post processor
1075 * Default: pnmtopng, since ddjvu generates ppm output
1076 * Set this to false to output the ppm file directly.
1077 */
1078 $wgDjvuPostProcessor = 'pnmtojpeg';
1079 /**
1080 * File extension for the DJVU post processor output
1081 */
1082 $wgDjvuOutputExtension = 'jpg';
1083
1084 /** @} */ # end of file uploads }
1085
1086 /************************************************************************//**
1087 * @name Email settings
1088 * @{
1089 */
1090
1091 $serverName = substr( $wgServer, strrpos( $wgServer, '/' ) + 1 );
1092
1093 /**
1094 * Site admin email address.
1095 */
1096 $wgEmergencyContact = 'wikiadmin@' . $serverName;
1097
1098 /**
1099 * Password reminder email address.
1100 *
1101 * The address we should use as sender when a user is requesting his password.
1102 */
1103 $wgPasswordSender = 'apache@' . $serverName;
1104
1105 unset( $serverName ); # Don't leak local variables to global scope
1106
1107 /**
1108 * Password reminder name
1109 */
1110 $wgPasswordSenderName = 'MediaWiki Mail';
1111
1112 /**
1113 * Dummy address which should be accepted during mail send action.
1114 * It might be necessary to adapt the address or to set it equal
1115 * to the $wgEmergencyContact address.
1116 */
1117 $wgNoReplyAddress = 'reply@not.possible';
1118
1119 /**
1120 * Set to true to enable the e-mail basic features:
1121 * Password reminders, etc. If sending e-mail on your
1122 * server doesn't work, you might want to disable this.
1123 */
1124 $wgEnableEmail = true;
1125
1126 /**
1127 * Set to true to enable user-to-user e-mail.
1128 * This can potentially be abused, as it's hard to track.
1129 */
1130 $wgEnableUserEmail = true;
1131
1132 /**
1133 * Set to true to put the sending user's email in a Reply-To header
1134 * instead of From. ($wgEmergencyContact will be used as From.)
1135 *
1136 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
1137 * which can cause problems with SPF validation and leak recipient addressses
1138 * when bounces are sent to the sender.
1139 */
1140 $wgUserEmailUseReplyTo = false;
1141
1142 /**
1143 * Minimum time, in hours, which must elapse between password reminder
1144 * emails for a given account. This is to prevent abuse by mail flooding.
1145 */
1146 $wgPasswordReminderResendTime = 24;
1147
1148 /**
1149 * The time, in seconds, when an emailed temporary password expires.
1150 */
1151 $wgNewPasswordExpiry = 3600 * 24 * 7;
1152
1153 /**
1154 * The time, in seconds, when an email confirmation email expires
1155 */
1156 $wgUserEmailConfirmationTokenExpiry = 7 * 24 * 60 * 60;
1157
1158 /**
1159 * SMTP Mode
1160 * For using a direct (authenticated) SMTP server connection.
1161 * Default to false or fill an array :
1162 * <code>
1163 * "host" => 'SMTP domain',
1164 * "IDHost" => 'domain for MessageID',
1165 * "port" => "25",
1166 * "auth" => true/false,
1167 * "username" => user,
1168 * "password" => password
1169 * </code>
1170 */
1171 $wgSMTP = false;
1172
1173 /**
1174 * Additional email parameters, will be passed as the last argument to mail() call.
1175 * If using safe_mode this has no effect
1176 */
1177 $wgAdditionalMailParams = null;
1178
1179 /**
1180 * True: from page editor if s/he opted-in. False: Enotif mails appear to come
1181 * from $wgEmergencyContact
1182 */
1183 $wgEnotifFromEditor = false;
1184
1185 // TODO move UPO to preferences probably ?
1186 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1187 # If set to false, the corresponding input form on the user preference page is suppressed
1188 # It call this to be a "user-preferences-option (UPO)"
1189
1190 /**
1191 * Require email authentication before sending mail to an email addres. This is
1192 * highly recommended. It prevents MediaWiki from being used as an open spam
1193 * relay.
1194 */
1195 $wgEmailAuthentication = true;
1196
1197 /**
1198 * Allow users to enable email notification ("enotif") on watchlist changes.
1199 */
1200 $wgEnotifWatchlist = false;
1201
1202 /**
1203 * Allow users to enable email notification ("enotif") when someone edits their
1204 * user talk page.
1205 */
1206 $wgEnotifUserTalk = false;
1207
1208 /**
1209 * Set the Reply-to address in notifications to the editor's address, if user
1210 * allowed this in the preferences.
1211 */
1212 $wgEnotifRevealEditorAddress = false;
1213
1214 /**
1215 * Send notification mails on minor edits to watchlist pages. This is enabled
1216 * by default. Does not affect user talk notifications.
1217 */
1218 $wgEnotifMinorEdits = true;
1219
1220 /**
1221 * Send a generic mail instead of a personalised mail for each user. This
1222 * always uses UTC as the time zone, and doesn't include the username.
1223 *
1224 * For pages with many users watching, this can significantly reduce mail load.
1225 * Has no effect when using sendmail rather than SMTP.
1226 */
1227 $wgEnotifImpersonal = false;
1228
1229 /**
1230 * Maximum number of users to mail at once when using impersonal mail. Should
1231 * match the limit on your mail server.
1232 */
1233 $wgEnotifMaxRecips = 500;
1234
1235 /**
1236 * Send mails via the job queue. This can be useful to reduce the time it
1237 * takes to save a page that a lot of people are watching.
1238 */
1239 $wgEnotifUseJobQ = false;
1240
1241 /**
1242 * Use real name instead of username in e-mail "from" field.
1243 */
1244 $wgEnotifUseRealName = false;
1245
1246 /**
1247 * Array of usernames who will be sent a notification email for every change
1248 * which occurs on a wiki. Users will not be notified of their own changes.
1249 */
1250 $wgUsersNotifiedOnAllChanges = array();
1251
1252
1253 /** @} */ # end of email settings
1254
1255 /************************************************************************//**
1256 * @name Database settings
1257 * @{
1258 */
1259 /** Database host name or IP address */
1260 $wgDBserver = 'localhost';
1261 /** Database port number (for PostgreSQL) */
1262 $wgDBport = 5432;
1263 /** Name of the database */
1264 $wgDBname = 'my_wiki';
1265 /** Database username */
1266 $wgDBuser = 'wikiuser';
1267 /** Database user's password */
1268 $wgDBpassword = '';
1269 /** Database type */
1270 $wgDBtype = 'mysql';
1271
1272 /** Separate username for maintenance tasks. Leave as null to use the default. */
1273 $wgDBadminuser = null;
1274 /** Separate password for maintenance tasks. Leave as null to use the default. */
1275 $wgDBadminpassword = null;
1276
1277 /**
1278 * Search type.
1279 * Leave as null to select the default search engine for the
1280 * selected database type (eg SearchMySQL), or set to a class
1281 * name to override to a custom search engine.
1282 */
1283 $wgSearchType = null;
1284
1285 /** Table name prefix */
1286 $wgDBprefix = '';
1287 /** MySQL table options to use during installation or update */
1288 $wgDBTableOptions = 'ENGINE=InnoDB';
1289
1290 /**
1291 * SQL Mode - default is turning off all modes, including strict, if set.
1292 * null can be used to skip the setting for performance reasons and assume
1293 * DBA has done his best job.
1294 * String override can be used for some additional fun :-)
1295 */
1296 $wgSQLMode = '';
1297
1298 /** Mediawiki schema */
1299 $wgDBmwschema = 'mediawiki';
1300
1301 /** To override default SQLite data directory ($docroot/../data) */
1302 $wgSQLiteDataDir = '';
1303
1304 /**
1305 * Make all database connections secretly go to localhost. Fool the load balancer
1306 * thinking there is an arbitrarily large cluster of servers to connect to.
1307 * Useful for debugging.
1308 */
1309 $wgAllDBsAreLocalhost = false;
1310
1311 /**
1312 * Shared database for multiple wikis. Commonly used for storing a user table
1313 * for single sign-on. The server for this database must be the same as for the
1314 * main database.
1315 *
1316 * For backwards compatibility the shared prefix is set to the same as the local
1317 * prefix, and the user table is listed in the default list of shared tables.
1318 * The user_properties table is also added so that users will continue to have their
1319 * preferences shared (preferences were stored in the user table prior to 1.16)
1320 *
1321 * $wgSharedTables may be customized with a list of tables to share in the shared
1322 * datbase. However it is advised to limit what tables you do share as many of
1323 * MediaWiki's tables may have side effects if you try to share them.
1324 * EXPERIMENTAL
1325 *
1326 * $wgSharedPrefix is the table prefix for the shared database. It defaults to
1327 * $wgDBprefix.
1328 */
1329 $wgSharedDB = null;
1330
1331 /** @see $wgSharedDB */
1332 $wgSharedPrefix = false;
1333 /** @see $wgSharedDB */
1334 $wgSharedTables = array( 'user', 'user_properties' );
1335
1336 /**
1337 * Database load balancer
1338 * This is a two-dimensional array, an array of server info structures
1339 * Fields are:
1340 * - host: Host name
1341 * - dbname: Default database name
1342 * - user: DB user
1343 * - password: DB password
1344 * - type: "mysql" or "postgres"
1345 * - load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
1346 * - groupLoads: array of load ratios, the key is the query group name. A query may belong
1347 * to several groups, the most specific group defined here is used.
1348 *
1349 * - flags: bit field
1350 * - DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
1351 * - DBO_DEBUG -- equivalent of $wgDebugDumpSql
1352 * - DBO_TRX -- wrap entire request in a transaction
1353 * - DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
1354 * - DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
1355 * - DBO_PERSISTENT -- enables persistent database connections
1356 *
1357 * - max lag: (optional) Maximum replication lag before a slave will taken out of rotation
1358 * - max threads: (optional) Maximum number of running threads
1359 *
1360 * These and any other user-defined properties will be assigned to the mLBInfo member
1361 * variable of the Database object.
1362 *
1363 * Leave at false to use the single-server variables above. If you set this
1364 * variable, the single-server variables will generally be ignored (except
1365 * perhaps in some command-line scripts).
1366 *
1367 * The first server listed in this array (with key 0) will be the master. The
1368 * rest of the servers will be slaves. To prevent writes to your slaves due to
1369 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
1370 * slaves in my.cnf. You can set read_only mode at runtime using:
1371 *
1372 * <code>
1373 * SET @@read_only=1;
1374 * </code>
1375 *
1376 * Since the effect of writing to a slave is so damaging and difficult to clean
1377 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
1378 * our masters, and then set read_only=0 on masters at runtime.
1379 */
1380 $wgDBservers = false;
1381
1382 /**
1383 * Load balancer factory configuration
1384 * To set up a multi-master wiki farm, set the class here to something that
1385 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
1386 * The class identified here is responsible for reading $wgDBservers,
1387 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
1388 *
1389 * The LBFactory_Multi class is provided for this purpose, please see
1390 * includes/db/LBFactory_Multi.php for configuration information.
1391 */
1392 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
1393
1394 /** How long to wait for a slave to catch up to the master */
1395 $wgMasterWaitTimeout = 10;
1396
1397 /** File to log database errors to */
1398 $wgDBerrorLog = false;
1399
1400 /** When to give an error message */
1401 $wgDBClusterTimeout = 10;
1402
1403 /**
1404 * Scale load balancer polling time so that under overload conditions, the database server
1405 * receives a SHOW STATUS query at an average interval of this many microseconds
1406 */
1407 $wgDBAvgStatusPoll = 2000;
1408
1409 /** Set to true if using InnoDB tables */
1410 $wgDBtransactions = false;
1411
1412 /**
1413 * Set to true to engage MySQL 4.1/5.0 charset-related features;
1414 * for now will just cause sending of 'SET NAMES=utf8' on connect.
1415 *
1416 * WARNING: THIS IS EXPERIMENTAL!
1417 *
1418 * May break if you're not using the table defs from mysql5/tables.sql.
1419 * May break if you're upgrading an existing wiki if set differently.
1420 * Broken symptoms likely to include incorrect behavior with page titles,
1421 * usernames, comments etc containing non-ASCII characters.
1422 * Might also cause failures on the object cache and other things.
1423 *
1424 * Even correct usage may cause failures with Unicode supplementary
1425 * characters (those not in the Basic Multilingual Plane) unless MySQL
1426 * has enhanced their Unicode support.
1427 */
1428 $wgDBmysql5 = false;
1429
1430 /**
1431 * Other wikis on this site, can be administered from a single developer
1432 * account.
1433 * Array numeric key => database name
1434 */
1435 $wgLocalDatabases = array();
1436
1437 /**
1438 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
1439 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
1440 * show a more obvious warning.
1441 */
1442 $wgSlaveLagWarning = 10;
1443 /** @see $wgSlaveLagWarning */
1444 $wgSlaveLagCritical = 30;
1445
1446 /**
1447 * Use old names for change_tags indices.
1448 */
1449 $wgOldChangeTagsIndex = false;
1450
1451 /**@}*/ # End of DB settings }
1452
1453
1454 /************************************************************************//**
1455 * @name Text storage
1456 * @{
1457 */
1458
1459 /**
1460 * We can also compress text stored in the 'text' table. If this is set on, new
1461 * revisions will be compressed on page save if zlib support is available. Any
1462 * compressed revisions will be decompressed on load regardless of this setting
1463 * *but will not be readable at all* if zlib support is not available.
1464 */
1465 $wgCompressRevisions = false;
1466
1467 /**
1468 * External stores allow including content
1469 * from non database sources following URL links
1470 *
1471 * Short names of ExternalStore classes may be specified in an array here:
1472 * $wgExternalStores = array("http","file","custom")...
1473 *
1474 * CAUTION: Access to database might lead to code execution
1475 */
1476 $wgExternalStores = false;
1477
1478 /**
1479 * An array of external mysql servers, e.g.
1480 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
1481 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to another class.
1482 */
1483 $wgExternalServers = array();
1484
1485 /**
1486 * The place to put new revisions, false to put them in the local text table.
1487 * Part of a URL, e.g. DB://cluster1
1488 *
1489 * Can be an array instead of a single string, to enable data distribution. Keys
1490 * must be consecutive integers, starting at zero. Example:
1491 *
1492 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
1493 *
1494 * @var array
1495 */
1496 $wgDefaultExternalStore = false;
1497
1498 /**
1499 * Revision text may be cached in $wgMemc to reduce load on external storage
1500 * servers and object extraction overhead for frequently-loaded revisions.
1501 *
1502 * Set to 0 to disable, or number of seconds before cache expiry.
1503 */
1504 $wgRevisionCacheExpiry = 0;
1505
1506 /** @} */ # end text storage }
1507
1508 /************************************************************************//**
1509 * @name Performance hacks and limits
1510 * @{
1511 */
1512 /** Disable database-intensive features */
1513 $wgMiserMode = false;
1514 /** Disable all query pages if miser mode is on, not just some */
1515 $wgDisableQueryPages = false;
1516 /** Number of rows to cache in 'querycache' table when miser mode is on */
1517 $wgQueryCacheLimit = 1000;
1518 /** Number of links to a page required before it is deemed "wanted" */
1519 $wgWantedPagesThreshold = 1;
1520 /** Enable slow parser functions */
1521 $wgAllowSlowParserFunctions = false;
1522 /** Allow schema updates */
1523 $wgAllowSchemaUpdates = true;
1524
1525 /**
1526 * Do DELETE/INSERT for link updates instead of incremental
1527 */
1528 $wgUseDumbLinkUpdate = false;
1529
1530 /**
1531 * Anti-lock flags - bitfield
1532 * - ALF_PRELOAD_LINKS:
1533 * Preload links during link update for save
1534 * - ALF_PRELOAD_EXISTENCE:
1535 * Preload cur_id during replaceLinkHolders
1536 * - ALF_NO_LINK_LOCK:
1537 * Don't use locking reads when updating the link table. This is
1538 * necessary for wikis with a high edit rate for performance
1539 * reasons, but may cause link table inconsistency
1540 * - ALF_NO_BLOCK_LOCK:
1541 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1542 * wikis.
1543 */
1544 $wgAntiLockFlags = 0;
1545
1546 /**
1547 * Maximum article size in kilobytes
1548 */
1549 $wgMaxArticleSize = 2048;
1550
1551 /**
1552 * The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to
1553 * raise PHP's memory limit if it's below this amount.
1554 */
1555 $wgMemoryLimit = "50M";
1556
1557 /** @} */ # end performance hacks }
1558
1559 /************************************************************************//**
1560 * @name Cache settings
1561 * @{
1562 */
1563
1564 /**
1565 * Directory for caching data in the local filesystem. Should not be accessible
1566 * from the web. Set this to false to not use any local caches.
1567 *
1568 * Note: if multiple wikis share the same localisation cache directory, they
1569 * must all have the same set of extensions. You can set a directory just for
1570 * the localisation cache using $wgLocalisationCacheConf['storeDirectory'].
1571 */
1572 $wgCacheDirectory = false;
1573
1574 /**
1575 * Main cache type. This should be a cache with fast access, but it may have
1576 * limited space. By default, it is disabled, since the database is not fast
1577 * enough to make it worthwhile.
1578 *
1579 * The options are:
1580 *
1581 * - CACHE_ANYTHING: Use anything, as long as it works
1582 * - CACHE_NONE: Do not cache
1583 * - CACHE_DB: Store cache objects in the DB
1584 * - CACHE_MEMCACHED: MemCached, must specify servers in $wgMemCachedServers
1585 * - CACHE_ACCEL: APC, XCache or WinCache
1586 * - CACHE_DBA: Use PHP's DBA extension to store in a DBM-style
1587 * database. This is slow, and is not recommended for
1588 * anything other than debugging.
1589 * - (other): A string may be used which identifies a cache
1590 * configuration in $wgObjectCaches.
1591 *
1592 * @see $wgMessageCacheType, $wgParserCacheType
1593 */
1594 $wgMainCacheType = CACHE_NONE;
1595
1596 /**
1597 * The cache type for storing the contents of the MediaWiki namespace. This
1598 * cache is used for a small amount of data which is expensive to regenerate.
1599 *
1600 * For available types see $wgMainCacheType.
1601 */
1602 $wgMessageCacheType = CACHE_ANYTHING;
1603
1604 /**
1605 * The cache type for storing article HTML. This is used to store data which
1606 * is expensive to regenerate, and benefits from having plenty of storage space.
1607 *
1608 * For available types see $wgMainCacheType.
1609 */
1610 $wgParserCacheType = CACHE_ANYTHING;
1611
1612 /**
1613 * The cache type for storing language conversion tables,
1614 * which are used when parsing certain text and interface messages.
1615 *
1616 * For available types see $wgMainCacheType.
1617 */
1618 $wgLanguageConverterCacheType = CACHE_ANYTHING;
1619
1620 /**
1621 * Advanced object cache configuration.
1622 *
1623 * Use this to define the class names and constructor parameters which are used
1624 * for the various cache types. Custom cache types may be defined here and
1625 * referenced from $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType,
1626 * or $wgLanguageConverterCacheType.
1627 *
1628 * The format is an associative array where the key is a cache identifier, and
1629 * the value is an associative array of parameters. The "class" parameter is the
1630 * class name which will be used. Alternatively, a "factory" parameter may be
1631 * given, giving a callable function which will generate a suitable cache object.
1632 *
1633 * The other parameters are dependent on the class used.
1634 * - CACHE_DBA uses $wgTmpDirectory by default. The 'dir' parameter let you
1635 * overrides that.
1636 */
1637 $wgObjectCaches = array(
1638 CACHE_NONE => array( 'class' => 'EmptyBagOStuff' ),
1639 CACHE_DB => array( 'class' => 'SqlBagOStuff', 'table' => 'objectcache' ),
1640 CACHE_DBA => array( 'class' => 'DBABagOStuff' ),
1641
1642 CACHE_ANYTHING => array( 'factory' => 'ObjectCache::newAnything' ),
1643 CACHE_ACCEL => array( 'factory' => 'ObjectCache::newAccelerator' ),
1644 CACHE_MEMCACHED => array( 'factory' => 'ObjectCache::newMemcached' ),
1645
1646 'apc' => array( 'class' => 'APCBagOStuff' ),
1647 'xcache' => array( 'class' => 'XCacheBagOStuff' ),
1648 'wincache' => array( 'class' => 'WinCacheBagOStuff' ),
1649 'memcached-php' => array( 'class' => 'MemcachedPhpBagOStuff' ),
1650 'memcached-pecl' => array( 'class' => 'MemcachedPeclBagOStuff' ),
1651 'hash' => array( 'class' => 'HashBagOStuff' ),
1652 );
1653
1654 /**
1655 * The expiry time for the parser cache, in seconds. The default is 86.4k
1656 * seconds, otherwise known as a day.
1657 */
1658 $wgParserCacheExpireTime = 86400;
1659
1660 /**
1661 * Select which DBA handler <http://www.php.net/manual/en/dba.requirements.php> to use as CACHE_DBA backend
1662 */
1663 $wgDBAhandler = 'db3';
1664
1665 /**
1666 * Store sessions in MemCached. This can be useful to improve performance, or to
1667 * avoid the locking behaviour of PHP's default session handler, which tends to
1668 * prevent multiple requests for the same user from acting concurrently.
1669 */
1670 $wgSessionsInMemcached = false;
1671
1672 /**
1673 * This is used for setting php's session.save_handler. In practice, you will
1674 * almost never need to change this ever. Other options might be 'user' or
1675 * 'session_mysql.' Setting to null skips setting this entirely (which might be
1676 * useful if you're doing cross-application sessions, see bug 11381)
1677 */
1678 $wgSessionHandler = null;
1679
1680 /** If enabled, will send MemCached debugging information to $wgDebugLogFile */
1681 $wgMemCachedDebug = false;
1682
1683 /** The list of MemCached servers and port numbers */
1684 $wgMemCachedServers = array( '127.0.0.1:11000' );
1685
1686 /**
1687 * Use persistent connections to MemCached, which are shared across multiple
1688 * requests.
1689 */
1690 $wgMemCachedPersistent = false;
1691
1692 /**
1693 * Read/write timeout for MemCached server communication, in microseconds.
1694 */
1695 $wgMemCachedTimeout = 100000;
1696
1697 /**
1698 * Set this to true to make a local copy of the message cache, for use in
1699 * addition to memcached. The files will be put in $wgCacheDirectory.
1700 */
1701 $wgUseLocalMessageCache = false;
1702
1703 /**
1704 * Defines format of local cache
1705 * true - Serialized object
1706 * false - PHP source file (Warning - security risk)
1707 */
1708 $wgLocalMessageCacheSerialized = true;
1709
1710 /**
1711 * Instead of caching everything, keep track which messages are requested and
1712 * load only most used messages. This only makes sense if there is lots of
1713 * interface messages customised in the wiki (like hundreds in many languages).
1714 */
1715 $wgAdaptiveMessageCache = false;
1716
1717 /**
1718 * Localisation cache configuration. Associative array with keys:
1719 * class: The class to use. May be overridden by extensions.
1720 *
1721 * store: The location to store cache data. May be 'files', 'db' or
1722 * 'detect'. If set to "files", data will be in CDB files. If set
1723 * to "db", data will be stored to the database. If set to
1724 * "detect", files will be used if $wgCacheDirectory is set,
1725 * otherwise the database will be used.
1726 *
1727 * storeClass: The class name for the underlying storage. If set to a class
1728 * name, it overrides the "store" setting.
1729 *
1730 * storeDirectory: If the store class puts its data in files, this is the
1731 * directory it will use. If this is false, $wgCacheDirectory
1732 * will be used.
1733 *
1734 * manualRecache: Set this to true to disable cache updates on web requests.
1735 * Use maintenance/rebuildLocalisationCache.php instead.
1736 */
1737 $wgLocalisationCacheConf = array(
1738 'class' => 'LocalisationCache',
1739 'store' => 'detect',
1740 'storeClass' => false,
1741 'storeDirectory' => false,
1742 'manualRecache' => false,
1743 );
1744
1745 /** Allow client-side caching of pages */
1746 $wgCachePages = true;
1747
1748 /**
1749 * Set this to current time to invalidate all prior cached pages. Affects both
1750 * client- and server-side caching.
1751 * You can get the current date on your server by using the command:
1752 * date +%Y%m%d%H%M%S
1753 */
1754 $wgCacheEpoch = '20030516000000';
1755
1756 /**
1757 * Bump this number when changing the global style sheets and JavaScript.
1758 * It should be appended in the query string of static CSS and JS includes,
1759 * to ensure that client-side caches do not keep obsolete copies of global
1760 * styles.
1761 */
1762 $wgStyleVersion = '303';
1763
1764 /**
1765 * This will cache static pages for non-logged-in users to reduce
1766 * database traffic on public sites.
1767 * Must set $wgShowIPinHeader = false
1768 * ResourceLoader requests to default language and skins are cached
1769 * as well as single module requests.
1770 */
1771 $wgUseFileCache = false;
1772
1773 /**
1774 * Directory where the cached page will be saved.
1775 * Will default to "{$wgUploadDirectory}/cache" in Setup.php
1776 */
1777 $wgFileCacheDirectory = false;
1778
1779 /**
1780 * Depth of the subdirectory hierarchy to be created under
1781 * $wgFileCacheDirectory. The subdirectories will be named based on
1782 * the MD5 hash of the title. A value of 0 means all cache files will
1783 * be put directly into the main file cache directory.
1784 */
1785 $wgFileCacheDepth = 2;
1786
1787 /**
1788 * Keep parsed pages in a cache (objectcache table or memcached)
1789 * to speed up output of the same page viewed by another user with the
1790 * same options.
1791 *
1792 * This can provide a significant speedup for medium to large pages,
1793 * so you probably want to keep it on. Extensions that conflict with the
1794 * parser cache should disable the cache on a per-page basis instead.
1795 */
1796 $wgEnableParserCache = true;
1797
1798 /**
1799 * Append a configured value to the parser cache and the sitenotice key so
1800 * that they can be kept separate for some class of activity.
1801 */
1802 $wgRenderHashAppend = '';
1803
1804 /**
1805 * If on, the sidebar navigation links are cached for users with the
1806 * current language set. This can save a touch of load on a busy site
1807 * by shaving off extra message lookups.
1808 *
1809 * However it is also fragile: changing the site configuration, or
1810 * having a variable $wgArticlePath, can produce broken links that
1811 * don't update as expected.
1812 */
1813 $wgEnableSidebarCache = false;
1814
1815 /**
1816 * Expiry time for the sidebar cache, in seconds
1817 */
1818 $wgSidebarCacheExpiry = 86400;
1819
1820 /**
1821 * When using the file cache, we can store the cached HTML gzipped to save disk
1822 * space. Pages will then also be served compressed to clients that support it.
1823 *
1824 * Requires zlib support enabled in PHP.
1825 */
1826 $wgUseGzip = false;
1827
1828 /**
1829 * Whether MediaWiki should send an ETag header. Seems to cause
1830 * broken behavior with Squid 2.6, see bug 7098.
1831 */
1832 $wgUseETag = false;
1833
1834 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1835 * problems when the user requests two pages within a short period of time. This
1836 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1837 * a grace period.
1838 */
1839 $wgClockSkewFudge = 5;
1840
1841 /**
1842 * Invalidate various caches when LocalSettings.php changes. This is equivalent
1843 * to setting $wgCacheEpoch to the modification time of LocalSettings.php, as
1844 * was previously done in the default LocalSettings.php file.
1845 *
1846 * On high-traffic wikis, this should be set to false, to avoid the need to
1847 * check the file modification time, and to avoid the performance impact of
1848 * unnecessary cache invalidations.
1849 */
1850 $wgInvalidateCacheOnLocalSettingsChange = true;
1851
1852 /** @} */ # end of cache settings
1853
1854 /************************************************************************//**
1855 * @name HTTP proxy (Squid) settings
1856 *
1857 * Many of these settings apply to any HTTP proxy used in front of MediaWiki,
1858 * although they are referred to as Squid settings for historical reasons.
1859 *
1860 * Achieving a high hit ratio with an HTTP proxy requires special
1861 * configuration. See http://www.mediawiki.org/wiki/Manual:Squid_caching for
1862 * more details.
1863 *
1864 * @{
1865 */
1866
1867 /**
1868 * Enable/disable Squid.
1869 * See http://www.mediawiki.org/wiki/Manual:Squid_caching
1870 */
1871 $wgUseSquid = false;
1872
1873 /** If you run Squid3 with ESI support, enable this (default:false): */
1874 $wgUseESI = false;
1875
1876 /** Send X-Vary-Options header for better caching (requires patched Squid) */
1877 $wgUseXVO = false;
1878
1879 /** Add X-Forwarded-Proto to the Vary and X-Vary-Options headers for API
1880 * requests and RSS/Atom feeds. Use this if you have an SSL termination setup
1881 * and need to split the cache between HTTP and HTTPS for API requests,
1882 * feed requests and HTTP redirect responses in order to prevent cache
1883 * pollution. This does not affect 'normal' requests to index.php other than
1884 * HTTP redirects.
1885 */
1886 $wgVaryOnXFP = false;
1887
1888 /**
1889 * Internal server name as known to Squid, if different. Example:
1890 * <code>
1891 * $wgInternalServer = 'http://yourinternal.tld:8000';
1892 * </code>
1893 */
1894 $wgInternalServer = false;
1895
1896 /**
1897 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1898 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1899 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1900 * days
1901 */
1902 $wgSquidMaxage = 18000;
1903
1904 /**
1905 * Default maximum age for raw CSS/JS accesses
1906 */
1907 $wgForcedRawSMaxage = 300;
1908
1909 /**
1910 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1911 *
1912 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1913 * headers sent/modified from these proxies when obtaining the remote IP address
1914 *
1915 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1916 */
1917 $wgSquidServers = array();
1918
1919 /**
1920 * As above, except these servers aren't purged on page changes; use to set a
1921 * list of trusted proxies, etc.
1922 */
1923 $wgSquidServersNoPurge = array();
1924
1925 /** Maximum number of titles to purge in any one client operation */
1926 $wgMaxSquidPurgeTitles = 400;
1927
1928 /**
1929 * Routing configuration for HTCP multicast purging. Add elements here to
1930 * enable HTCP and determine which purges are sent where. If set to an empty
1931 * array, HTCP is disabled.
1932 *
1933 * Each key in this array is a regular expression to match against the purged
1934 * URL, or an empty string to match all URLs. The purged URL is matched against
1935 * the regexes in the order specified, and the first rule whose regex matches
1936 * is used.
1937 *
1938 * Example configuration to send purges for upload.wikimedia.org to one
1939 * multicast group and all other purges to another:
1940 * $wgHTCPMulticastRouting = array(
1941 * '|^https?://upload\.wikimedia\.org|' => array(
1942 * 'host' => '239.128.0.113',
1943 * 'port' => 4827,
1944 * ),
1945 * '' => array(
1946 * 'host' => '239.128.0.112',
1947 * 'port' => 4827,
1948 * ),
1949 * );
1950 *
1951 * @see $wgHTCPMulticastTTL
1952 */
1953 $wgHTCPMulticastRouting = array();
1954
1955 /**
1956 * HTCP multicast address. Set this to a multicast IP address to enable HTCP.
1957 *
1958 * Note that MediaWiki uses the old non-RFC compliant HTCP format, which was
1959 * present in the earliest Squid implementations of the protocol.
1960 *
1961 * This setting is DEPRECATED in favor of $wgHTCPMulticastRouting , and kept
1962 * for backwards compatibility only. If $wgHTCPMulticastRouting is set, this
1963 * setting is ignored. If $wgHTCPMulticastRouting is not set and this setting
1964 * is, it is used to populate $wgHTCPMulticastRouting.
1965 *
1966 * @deprecated in favor of $wgHTCPMulticastRouting
1967 */
1968 $wgHTCPMulticastAddress = false;
1969
1970 /**
1971 * HTCP multicast port.
1972 * @deprecated in favor of $wgHTCPMulticastRouting
1973 * @see $wgHTCPMulticastAddress
1974 */
1975 $wgHTCPPort = 4827;
1976
1977 /**
1978 * HTCP multicast TTL.
1979 * @see $wgHTCPMulticastRouting
1980 */
1981 $wgHTCPMulticastTTL = 1;
1982
1983 /** Should forwarded Private IPs be accepted? */
1984 $wgUsePrivateIPs = false;
1985
1986 /** @} */ # end of HTTP proxy settings
1987
1988 /************************************************************************//**
1989 * @name Language, regional and character encoding settings
1990 * @{
1991 */
1992
1993 /** Site language code, should be one of ./languages/Language(.*).php */
1994 $wgLanguageCode = 'en';
1995
1996 /**
1997 * Some languages need different word forms, usually for different cases.
1998 * Used in Language::convertGrammar(). Example:
1999 *
2000 * <code>
2001 * $wgGrammarForms['en']['genitive']['car'] = 'car\'s';
2002 * </code>
2003 */
2004 $wgGrammarForms = array();
2005
2006 /** Treat language links as magic connectors, not inline links */
2007 $wgInterwikiMagic = true;
2008
2009 /** Hide interlanguage links from the sidebar */
2010 $wgHideInterlanguageLinks = false;
2011
2012 /** List of language names or overrides for default names in Names.php */
2013 $wgExtraLanguageNames = array();
2014
2015 /**
2016 * List of language codes that don't correspond to an actual language.
2017 * These codes are mostly leftoffs from renames, or other legacy things.
2018 * This array makes them not appear as a selectable language on the installer,
2019 * and excludes them when running the transstat.php script.
2020 */
2021 $wgDummyLanguageCodes = array(
2022 'als' => 'gsw',
2023 'bat-smg' => 'sgs',
2024 'be-x-old' => 'be-tarask',
2025 'bh' => 'bho',
2026 'fiu-vro' => 'vro',
2027 'no' => 'nb',
2028 'qqq' => 'qqq', # Used for message documentation.
2029 'qqx' => 'qqx', # Used for viewing message keys.
2030 'roa-rup' => 'rup',
2031 'simple' => 'en',
2032 'zh-classical' => 'lzh',
2033 'zh-min-nan' => 'nan',
2034 'zh-yue' => 'yue',
2035 );
2036
2037 /**
2038 * Character set for use in the article edit box. Language-specific encodings
2039 * may be defined.
2040 *
2041 * This historic feature is one of the first that was added by former MediaWiki
2042 * team leader Brion Vibber, and is used to support the Esperanto x-system.
2043 */
2044 $wgEditEncoding = '';
2045
2046 /**
2047 * Set this to true to replace Arabic presentation forms with their standard
2048 * forms in the U+0600-U+06FF block. This only works if $wgLanguageCode is
2049 * set to "ar".
2050 *
2051 * Note that pages with titles containing presentation forms will become
2052 * inaccessible, run maintenance/cleanupTitles.php to fix this.
2053 */
2054 $wgFixArabicUnicode = true;
2055
2056 /**
2057 * Set this to true to replace ZWJ-based chillu sequences in Malayalam text
2058 * with their Unicode 5.1 equivalents. This only works if $wgLanguageCode is
2059 * set to "ml". Note that some clients (even new clients as of 2010) do not
2060 * support these characters.
2061 *
2062 * If you enable this on an existing wiki, run maintenance/cleanupTitles.php to
2063 * fix any ZWJ sequences in existing page titles.
2064 */
2065 $wgFixMalayalamUnicode = true;
2066
2067 /**
2068 * Set this to always convert certain Unicode sequences to modern ones
2069 * regardless of the content language. This has a small performance
2070 * impact.
2071 *
2072 * See $wgFixArabicUnicode and $wgFixMalayalamUnicode for conversion
2073 * details.
2074 *
2075 * @since 1.17
2076 */
2077 $wgAllUnicodeFixes = false;
2078
2079 /**
2080 * Set this to eg 'ISO-8859-1' to perform character set conversion when
2081 * loading old revisions not marked with "utf-8" flag. Use this when
2082 * converting a wiki from MediaWiki 1.4 or earlier to UTF-8 without the
2083 * burdensome mass conversion of old text data.
2084 *
2085 * NOTE! This DOES NOT touch any fields other than old_text.Titles, comments,
2086 * user names, etc still must be converted en masse in the database before
2087 * continuing as a UTF-8 wiki.
2088 */
2089 $wgLegacyEncoding = false;
2090
2091 /**
2092 * Browser Blacklist for unicode non compliant browsers. Contains a list of
2093 * regexps : "/regexp/" matching problematic browsers. These browsers will
2094 * be served encoded unicode in the edit box instead of real unicode.
2095 */
2096 $wgBrowserBlackList = array(
2097 /**
2098 * Netscape 2-4 detection
2099 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2100 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2101 * with a negative assertion. The [UIN] identifier specifies the level of security
2102 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2103 * The language string is unreliable, it is missing on NS4 Mac.
2104 *
2105 * Reference: http://www.psychedelix.com/agents/index.shtml
2106 */
2107 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2108 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2109 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2110
2111 /**
2112 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2113 *
2114 * Known useragents:
2115 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2116 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2117 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2118 * - [...]
2119 *
2120 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2121 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2122 */
2123 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2124
2125 /**
2126 * Google wireless transcoder, seems to eat a lot of chars alive
2127 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2128 */
2129 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2130 );
2131
2132 /**
2133 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
2134 * create stub reference rows in the text table instead of copying
2135 * the full text of all current entries from 'cur' to 'text'.
2136 *
2137 * This will speed up the conversion step for large sites, but
2138 * requires that the cur table be kept around for those revisions
2139 * to remain viewable.
2140 *
2141 * maintenance/migrateCurStubs.php can be used to complete the
2142 * migration in the background once the wiki is back online.
2143 *
2144 * This option affects the updaters *only*. Any present cur stub
2145 * revisions will be readable at runtime regardless of this setting.
2146 */
2147 $wgLegacySchemaConversion = false;
2148
2149 /**
2150 * Enable to allow rewriting dates in page text.
2151 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES.
2152 */
2153 $wgUseDynamicDates = false;
2154 /**
2155 * Enable dates like 'May 12' instead of '12 May', this only takes effect if
2156 * the interface is set to English.
2157 */
2158 $wgAmericanDates = false;
2159 /**
2160 * For Hindi and Arabic use local numerals instead of Western style (0-9)
2161 * numerals in interface.
2162 */
2163 $wgTranslateNumerals = true;
2164
2165 /**
2166 * Translation using MediaWiki: namespace.
2167 * Interface messages will be loaded from the database.
2168 */
2169 $wgUseDatabaseMessages = true;
2170
2171 /**
2172 * Expiry time for the message cache key
2173 */
2174 $wgMsgCacheExpiry = 86400;
2175
2176 /**
2177 * Maximum entry size in the message cache, in bytes
2178 */
2179 $wgMaxMsgCacheEntrySize = 10000;
2180
2181 /** Whether to enable language variant conversion. */
2182 $wgDisableLangConversion = false;
2183
2184 /** Whether to enable language variant conversion for links. */
2185 $wgDisableTitleConversion = false;
2186
2187 /** Whether to enable cononical language links in meta data. */
2188 $wgCanonicalLanguageLinks = true;
2189
2190 /** Default variant code, if false, the default will be the language code */
2191 $wgDefaultLanguageVariant = false;
2192
2193 /**
2194 * Disabled variants array of language variant conversion. Example:
2195 * <code>
2196 * $wgDisabledVariants[] = 'zh-mo';
2197 * $wgDisabledVariants[] = 'zh-my';
2198 * </code>
2199 *
2200 * or:
2201 *
2202 * <code>
2203 * $wgDisabledVariants = array('zh-mo', 'zh-my');
2204 * </code>
2205 */
2206 $wgDisabledVariants = array();
2207
2208 /**
2209 * Like $wgArticlePath, but on multi-variant wikis, this provides a
2210 * path format that describes which parts of the URL contain the
2211 * language variant. For Example:
2212 *
2213 * $wgLanguageCode = 'sr';
2214 * $wgVariantArticlePath = '/$2/$1';
2215 * $wgArticlePath = '/wiki/$1';
2216 *
2217 * A link to /wiki/ would be redirected to /sr/Главна_страна
2218 *
2219 * It is important that $wgArticlePath not overlap with possible values
2220 * of $wgVariantArticlePath.
2221 */
2222 $wgVariantArticlePath = false;
2223
2224 /**
2225 * Show a bar of language selection links in the user login and user
2226 * registration forms; edit the "loginlanguagelinks" message to
2227 * customise these.
2228 */
2229 $wgLoginLanguageSelector = false;
2230
2231 /**
2232 * When translating messages with wfMsg(), it is not always clear what should
2233 * be considered UI messages and what should be content messages.
2234 *
2235 * For example, for the English Wikipedia, there should be only one 'mainpage',
2236 * so when getting the link for 'mainpage', we should treat it as site content
2237 * and call wfMsgForContent(), but for rendering the text of the link, we call
2238 * wfMsg(). The code behaves this way by default. However, sites like the
2239 * Wikimedia Commons do offer different versions of 'mainpage' and the like for
2240 * different languages. This array provides a way to override the default
2241 * behavior. For example, to allow language-specific main page and community
2242 * portal, set
2243 *
2244 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2245 */
2246 $wgForceUIMsgAsContentMsg = array();
2247
2248 /**
2249 * Fake out the timezone that the server thinks it's in. This will be used for
2250 * date display and not for what's stored in the DB. Leave to null to retain
2251 * your server's OS-based timezone value.
2252 *
2253 * This variable is currently used only for signature formatting and for local
2254 * time/date parser variables ({{LOCALTIME}} etc.)
2255 *
2256 * Timezones can be translated by editing MediaWiki messages of type
2257 * timezone-nameinlowercase like timezone-utc.
2258 *
2259 * Examples:
2260 * <code>
2261 * $wgLocaltimezone = 'GMT';
2262 * $wgLocaltimezone = 'PST8PDT';
2263 * $wgLocaltimezone = 'Europe/Sweden';
2264 * $wgLocaltimezone = 'CET';
2265 * </code>
2266 */
2267 $wgLocaltimezone = null;
2268
2269 /**
2270 * Set an offset from UTC in minutes to use for the default timezone setting
2271 * for anonymous users and new user accounts.
2272 *
2273 * This setting is used for most date/time displays in the software, and is
2274 * overrideable in user preferences. It is *not* used for signature timestamps.
2275 *
2276 * By default, this will be set to match $wgLocaltimezone.
2277 */
2278 $wgLocalTZoffset = null;
2279
2280 /**
2281 * If set to true, this will roll back a few bug fixes introduced in 1.19,
2282 * emulating the 1.18 behaviour, to avoid introducing bug 34832. In 1.19,
2283 * language variant conversion is disabled in interface messages. Setting this
2284 * to true re-enables it.
2285 *
2286 * This variable should be removed (implicitly false) in 1.20 or earlier.
2287 */
2288 $wgBug34832TransitionalRollback = true;
2289
2290
2291 /** @} */ # End of language/charset settings
2292
2293 /*************************************************************************//**
2294 * @name Output format and skin settings
2295 * @{
2296 */
2297
2298 /** The default Content-Type header. */
2299 $wgMimeType = 'text/html';
2300
2301 /**
2302 * The content type used in script tags. This is mostly going to be ignored if
2303 * $wgHtml5 is true, at least for actual HTML output, since HTML5 doesn't
2304 * require a MIME type for JavaScript or CSS (those are the default script and
2305 * style languages).
2306 */
2307 $wgJsMimeType = 'text/javascript';
2308
2309 /**
2310 * The HTML document type. Ignored if $wgHtml5 is true, since <!DOCTYPE html>
2311 * doesn't actually have a doctype part to put this variable's contents in.
2312 */
2313 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
2314
2315 /**
2316 * The URL of the document type declaration. Ignored if $wgHtml5 is true,
2317 * since HTML5 has no DTD, and <!DOCTYPE html> doesn't actually have a DTD part
2318 * to put this variable's contents in.
2319 */
2320 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
2321
2322 /**
2323 * The default xmlns attribute. Ignored if $wgHtml5 is true (or it's supposed
2324 * to be), since we don't currently support XHTML5, and in HTML5 (i.e., served
2325 * as text/html) the attribute has no effect, so why bother?
2326 */
2327 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
2328
2329 /**
2330 * Should we output an HTML5 doctype? If false, use XHTML 1.0 Transitional
2331 * instead, and disable HTML5 features. This may eventually be removed and set
2332 * to always true. If it's true, a number of other settings will be irrelevant
2333 * and have no effect.
2334 */
2335 $wgHtml5 = true;
2336
2337 /**
2338 * Defines the value of the version attribute in the &lt;html&gt; tag, if any.
2339 * This is ignored if $wgHtml5 is false. If $wgAllowRdfaAttributes and
2340 * $wgHtml5 are both true, and this evaluates to boolean false (like if it's
2341 * left at the default null value), it will be auto-initialized to the correct
2342 * value for RDFa+HTML5. As such, you should have no reason to ever actually
2343 * set this to anything.
2344 */
2345 $wgHtml5Version = null;
2346
2347 /**
2348 * Enabled RDFa attributes for use in wikitext.
2349 * NOTE: Interaction with HTML5 is somewhat underspecified.
2350 */
2351 $wgAllowRdfaAttributes = false;
2352
2353 /**
2354 * Enabled HTML5 microdata attributes for use in wikitext, if $wgHtml5 is also true.
2355 */
2356 $wgAllowMicrodataAttributes = false;
2357
2358 /**
2359 * Cleanup as much presentational html like valign -> css vertical-align as we can
2360 */
2361 $wgCleanupPresentationalAttributes = true;
2362
2363 /**
2364 * Should we try to make our HTML output well-formed XML? If set to false,
2365 * output will be a few bytes shorter, and the HTML will arguably be more
2366 * readable. If set to true, life will be much easier for the authors of
2367 * screen-scraping bots, and the HTML will arguably be more readable.
2368 *
2369 * Setting this to false may omit quotation marks on some attributes, omit
2370 * slashes from some self-closing tags, omit some ending tags, etc., where
2371 * permitted by HTML5. Setting it to true will not guarantee that all pages
2372 * will be well-formed, although non-well-formed pages should be rare and it's
2373 * a bug if you find one. Conversely, setting it to false doesn't mean that
2374 * all XML-y constructs will be omitted, just that they might be.
2375 *
2376 * Because of compatibility with screen-scraping bots, and because it's
2377 * controversial, this is currently left to true by default.
2378 */
2379 $wgWellFormedXml = true;
2380
2381 /**
2382 * Permit other namespaces in addition to the w3.org default.
2383 * Use the prefix for the key and the namespace for the value. For
2384 * example:
2385 * $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
2386 * Normally we wouldn't have to define this in the root <html>
2387 * element, but IE needs it there in some circumstances.
2388 *
2389 * This is ignored if $wgHtml5 is true, for the same reason as
2390 * $wgXhtmlDefaultNamespace.
2391 */
2392 $wgXhtmlNamespaces = array();
2393
2394 /**
2395 * Show IP address, for non-logged in users. It's necessary to switch this off
2396 * for some forms of caching.
2397 * Will disable file cache.
2398 */
2399 $wgShowIPinHeader = true;
2400
2401 /**
2402 * Site notice shown at the top of each page
2403 *
2404 * MediaWiki:Sitenotice page, which will override this. You can also
2405 * provide a separate message for logged-out users using the
2406 * MediaWiki:Anonnotice page.
2407 */
2408 $wgSiteNotice = '';
2409
2410 /**
2411 * A subtitle to add to the tagline, for skins that have it/
2412 */
2413 $wgExtraSubtitle = '';
2414
2415 /**
2416 * If this is set, a "donate" link will appear in the sidebar. Set it to a URL.
2417 */
2418 $wgSiteSupportPage = '';
2419
2420 /**
2421 * Validate the overall output using tidy and refuse
2422 * to display the page if it's not valid.
2423 */
2424 $wgValidateAllHtml = false;
2425
2426 /**
2427 * Default skin, for new users and anonymous visitors. Registered users may
2428 * change this to any one of the other available skins in their preferences.
2429 * This has to be completely lowercase; see the "skins" directory for the list
2430 * of available skins.
2431 */
2432 $wgDefaultSkin = 'vector';
2433
2434 /**
2435 * Specify the name of a skin that should not be presented in the list of
2436 * available skins. Use for blacklisting a skin which you do not want to
2437 * remove from the .../skins/ directory
2438 */
2439 $wgSkipSkin = '';
2440 /** Array for more like $wgSkipSkin. */
2441 $wgSkipSkins = array();
2442
2443 /**
2444 * Optionally, we can specify a stylesheet to use for media="handheld".
2445 * This is recognized by some, but not all, handheld/mobile/PDA browsers.
2446 * If left empty, compliant handheld browsers won't pick up the skin
2447 * stylesheet, which is specified for 'screen' media.
2448 *
2449 * Can be a complete URL, base-relative path, or $wgStylePath-relative path.
2450 * Try 'chick/main.css' to apply the Chick styles to the MonoBook HTML.
2451 *
2452 * Will also be switched in when 'handheld=yes' is added to the URL, like
2453 * the 'printable=yes' mode for print media.
2454 */
2455 $wgHandheldStyle = false;
2456
2457 /**
2458 * If set, 'screen' and 'handheld' media specifiers for stylesheets are
2459 * transformed such that they apply to the iPhone/iPod Touch Mobile Safari,
2460 * which doesn't recognize 'handheld' but does support media queries on its
2461 * screen size.
2462 *
2463 * Consider only using this if you have a *really good* handheld stylesheet,
2464 * as iPhone users won't have any way to disable it and use the "grown-up"
2465 * styles instead.
2466 */
2467 $wgHandheldForIPhone = false;
2468
2469 /**
2470 * Allow user Javascript page?
2471 * This enables a lot of neat customizations, but may
2472 * increase security risk to users and server load.
2473 */
2474 $wgAllowUserJs = false;
2475
2476 /**
2477 * Allow user Cascading Style Sheets (CSS)?
2478 * This enables a lot of neat customizations, but may
2479 * increase security risk to users and server load.
2480 */
2481 $wgAllowUserCss = false;
2482
2483 /**
2484 * Allow user-preferences implemented in CSS?
2485 * This allows users to customise the site appearance to a greater
2486 * degree; disabling it will improve page load times.
2487 */
2488 $wgAllowUserCssPrefs = true;
2489
2490 /** Use the site's Javascript page? */
2491 $wgUseSiteJs = true;
2492
2493 /** Use the site's Cascading Style Sheets (CSS)? */
2494 $wgUseSiteCss = true;
2495
2496 /**
2497 * Break out of framesets. This can be used to prevent clickjacking attacks,
2498 * or to prevent external sites from framing your site with ads.
2499 */
2500 $wgBreakFrames = false;
2501
2502 /**
2503 * The X-Frame-Options header to send on pages sensitive to clickjacking
2504 * attacks, such as edit pages. This prevents those pages from being displayed
2505 * in a frame or iframe. The options are:
2506 *
2507 * - 'DENY': Do not allow framing. This is recommended for most wikis.
2508 *
2509 * - 'SAMEORIGIN': Allow framing by pages on the same domain. This can be used
2510 * to allow framing within a trusted domain. This is insecure if there
2511 * is a page on the same domain which allows framing of arbitrary URLs.
2512 *
2513 * - false: Allow all framing. This opens up the wiki to XSS attacks and thus
2514 * full compromise of local user accounts. Private wikis behind a
2515 * corporate firewall are especially vulnerable. This is not
2516 * recommended.
2517 *
2518 * For extra safety, set $wgBreakFrames = true, to prevent framing on all pages,
2519 * not just edit pages.
2520 */
2521 $wgEditPageFrameOptions = 'DENY';
2522
2523 /**
2524 * Disable output compression (enabled by default if zlib is available)
2525 */
2526 $wgDisableOutputCompression = false;
2527
2528 /**
2529 * Should we allow a broader set of characters in id attributes, per HTML5? If
2530 * not, use only HTML 4-compatible IDs. This option is for testing -- when the
2531 * functionality is ready, it will be on by default with no option.
2532 *
2533 * Currently this appears to work fine in all browsers, but it's disabled by
2534 * default because it normalizes id's a bit too aggressively, breaking preexisting
2535 * content (particularly Cite). See bug 27733, bug 27694, bug 27474.
2536 */
2537 $wgExperimentalHtmlIds = false;
2538
2539 /**
2540 * Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code
2541 * You can add new icons to the built in copyright or poweredby, or you can create
2542 * a new block. Though note that you may need to add some custom css to get good styling
2543 * of new blocks in monobook. vector and modern should work without any special css.
2544 *
2545 * $wgFooterIcons itself is a key/value array.
2546 * The key is the name of a block that the icons will be wrapped in. The final id varies
2547 * by skin; Monobook and Vector will turn poweredby into f-poweredbyico while Modern
2548 * turns it into mw_poweredby.
2549 * The value is either key/value array of icons or a string.
2550 * In the key/value array the key may or may not be used by the skin but it can
2551 * be used to find the icon and unset it or change the icon if needed.
2552 * This is useful for disabling icons that are set by extensions.
2553 * The value should be either a string or an array. If it is a string it will be output
2554 * directly as html, however some skins may choose to ignore it. An array is the preferred format
2555 * for the icon, the following keys are used:
2556 * src: An absolute url to the image to use for the icon, this is recommended
2557 * but not required, however some skins will ignore icons without an image
2558 * url: The url to use in the <a> arround the text or icon, if not set an <a> will not be outputted
2559 * alt: This is the text form of the icon, it will be displayed without an image in
2560 * skins like Modern or if src is not set, and will otherwise be used as
2561 * the alt="" for the image. This key is required.
2562 * width and height: If the icon specified by src is not of the standard size
2563 * you can specify the size of image to use with these keys.
2564 * Otherwise they will default to the standard 88x31.
2565 */
2566 $wgFooterIcons = array(
2567 "copyright" => array(
2568 "copyright" => array(), // placeholder for the built in copyright icon
2569 ),
2570 "poweredby" => array(
2571 "mediawiki" => array(
2572 "src" => null, // Defaults to "$wgStylePath/common/images/poweredby_mediawiki_88x31.png"
2573 "url" => "//www.mediawiki.org/",
2574 "alt" => "Powered by MediaWiki",
2575 )
2576 ),
2577 );
2578
2579 /**
2580 * Login / create account link behavior when it's possible for anonymous users to create an account
2581 * true = use a combined login / create account link
2582 * false = split login and create account into two separate links
2583 */
2584 $wgUseCombinedLoginLink = true;
2585
2586 /**
2587 * Search form behavior for Vector skin only
2588 * true = use an icon search button
2589 * false = use Go & Search buttons
2590 */
2591 $wgVectorUseSimpleSearch = false;
2592
2593 /**
2594 * Watch and unwatch as an icon rather than a link for Vector skin only
2595 * true = use an icon watch/unwatch button
2596 * false = use watch/unwatch text link
2597 */
2598 $wgVectorUseIconWatch = false;
2599
2600 /**
2601 * Display user edit counts in various prominent places.
2602 */
2603 $wgEdititis = false;
2604
2605 /**
2606 * Better directionality support (bug 6100 and related).
2607 * Removed in 1.18, still kept here for LiquidThreads backwards compatibility.
2608 *
2609 * @deprecated since 1.18
2610 */
2611 $wgBetterDirectionality = true;
2612
2613 /**
2614 * Some web hosts attempt to rewrite all responses with a 404 (not found)
2615 * status code, mangling or hiding MediaWiki's output. If you are using such a
2616 * host, you should start looking for a better one. While you're doing that,
2617 * set this to false to convert some of MediaWiki's 404 responses to 200 so
2618 * that the generated error pages can be seen.
2619 *
2620 * In cases where for technical reasons it is more important for MediaWiki to
2621 * send the correct status code than for the body to be transmitted intact,
2622 * this configuration variable is ignored.
2623 */
2624 $wgSend404Code = true;
2625
2626 /** @} */ # End of output format settings }
2627
2628 /*************************************************************************//**
2629 * @name Resource loader settings
2630 * @{
2631 */
2632
2633 /**
2634 * Client-side resource modules. Extensions should add their module definitions
2635 * here.
2636 *
2637 * Example:
2638 * $wgResourceModules['ext.myExtension'] = array(
2639 * 'scripts' => 'myExtension.js',
2640 * 'styles' => 'myExtension.css',
2641 * 'dependencies' => array( 'jquery.cookie', 'jquery.tabIndex' ),
2642 * 'localBasePath' => dirname( __FILE__ ),
2643 * 'remoteExtPath' => 'MyExtension',
2644 * );
2645 */
2646 $wgResourceModules = array();
2647
2648 /**
2649 * Extensions should register foreign module sources here. 'local' is a
2650 * built-in source that is not in this array, but defined by
2651 * ResourceLoader::__construct() so that it cannot be unset.
2652 *
2653 * Example:
2654 * $wgResourceLoaderSources['foo'] = array(
2655 * 'loadScript' => 'http://example.org/w/load.php',
2656 * 'apiScript' => 'http://example.org/w/api.php'
2657 * );
2658 */
2659 $wgResourceLoaderSources = array();
2660
2661 /**
2662 * Default 'remoteBasePath' value for resource loader modules.
2663 * If not set, then $wgScriptPath will be used as a fallback.
2664 */
2665 $wgResourceBasePath = null;
2666
2667 /**
2668 * Maximum time in seconds to cache resources served by the resource loader
2669 */
2670 $wgResourceLoaderMaxage = array(
2671 'versioned' => array(
2672 // Squid/Varnish but also any other public proxy cache between the client and MediaWiki
2673 'server' => 30 * 24 * 60 * 60, // 30 days
2674 // On the client side (e.g. in the browser cache).
2675 'client' => 30 * 24 * 60 * 60, // 30 days
2676 ),
2677 'unversioned' => array(
2678 'server' => 5 * 60, // 5 minutes
2679 'client' => 5 * 60, // 5 minutes
2680 ),
2681 );
2682
2683 /**
2684 * The default debug mode (on/off) for of ResourceLoader requests. This will still
2685 * be overridden when the debug URL parameter is used.
2686 */
2687 $wgResourceLoaderDebug = false;
2688
2689 /**
2690 * Enable embedding of certain resources using Edge Side Includes. This will
2691 * improve performance but only works if there is something in front of the
2692 * web server (e..g a Squid or Varnish server) configured to process the ESI.
2693 */
2694 $wgResourceLoaderUseESI = false;
2695
2696 /**
2697 * Put each statement on its own line when minifying JavaScript. This makes
2698 * debugging in non-debug mode a bit easier.
2699 */
2700 $wgResourceLoaderMinifierStatementsOnOwnLine = false;
2701
2702 /**
2703 * Maximum line length when minifying JavaScript. This is not a hard maximum:
2704 * the minifier will try not to produce lines longer than this, but may be
2705 * forced to do so in certain cases.
2706 */
2707 $wgResourceLoaderMinifierMaxLineLength = 1000;
2708
2709 /**
2710 * Whether to include the mediawiki.legacy JS library (old wikibits.js), and its
2711 * dependencies
2712 */
2713 $wgIncludeLegacyJavaScript = true;
2714
2715 /**
2716 * Whether to preload the mediawiki.util module as blocking module in the top queue.
2717 * Before MediaWiki 1.19, modules used to load slower/less asynchronous which allowed
2718 * modules to lack dependencies on 'popular' modules that were likely loaded already.
2719 * This setting is to aid scripts during migration by providing mediawiki.util
2720 * unconditionally (which was the most commonly missed dependency).
2721 * It doesn't cover all missing dependencies obviously but should fix most of them.
2722 * This should be removed at some point after site/user scripts have been fixed.
2723 * Enable this if your wiki has a large amount of user/site scripts that are lacking
2724 * dependencies.
2725 */
2726 $wgPreloadJavaScriptMwUtil = false;
2727
2728 /**
2729 * Whether or not to assing configuration variables to the global window object.
2730 * If this is set to false, old code using deprecated variables like:
2731 * " if ( window.wgRestrictionEdit ) ..."
2732 * or:
2733 * " if ( wgIsArticle ) ..."
2734 * will no longer work and needs to use mw.config instead. For example:
2735 * " if ( mw.config.exists('wgRestrictionEdit') )"
2736 * or
2737 * " if ( mw.config.get('wgIsArticle') )".
2738 */
2739 $wgLegacyJavaScriptGlobals = true;
2740
2741 /**
2742 * If set to a positive number, ResourceLoader will not generate URLs whose
2743 * query string is more than this many characters long, and will instead use
2744 * multiple requests with shorter query strings. This degrades performance,
2745 * but may be needed if your web server has a low (less than, say 1024)
2746 * query string length limit or a low value for suhosin.get.max_value_length
2747 * that you can't increase.
2748 *
2749 * If set to a negative number, ResourceLoader will assume there is no query
2750 * string length limit.
2751 */
2752 $wgResourceLoaderMaxQueryLength = -1;
2753
2754 /**
2755 * If set to true, JavaScript modules loaded from wiki pages will be parsed prior
2756 * to minification to validate it.
2757 *
2758 * Parse errors will result in a JS exception being thrown during module load,
2759 * which avoids breaking other modules loaded in the same request.
2760 */
2761 $wgResourceLoaderValidateJS = true;
2762
2763 /**
2764 * If set to true, statically-sourced (file-backed) JavaScript resources will
2765 * be parsed for validity before being bundled up into ResourceLoader modules.
2766 *
2767 * This can be helpful for development by providing better error messages in
2768 * default (non-debug) mode, but JavaScript parsing is slow and memory hungry
2769 * and may fail on large pre-bundled frameworks.
2770 */
2771 $wgResourceLoaderValidateStaticJS = false;
2772
2773 /**
2774 * If set to true, asynchronous loading of bottom-queue scripts in the <head>
2775 * will be enabled. This is an experimental feature that's supposed to make
2776 * JavaScript load faster.
2777 */
2778 $wgResourceLoaderExperimentalAsyncLoading = false;
2779
2780 /** @} */ # End of resource loader settings }
2781
2782
2783 /*************************************************************************//**
2784 * @name Page title and interwiki link settings
2785 * @{
2786 */
2787
2788 /**
2789 * Name of the project namespace. If left set to false, $wgSitename will be
2790 * used instead.
2791 */
2792 $wgMetaNamespace = false;
2793
2794 /**
2795 * Name of the project talk namespace.
2796 *
2797 * Normally you can ignore this and it will be something like
2798 * $wgMetaNamespace . "_talk". In some languages, you may want to set this
2799 * manually for grammatical reasons.
2800 */
2801 $wgMetaNamespaceTalk = false;
2802
2803 /**
2804 * Additional namespaces. If the namespaces defined in Language.php and
2805 * Namespace.php are insufficient, you can create new ones here, for example,
2806 * to import Help files in other languages. You can also override the namespace
2807 * names of existing namespaces. Extensions developers should use
2808 * $wgCanonicalNamespaceNames.
2809 *
2810 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2811 * no longer be accessible. If you rename it, then you can access them through
2812 * the new namespace name.
2813 *
2814 * Custom namespaces should start at 100 to avoid conflicting with standard
2815 * namespaces, and should always follow the even/odd main/talk pattern.
2816 */
2817 # $wgExtraNamespaces = array(
2818 # 100 => "Hilfe",
2819 # 101 => "Hilfe_Diskussion",
2820 # 102 => "Aide",
2821 # 103 => "Discussion_Aide"
2822 # );
2823 $wgExtraNamespaces = array();
2824
2825 /**
2826 * Same as above, but for namespaces with gender distinction.
2827 * Note: the default form for the namespace should also be set
2828 * using $wgExtraNamespaces for the same index.
2829 * @since 1.18
2830 */
2831 $wgExtraGenderNamespaces = array();
2832
2833 /**
2834 * Namespace aliases
2835 * These are alternate names for the primary localised namespace names, which
2836 * are defined by $wgExtraNamespaces and the language file. If a page is
2837 * requested with such a prefix, the request will be redirected to the primary
2838 * name.
2839 *
2840 * Set this to a map from namespace names to IDs.
2841 * Example:
2842 * $wgNamespaceAliases = array(
2843 * 'Wikipedian' => NS_USER,
2844 * 'Help' => 100,
2845 * );
2846 */
2847 $wgNamespaceAliases = array();
2848
2849 /**
2850 * Allowed title characters -- regex character class
2851 * Don't change this unless you know what you're doing
2852 *
2853 * Problematic punctuation:
2854 * - []{}|# Are needed for link syntax, never enable these
2855 * - <> Causes problems with HTML escaping, don't use
2856 * - % Enabled by default, minor problems with path to query rewrite rules, see below
2857 * - + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
2858 * - ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
2859 *
2860 * All three of these punctuation problems can be avoided by using an alias, instead of a
2861 * rewrite rule of either variety.
2862 *
2863 * The problem with % is that when using a path to query rewrite rule, URLs are
2864 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
2865 * %253F, for example, becomes "?". Our code does not double-escape to compensate
2866 * for this, indeed double escaping would break if the double-escaped title was
2867 * passed in the query string rather than the path. This is a minor security issue
2868 * because articles can be created such that they are hard to view or edit.
2869 *
2870 * In some rare cases you may wish to remove + for compatibility with old links.
2871 *
2872 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
2873 * this breaks interlanguage links
2874 */
2875 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
2876
2877 /**
2878 * The interwiki prefix of the current wiki, or false if it doesn't have one.
2879 */
2880 $wgLocalInterwiki = false;
2881
2882 /**
2883 * Expiry time for cache of interwiki table
2884 */
2885 $wgInterwikiExpiry = 10800;
2886
2887 /** Interwiki caching settings.
2888 $wgInterwikiCache specifies path to constant database file
2889 This cdb database is generated by dumpInterwiki from maintenance
2890 and has such key formats:
2891 dbname:key - a simple key (e.g. enwiki:meta)
2892 _sitename:key - site-scope key (e.g. wiktionary:meta)
2893 __global:key - global-scope key (e.g. __global:meta)
2894 __sites:dbname - site mapping (e.g. __sites:enwiki)
2895 Sites mapping just specifies site name, other keys provide
2896 "local url" data layout.
2897 $wgInterwikiScopes specify number of domains to check for messages:
2898 1 - Just wiki(db)-level
2899 2 - wiki and global levels
2900 3 - site levels
2901 $wgInterwikiFallbackSite - if unable to resolve from cache
2902 */
2903 $wgInterwikiCache = false;
2904 $wgInterwikiScopes = 3;
2905 $wgInterwikiFallbackSite = 'wiki';
2906
2907 /**
2908 * If local interwikis are set up which allow redirects,
2909 * set this regexp to restrict URLs which will be displayed
2910 * as 'redirected from' links.
2911 *
2912 * It might look something like this:
2913 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
2914 *
2915 * Leave at false to avoid displaying any incoming redirect markers.
2916 * This does not affect intra-wiki redirects, which don't change
2917 * the URL.
2918 */
2919 $wgRedirectSources = false;
2920
2921 /**
2922 * Set this to false to avoid forcing the first letter of links to capitals.
2923 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
2924 * appearing with a capital at the beginning of a sentence will *not* go to the
2925 * same place as links in the middle of a sentence using a lowercase initial.
2926 */
2927 $wgCapitalLinks = true;
2928
2929 /**
2930 * @since 1.16 - This can now be set per-namespace. Some special namespaces (such
2931 * as Special, see MWNamespace::$alwaysCapitalizedNamespaces for the full list) must be
2932 * true by default (and setting them has no effect), due to various things that
2933 * require them to be so. Also, since Talk namespaces need to directly mirror their
2934 * associated content namespaces, the values for those are ignored in favor of the
2935 * subject namespace's setting. Setting for NS_MEDIA is taken automatically from
2936 * NS_FILE.
2937 * EX: $wgCapitalLinkOverrides[ NS_FILE ] = false;
2938 */
2939 $wgCapitalLinkOverrides = array();
2940
2941 /** Which namespaces should support subpages?
2942 * See Language.php for a list of namespaces.
2943 */
2944 $wgNamespacesWithSubpages = array(
2945 NS_TALK => true,
2946 NS_USER => true,
2947 NS_USER_TALK => true,
2948 NS_PROJECT_TALK => true,
2949 NS_FILE_TALK => true,
2950 NS_MEDIAWIKI => true,
2951 NS_MEDIAWIKI_TALK => true,
2952 NS_TEMPLATE_TALK => true,
2953 NS_HELP_TALK => true,
2954 NS_CATEGORY_TALK => true
2955 );
2956
2957 /**
2958 * Array of namespaces which can be deemed to contain valid "content", as far
2959 * as the site statistics are concerned. Useful if additional namespaces also
2960 * contain "content" which should be considered when generating a count of the
2961 * number of articles in the wiki.
2962 */
2963 $wgContentNamespaces = array( NS_MAIN );
2964
2965 /**
2966 * Max number of redirects to follow when resolving redirects.
2967 * 1 means only the first redirect is followed (default behavior).
2968 * 0 or less means no redirects are followed.
2969 */
2970 $wgMaxRedirects = 1;
2971
2972 /**
2973 * Array of invalid page redirect targets.
2974 * Attempting to create a redirect to any of the pages in this array
2975 * will make the redirect fail.
2976 * Userlogout is hard-coded, so it does not need to be listed here.
2977 * (bug 10569) Disallow Mypage and Mytalk as well.
2978 *
2979 * As of now, this only checks special pages. Redirects to pages in
2980 * other namespaces cannot be invalidated by this variable.
2981 */
2982 $wgInvalidRedirectTargets = array( 'Filepath', 'Mypage', 'Mytalk' );
2983
2984 /** @} */ # End of title and interwiki settings }
2985
2986 /************************************************************************//**
2987 * @name Parser settings
2988 * These settings configure the transformation from wikitext to HTML.
2989 * @{
2990 */
2991
2992 /**
2993 * Parser configuration. Associative array with the following members:
2994 *
2995 * class The class name
2996 *
2997 * preprocessorClass The preprocessor class. Two classes are currently available:
2998 * Preprocessor_Hash, which uses plain PHP arrays for tempoarary
2999 * storage, and Preprocessor_DOM, which uses the DOM module for
3000 * temporary storage. Preprocessor_DOM generally uses less memory;
3001 * the speed of the two is roughly the same.
3002 *
3003 * If this parameter is not given, it uses Preprocessor_DOM if the
3004 * DOM module is available, otherwise it uses Preprocessor_Hash.
3005 *
3006 * The entire associative array will be passed through to the constructor as
3007 * the first parameter. Note that only Setup.php can use this variable --
3008 * the configuration will change at runtime via $wgParser member functions, so
3009 * the contents of this variable will be out-of-date. The variable can only be
3010 * changed during LocalSettings.php, in particular, it can't be changed during
3011 * an extension setup function.
3012 */
3013 $wgParserConf = array(
3014 'class' => 'Parser',
3015 #'preprocessorClass' => 'Preprocessor_Hash',
3016 );
3017
3018 /** Maximum indent level of toc. */
3019 $wgMaxTocLevel = 999;
3020
3021 /**
3022 * A complexity limit on template expansion
3023 */
3024 $wgMaxPPNodeCount = 1000000;
3025
3026 /**
3027 * Maximum recursion depth for templates within templates.
3028 * The current parser adds two levels to the PHP call stack for each template,
3029 * and xdebug limits the call stack to 100 by default. So this should hopefully
3030 * stop the parser before it hits the xdebug limit.
3031 */
3032 $wgMaxTemplateDepth = 40;
3033
3034 /** @see $wgMaxTemplateDepth */
3035 $wgMaxPPExpandDepth = 40;
3036
3037 /** The external URL protocols */
3038 $wgUrlProtocols = array(
3039 'http://',
3040 'https://',
3041 'ftp://',
3042 'irc://',
3043 'ircs://', // @bug 28503
3044 'gopher://',
3045 'telnet://', // Well if we're going to support the above.. -ævar
3046 'nntp://', // @bug 3808 RFC 1738
3047 'worldwind://',
3048 'mailto:',
3049 'news:',
3050 'svn://',
3051 'git://',
3052 'mms://',
3053 '//', // for protocol-relative URLs
3054 );
3055
3056 /**
3057 * If true, removes (substitutes) templates in "~~~~" signatures.
3058 */
3059 $wgCleanSignatures = true;
3060
3061 /** Whether to allow inline image pointing to other websites */
3062 $wgAllowExternalImages = false;
3063
3064 /**
3065 * If the above is false, you can specify an exception here. Image URLs
3066 * that start with this string are then rendered, while all others are not.
3067 * You can use this to set up a trusted, simple repository of images.
3068 * You may also specify an array of strings to allow multiple sites
3069 *
3070 * Examples:
3071 * <code>
3072 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
3073 * $wgAllowExternalImagesFrom = array( 'http://127.0.0.1/', 'http://example.com' );
3074 * </code>
3075 */
3076 $wgAllowExternalImagesFrom = '';
3077
3078 /** If $wgAllowExternalImages is false, you can allow an on-wiki
3079 * whitelist of regular expression fragments to match the image URL
3080 * against. If the image matches one of the regular expression fragments,
3081 * The image will be displayed.
3082 *
3083 * Set this to true to enable the on-wiki whitelist (MediaWiki:External image whitelist)
3084 * Or false to disable it
3085 */
3086 $wgEnableImageWhitelist = true;
3087
3088 /**
3089 * A different approach to the above: simply allow the <img> tag to be used.
3090 * This allows you to specify alt text and other attributes, copy-paste HTML to
3091 * your wiki more easily, etc. However, allowing external images in any manner
3092 * will allow anyone with editing rights to snoop on your visitors' IP
3093 * addresses and so forth, if they wanted to, by inserting links to images on
3094 * sites they control.
3095 */
3096 $wgAllowImageTag = false;
3097
3098 /**
3099 * $wgUseTidy: use tidy to make sure HTML output is sane.
3100 * Tidy is a free tool that fixes broken HTML.
3101 * See http://www.w3.org/People/Raggett/tidy/
3102 *
3103 * - $wgTidyBin should be set to the path of the binary and
3104 * - $wgTidyConf to the path of the configuration file.
3105 * - $wgTidyOpts can include any number of parameters.
3106 * - $wgTidyInternal controls the use of the PECL extension or the
3107 * libtidy (PHP >= 5) extension to use an in-process tidy library instead
3108 * of spawning a separate program.
3109 * Normally you shouldn't need to override the setting except for
3110 * debugging. To install, use 'pear install tidy' and add a line
3111 * 'extension=tidy.so' to php.ini.
3112 */
3113 $wgUseTidy = false;
3114 /** @see $wgUseTidy */
3115 $wgAlwaysUseTidy = false;
3116 /** @see $wgUseTidy */
3117 $wgTidyBin = 'tidy';
3118 /** @see $wgUseTidy */
3119 $wgTidyConf = $IP.'/includes/tidy.conf';
3120 /** @see $wgUseTidy */
3121 $wgTidyOpts = '';
3122 /** @see $wgUseTidy */
3123 $wgTidyInternal = extension_loaded( 'tidy' );
3124
3125 /**
3126 * Put tidy warnings in HTML comments
3127 * Only works for internal tidy.
3128 */
3129 $wgDebugTidy = false;
3130
3131 /** Allow raw, unchecked HTML in <html>...</html> sections.
3132 * THIS IS VERY DANGEROUS on a publicly editable site, so USE wgGroupPermissions
3133 * TO RESTRICT EDITING to only those that you trust
3134 */
3135 $wgRawHtml = false;
3136
3137 /**
3138 * Set a default target for external links, e.g. _blank to pop up a new window
3139 */
3140 $wgExternalLinkTarget = false;
3141
3142 /**
3143 * If true, external URL links in wiki text will be given the
3144 * rel="nofollow" attribute as a hint to search engines that
3145 * they should not be followed for ranking purposes as they
3146 * are user-supplied and thus subject to spamming.
3147 */
3148 $wgNoFollowLinks = true;
3149
3150 /**
3151 * Namespaces in which $wgNoFollowLinks doesn't apply.
3152 * See Language.php for a list of namespaces.
3153 */
3154 $wgNoFollowNsExceptions = array();
3155
3156 /**
3157 * If this is set to an array of domains, external links to these domain names
3158 * (or any subdomains) will not be set to rel="nofollow" regardless of the
3159 * value of $wgNoFollowLinks. For instance:
3160 *
3161 * $wgNoFollowDomainExceptions = array( 'en.wikipedia.org', 'wiktionary.org' );
3162 *
3163 * This would add rel="nofollow" to links to de.wikipedia.org, but not
3164 * en.wikipedia.org, wiktionary.org, en.wiktionary.org, us.en.wikipedia.org,
3165 * etc.
3166 */
3167 $wgNoFollowDomainExceptions = array();
3168
3169 /**
3170 * Allow DISPLAYTITLE to change title display
3171 */
3172 $wgAllowDisplayTitle = true;
3173
3174 /**
3175 * For consistency, restrict DISPLAYTITLE to titles that normalize to the same
3176 * canonical DB key.
3177 */
3178 $wgRestrictDisplayTitle = true;
3179
3180 /**
3181 * Maximum number of calls per parse to expensive parser functions such as
3182 * PAGESINCATEGORY.
3183 */
3184 $wgExpensiveParserFunctionLimit = 100;
3185
3186 /**
3187 * Preprocessor caching threshold
3188 * Setting it to 'false' will disable the preprocessor cache.
3189 */
3190 $wgPreprocessorCacheThreshold = 1000;
3191
3192 /**
3193 * Enable interwiki transcluding. Only when iw_trans=1.
3194 */
3195 $wgEnableScaryTranscluding = false;
3196
3197 /**
3198 * (see next option $wgGlobalDatabase).
3199 */
3200 $wgTranscludeCacheExpiry = 3600;
3201
3202 /** @} */ # end of parser settings }
3203
3204 /************************************************************************//**
3205 * @name Statistics
3206 * @{
3207 */
3208
3209 /**
3210 * Method used to determine if a page in a content namespace should be counted
3211 * as a valid article.
3212 *
3213 * Redirect pages will never be counted as valid articles.
3214 *
3215 * This variable can have the following values:
3216 * - 'any': all pages as considered as valid articles
3217 * - 'comma': the page must contain a comma to be considered valid
3218 * - 'link': the page must contain a [[wiki link]] to be considered valid
3219 * - null: the value will be set at run time depending on $wgUseCommaCount:
3220 * if $wgUseCommaCount is false, it will be 'link', if it is true
3221 * it will be 'comma'
3222 *
3223 * See also See http://www.mediawiki.org/wiki/Manual:Article_count
3224 *
3225 * Retroactively changing this variable will not affect the existing count,
3226 * to update it, you will need to run the maintenance/updateArticleCount.php
3227 * script.
3228 */
3229 $wgArticleCountMethod = null;
3230
3231 /**
3232 * Backward compatibility setting, will set $wgArticleCountMethod if it is null.
3233 * @deprecated since 1.18; use $wgArticleCountMethod instead
3234 */
3235 $wgUseCommaCount = false;
3236
3237 /**
3238 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
3239 * values are easier on the database. A value of 1 causes the counters to be
3240 * updated on every hit, any higher value n cause them to update *on average*
3241 * every n hits. Should be set to either 1 or something largish, eg 1000, for
3242 * maximum efficiency.
3243 */
3244 $wgHitcounterUpdateFreq = 1;
3245
3246 /**
3247 * How many days user must be idle before he is considered inactive. Will affect
3248 * the number shown on Special:Statistics and Special:ActiveUsers special page.
3249 * You might want to leave this as the default value, to provide comparable
3250 * numbers between different wikis.
3251 */
3252 $wgActiveUserDays = 30;
3253
3254 /** @} */ # End of statistics }
3255
3256 /************************************************************************//**
3257 * @name User accounts, authentication
3258 * @{
3259 */
3260
3261 /** For compatibility with old installations set to false */
3262 $wgPasswordSalt = true;
3263
3264 /**
3265 * Specifies the minimal length of a user password. If set to 0, empty pass-
3266 * words are allowed.
3267 */
3268 $wgMinimalPasswordLength = 1;
3269
3270 /**
3271 * Whether to allow password resets ("enter some identifying data, and we'll send an email
3272 * with a temporary password you can use to get back into the account") identified by
3273 * various bits of data. Setting all of these to false (or the whole variable to false)
3274 * has the effect of disabling password resets entirely
3275 */
3276 $wgPasswordResetRoutes = array(
3277 'username' => true,
3278 'email' => false,
3279 );
3280
3281 /**
3282 * Maximum number of Unicode characters in signature
3283 */
3284 $wgMaxSigChars = 255;
3285
3286 /**
3287 * Maximum number of bytes in username. You want to run the maintenance
3288 * script ./maintenance/checkUsernames.php once you have changed this value.
3289 */
3290 $wgMaxNameChars = 255;
3291
3292 /**
3293 * Array of usernames which may not be registered or logged in from
3294 * Maintenance scripts can still use these
3295 */
3296 $wgReservedUsernames = array(
3297 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
3298 'Conversion script', // Used for the old Wikipedia software upgrade
3299 'Maintenance script', // Maintenance scripts which perform editing, image import script
3300 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
3301 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
3302 'msg:double-redirect-fixer', // Automatic double redirect fix
3303 'msg:usermessage-editor', // Default user for leaving user messages
3304 'msg:proxyblocker', // For Special:Blockme
3305 );
3306
3307 /**
3308 * Settings added to this array will override the default globals for the user
3309 * preferences used by anonymous visitors and newly created accounts.
3310 * For instance, to disable section editing links:
3311 * $wgDefaultUserOptions ['editsection'] = 0;
3312 *
3313 */
3314 $wgDefaultUserOptions = array(
3315 'ccmeonemails' => 0,
3316 'cols' => 80,
3317 'date' => 'default',
3318 'diffonly' => 0,
3319 'disablemail' => 0,
3320 'disablesuggest' => 0,
3321 'editfont' => 'default',
3322 'editondblclick' => 0,
3323 'editsection' => 1,
3324 'editsectiononrightclick' => 0,
3325 'enotifminoredits' => 0,
3326 'enotifrevealaddr' => 0,
3327 'enotifusertalkpages' => 1,
3328 'enotifwatchlistpages' => 0,
3329 'extendwatchlist' => 0,
3330 'externaldiff' => 0,
3331 'externaleditor' => 0,
3332 'fancysig' => 0,
3333 'forceeditsummary' => 0,
3334 'gender' => 'unknown',
3335 'hideminor' => 0,
3336 'hidepatrolled' => 0,
3337 'imagesize' => 2,
3338 'justify' => 0,
3339 'math' => 1,
3340 'minordefault' => 0,
3341 'newpageshidepatrolled' => 0,
3342 'nocache' => 0,
3343 'noconvertlink' => 0,
3344 'norollbackdiff' => 0,
3345 'numberheadings' => 0,
3346 'previewonfirst' => 0,
3347 'previewontop' => 1,
3348 'quickbar' => 5,
3349 'rcdays' => 7,
3350 'rclimit' => 50,
3351 'rememberpassword' => 0,
3352 'rows' => 25,
3353 'searchlimit' => 20,
3354 'showhiddencats' => 0,
3355 'showjumplinks' => 1,
3356 'shownumberswatching' => 1,
3357 'showtoc' => 1,
3358 'showtoolbar' => 1,
3359 'skin' => false,
3360 'stubthreshold' => 0,
3361 'thumbsize' => 2,
3362 'underline' => 2,
3363 'uselivepreview' => 0,
3364 'usenewrc' => 0,
3365 'watchcreations' => 0,
3366 'watchdefault' => 0,
3367 'watchdeletion' => 0,
3368 'watchlistdays' => 3.0,
3369 'watchlisthideanons' => 0,
3370 'watchlisthidebots' => 0,
3371 'watchlisthideliu' => 0,
3372 'watchlisthideminor' => 0,
3373 'watchlisthideown' => 0,
3374 'watchlisthidepatrolled' => 0,
3375 'watchmoves' => 0,
3376 'wllimit' => 250,
3377 );
3378
3379 /**
3380 * Whether or not to allow and use real name fields.
3381 * @deprecated since 1.16, use $wgHiddenPrefs[] = 'realname' below to disable real
3382 * names
3383 */
3384 $wgAllowRealName = true;
3385
3386 /** An array of preferences to not show for the user */
3387 $wgHiddenPrefs = array();
3388
3389 /**
3390 * Characters to prevent during new account creations.
3391 * This is used in a regular expression character class during
3392 * registration (regex metacharacters like / are escaped).
3393 */
3394 $wgInvalidUsernameCharacters = '@';
3395
3396 /**
3397 * Character used as a delimiter when testing for interwiki userrights
3398 * (In Special:UserRights, it is possible to modify users on different
3399 * databases if the delimiter is used, e.g. Someuser@enwiki).
3400 *
3401 * It is recommended that you have this delimiter in
3402 * $wgInvalidUsernameCharacters above, or you will not be able to
3403 * modify the user rights of those users via Special:UserRights
3404 */
3405 $wgUserrightsInterwikiDelimiter = '@';
3406
3407 /**
3408 * Use some particular type of external authentication. The specific
3409 * authentication module you use will normally require some extra settings to
3410 * be specified.
3411 *
3412 * null indicates no external authentication is to be used. Otherwise,
3413 * $wgExternalAuthType must be the name of a non-abstract class that extends
3414 * ExternalUser.
3415 *
3416 * Core authentication modules can be found in includes/extauth/.
3417 */
3418 $wgExternalAuthType = null;
3419
3420 /**
3421 * Configuration for the external authentication. This may include arbitrary
3422 * keys that depend on the authentication mechanism. For instance,
3423 * authentication against another web app might require that the database login
3424 * info be provided. Check the file where your auth mechanism is defined for
3425 * info on what to put here.
3426 */
3427 $wgExternalAuthConf = array();
3428
3429 /**
3430 * When should we automatically create local accounts when external accounts
3431 * already exist, if using ExternalAuth? Can have three values: 'never',
3432 * 'login', 'view'. 'view' requires the external database to support cookies,
3433 * and implies 'login'.
3434 *
3435 * TODO: Implement 'view' (currently behaves like 'login').
3436 */
3437 $wgAutocreatePolicy = 'login';
3438
3439 /**
3440 * Policies for how each preference is allowed to be changed, in the presence
3441 * of external authentication. The keys are preference keys, e.g., 'password'
3442 * or 'emailaddress' (see Preferences.php et al.). The value can be one of the
3443 * following:
3444 *
3445 * - local: Allow changes to this pref through the wiki interface but only
3446 * apply them locally (default).
3447 * - semiglobal: Allow changes through the wiki interface and try to apply them
3448 * to the foreign database, but continue on anyway if that fails.
3449 * - global: Allow changes through the wiki interface, but only let them go
3450 * through if they successfully update the foreign database.
3451 * - message: Allow no local changes for linked accounts; replace the change
3452 * form with a message provided by the auth plugin, telling the user how to
3453 * change the setting externally (maybe providing a link, etc.). If the auth
3454 * plugin provides no message for this preference, hide it entirely.
3455 *
3456 * Accounts that are not linked to an external account are never affected by
3457 * this setting. You may want to look at $wgHiddenPrefs instead.
3458 * $wgHiddenPrefs supersedes this option.
3459 *
3460 * TODO: Implement message, global.
3461 */
3462 $wgAllowPrefChange = array();
3463
3464 /**
3465 * This is to let user authenticate using https when they come from http.
3466 * Based on an idea by George Herbert on wikitech-l:
3467 * http://lists.wikimedia.org/pipermail/wikitech-l/2010-October/050065.html
3468 * @since 1.17
3469 */
3470 $wgSecureLogin = false;
3471
3472 /** @} */ # end user accounts }
3473
3474 /************************************************************************//**
3475 * @name User rights, access control and monitoring
3476 * @{
3477 */
3478
3479 /**
3480 * Number of seconds before autoblock entries expire. Default 86400 = 1 day.
3481 */
3482 $wgAutoblockExpiry = 86400;
3483
3484 /**
3485 * Set this to true to allow blocked users to edit their own user talk page.
3486 */
3487 $wgBlockAllowsUTEdit = false;
3488
3489 /** Allow sysops to ban users from accessing Emailuser */
3490 $wgSysopEmailBans = true;
3491
3492 /**
3493 * Limits on the possible sizes of range blocks.
3494 *
3495 * CIDR notation is hard to understand, it's easy to mistakenly assume that a
3496 * /1 is a small range and a /31 is a large range. For IPv4, setting a limit of
3497 * half the number of bits avoids such errors, and allows entire ISPs to be
3498 * blocked using a small number of range blocks.
3499 *
3500 * For IPv6, RFC 3177 recommends that a /48 be allocated to every residential
3501 * customer, so range blocks larger than /64 (half the number of bits) will
3502 * plainly be required. RFC 4692 implies that a very large ISP may be
3503 * allocated a /19 if a generous HD-Ratio of 0.8 is used, so we will use that
3504 * as our limit. As of 2012, blocking the whole world would require a /4 range.
3505 */
3506 $wgBlockCIDRLimit = array(
3507 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
3508 'IPv6' => 19,
3509 );
3510
3511 /**
3512 * If true, blocked users will not be allowed to login. When using this with
3513 * a public wiki, the effect of logging out blocked users may actually be
3514 * avers: unless the user's address is also blocked (e.g. auto-block),
3515 * logging the user out will again allow reading and editing, just as for
3516 * anonymous visitors.
3517 */
3518 $wgBlockDisablesLogin = false;
3519
3520 /**
3521 * Pages anonymous user may see as an array, e.g.
3522 *
3523 * <code>
3524 * $wgWhitelistRead = array ( "Main Page", "Wikipedia:Help");
3525 * </code>
3526 *
3527 * Special:Userlogin and Special:ChangePassword are always whitelisted.
3528 *
3529 * NOTE: This will only work if $wgGroupPermissions['*']['read'] is false --
3530 * see below. Otherwise, ALL pages are accessible, regardless of this setting.
3531 *
3532 * Also note that this will only protect _pages in the wiki_. Uploaded files
3533 * will remain readable. You can use img_auth.php to protect uploaded files,
3534 * see http://www.mediawiki.org/wiki/Manual:Image_Authorization
3535 */
3536 $wgWhitelistRead = false;
3537
3538 /**
3539 * Should editors be required to have a validated e-mail
3540 * address before being allowed to edit?
3541 */
3542 $wgEmailConfirmToEdit = false;
3543
3544 /**
3545 * Permission keys given to users in each group.
3546 * This is an array where the keys are all groups and each value is an
3547 * array of the format (right => boolean).
3548 *
3549 * The second format is used to support per-namespace permissions.
3550 * Note that this feature does not fully work for all permission types.
3551 *
3552 * All users are implicitly in the '*' group including anonymous visitors;
3553 * logged-in users are all implicitly in the 'user' group. These will be
3554 * combined with the permissions of all groups that a given user is listed
3555 * in in the user_groups table.
3556 *
3557 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
3558 * doing! This will wipe all permissions, and may mean that your users are
3559 * unable to perform certain essential tasks or access new functionality
3560 * when new permissions are introduced and default grants established.
3561 *
3562 * Functionality to make pages inaccessible has not been extensively tested
3563 * for security. Use at your own risk!
3564 *
3565 * This replaces $wgWhitelistAccount and $wgWhitelistEdit
3566 */
3567 $wgGroupPermissions = array();
3568
3569 /** @cond file_level_code */
3570 // Implicit group for all visitors
3571 $wgGroupPermissions['*']['createaccount'] = true;
3572 $wgGroupPermissions['*']['read'] = true;
3573 $wgGroupPermissions['*']['edit'] = true;
3574 $wgGroupPermissions['*']['createpage'] = true;
3575 $wgGroupPermissions['*']['createtalk'] = true;
3576 $wgGroupPermissions['*']['writeapi'] = true;
3577 //$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
3578
3579 // Implicit group for all logged-in accounts
3580 $wgGroupPermissions['user']['move'] = true;
3581 $wgGroupPermissions['user']['move-subpages'] = true;
3582 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
3583 $wgGroupPermissions['user']['movefile'] = true;
3584 $wgGroupPermissions['user']['read'] = true;
3585 $wgGroupPermissions['user']['edit'] = true;
3586 $wgGroupPermissions['user']['createpage'] = true;
3587 $wgGroupPermissions['user']['createtalk'] = true;
3588 $wgGroupPermissions['user']['writeapi'] = true;
3589 $wgGroupPermissions['user']['upload'] = true;
3590 $wgGroupPermissions['user']['reupload'] = true;
3591 $wgGroupPermissions['user']['reupload-shared'] = true;
3592 $wgGroupPermissions['user']['minoredit'] = true;
3593 $wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok"
3594 $wgGroupPermissions['user']['sendemail'] = true;
3595
3596 // Implicit group for accounts that pass $wgAutoConfirmAge
3597 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
3598
3599 // Users with bot privilege can have their edits hidden
3600 // from various log pages by default
3601 $wgGroupPermissions['bot']['bot'] = true;
3602 $wgGroupPermissions['bot']['autoconfirmed'] = true;
3603 $wgGroupPermissions['bot']['nominornewtalk'] = true;
3604 $wgGroupPermissions['bot']['autopatrol'] = true;
3605 $wgGroupPermissions['bot']['suppressredirect'] = true;
3606 $wgGroupPermissions['bot']['apihighlimits'] = true;
3607 $wgGroupPermissions['bot']['writeapi'] = true;
3608 #$wgGroupPermissions['bot']['editprotected'] = true; // can edit all protected pages without cascade protection enabled
3609
3610 // Most extra permission abilities go to this group
3611 $wgGroupPermissions['sysop']['block'] = true;
3612 $wgGroupPermissions['sysop']['createaccount'] = true;
3613 $wgGroupPermissions['sysop']['delete'] = true;
3614 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
3615 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
3616 $wgGroupPermissions['sysop']['deletedtext'] = true; // can view deleted revision text
3617 $wgGroupPermissions['sysop']['undelete'] = true;
3618 $wgGroupPermissions['sysop']['editinterface'] = true;
3619 $wgGroupPermissions['sysop']['editusercss'] = true;
3620 $wgGroupPermissions['sysop']['edituserjs'] = true;
3621 $wgGroupPermissions['sysop']['import'] = true;
3622 $wgGroupPermissions['sysop']['importupload'] = true;
3623 $wgGroupPermissions['sysop']['move'] = true;
3624 $wgGroupPermissions['sysop']['move-subpages'] = true;
3625 $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
3626 $wgGroupPermissions['sysop']['patrol'] = true;
3627 $wgGroupPermissions['sysop']['autopatrol'] = true;
3628 $wgGroupPermissions['sysop']['protect'] = true;
3629 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
3630 $wgGroupPermissions['sysop']['rollback'] = true;
3631 $wgGroupPermissions['sysop']['upload'] = true;
3632 $wgGroupPermissions['sysop']['reupload'] = true;
3633 $wgGroupPermissions['sysop']['reupload-shared'] = true;
3634 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
3635 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
3636 $wgGroupPermissions['sysop']['upload_by_url'] = true;
3637 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
3638 $wgGroupPermissions['sysop']['blockemail'] = true;
3639 $wgGroupPermissions['sysop']['markbotedits'] = true;
3640 $wgGroupPermissions['sysop']['apihighlimits'] = true;
3641 $wgGroupPermissions['sysop']['browsearchive'] = true;
3642 $wgGroupPermissions['sysop']['noratelimit'] = true;
3643 $wgGroupPermissions['sysop']['movefile'] = true;
3644 $wgGroupPermissions['sysop']['unblockself'] = true;
3645 $wgGroupPermissions['sysop']['suppressredirect'] = true;
3646 #$wgGroupPermissions['sysop']['mergehistory'] = true;
3647
3648 // Permission to change users' group assignments
3649 $wgGroupPermissions['bureaucrat']['userrights'] = true;
3650 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
3651 // Permission to change users' groups assignments across wikis
3652 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
3653 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
3654 #$wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
3655
3656 #$wgGroupPermissions['sysop']['deleterevision'] = true;
3657 // To hide usernames from users and Sysops
3658 #$wgGroupPermissions['suppress']['hideuser'] = true;
3659 // To hide revisions/log items from users and Sysops
3660 #$wgGroupPermissions['suppress']['suppressrevision'] = true;
3661 // For private suppression log access
3662 #$wgGroupPermissions['suppress']['suppressionlog'] = true;
3663
3664 /**
3665 * The developer group is deprecated, but can be activated if need be
3666 * to use the 'lockdb' and 'unlockdb' special pages. Those require
3667 * that a lock file be defined and creatable/removable by the web
3668 * server.
3669 */
3670 # $wgGroupPermissions['developer']['siteadmin'] = true;
3671
3672 /** @endcond */
3673
3674 /**
3675 * Permission keys revoked from users in each group.
3676 * This acts the same way as wgGroupPermissions above, except that
3677 * if the user is in a group here, the permission will be removed from them.
3678 *
3679 * Improperly setting this could mean that your users will be unable to perform
3680 * certain essential tasks, so use at your own risk!
3681 */
3682 $wgRevokePermissions = array();
3683
3684 /**
3685 * Implicit groups, aren't shown on Special:Listusers or somewhere else
3686 */
3687 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
3688
3689 /**
3690 * A map of group names that the user is in, to group names that those users
3691 * are allowed to add or revoke.
3692 *
3693 * Setting the list of groups to add or revoke to true is equivalent to "any group".
3694 *
3695 * For example, to allow sysops to add themselves to the "bot" group:
3696 *
3697 * $wgGroupsAddToSelf = array( 'sysop' => array( 'bot' ) );
3698 *
3699 * Implicit groups may be used for the source group, for instance:
3700 *
3701 * $wgGroupsRemoveFromSelf = array( '*' => true );
3702 *
3703 * This allows users in the '*' group (i.e. any user) to remove themselves from
3704 * any group that they happen to be in.
3705 *
3706 */
3707 $wgGroupsAddToSelf = array();
3708
3709 /** @see $wgGroupsAddToSelf */
3710 $wgGroupsRemoveFromSelf = array();
3711
3712 /**
3713 * Set of available actions that can be restricted via action=protect
3714 * You probably shouldn't change this.
3715 * Translated through restriction-* messages.
3716 * Title::getRestrictionTypes() will remove restrictions that are not
3717 * applicable to a specific title (create and upload)
3718 */
3719 $wgRestrictionTypes = array( 'create', 'edit', 'move', 'upload' );
3720
3721 /**
3722 * Rights which can be required for each protection level (via action=protect)
3723 *
3724 * You can add a new protection level that requires a specific
3725 * permission by manipulating this array. The ordering of elements
3726 * dictates the order on the protection form's lists.
3727 *
3728 * - '' will be ignored (i.e. unprotected)
3729 * - 'sysop' is quietly rewritten to 'protect' for backwards compatibility
3730 */
3731 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
3732
3733 /**
3734 * Set the minimum permissions required to edit pages in each
3735 * namespace. If you list more than one permission, a user must
3736 * have all of them to edit pages in that namespace.
3737 *
3738 * Note: NS_MEDIAWIKI is implicitly restricted to editinterface.
3739 */
3740 $wgNamespaceProtection = array();
3741
3742 /**
3743 * Pages in namespaces in this array can not be used as templates.
3744 * Elements must be numeric namespace ids.
3745 * Among other things, this may be useful to enforce read-restrictions
3746 * which may otherwise be bypassed by using the template machanism.
3747 */
3748 $wgNonincludableNamespaces = array();
3749
3750 /**
3751 * Number of seconds an account is required to age before it's given the
3752 * implicit 'autoconfirm' group membership. This can be used to limit
3753 * privileges of new accounts.
3754 *
3755 * Accounts created by earlier versions of the software may not have a
3756 * recorded creation date, and will always be considered to pass the age test.
3757 *
3758 * When left at 0, all registered accounts will pass.
3759 *
3760 * Example:
3761 * <code>
3762 * $wgAutoConfirmAge = 600; // ten minutes
3763 * $wgAutoConfirmAge = 3600*24; // one day
3764 * </code>
3765 */
3766 $wgAutoConfirmAge = 0;
3767
3768 /**
3769 * Number of edits an account requires before it is autoconfirmed.
3770 * Passing both this AND the time requirement is needed. Example:
3771 *
3772 * <code>
3773 * $wgAutoConfirmCount = 50;
3774 * </code>
3775 */
3776 $wgAutoConfirmCount = 0;
3777
3778 /**
3779 * Automatically add a usergroup to any user who matches certain conditions.
3780 * The format is
3781 * array( '&' or '|' or '^' or '!', cond1, cond2, ... )
3782 * where cond1, cond2, ... are themselves conditions; *OR*
3783 * APCOND_EMAILCONFIRMED, *OR*
3784 * array( APCOND_EMAILCONFIRMED ), *OR*
3785 * array( APCOND_EDITCOUNT, number of edits ), *OR*
3786 * array( APCOND_AGE, seconds since registration ), *OR*
3787 * array( APCOND_INGROUPS, group1, group2, ... ), *OR*
3788 * array( APCOND_ISIP, ip ), *OR*
3789 * array( APCOND_IPINRANGE, range ), *OR*
3790 * array( APCOND_AGE_FROM_EDIT, seconds since first edit ), *OR*
3791 * array( APCOND_BLOCKED ), *OR*
3792 * array( APCOND_ISBOT ), *OR*
3793 * similar constructs defined by extensions.
3794 *
3795 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
3796 * user who has provided an e-mail address.
3797 */
3798 $wgAutopromote = array(
3799 'autoconfirmed' => array( '&',
3800 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ),
3801 array( APCOND_AGE, &$wgAutoConfirmAge ),
3802 ),
3803 );
3804
3805 /**
3806 * Automatically add a usergroup to any user who matches certain conditions.
3807 * Does not add the user to the group again if it has been removed.
3808 * Also, does not remove the group if the user no longer meets the criteria.
3809 *
3810 * The format is
3811 * array( event => criteria, ... )
3812 * where event is
3813 * 'onEdit' (when user edits) or 'onView' (when user views the wiki)
3814 * and criteria has the same format as $wgAutopromote
3815 *
3816 * @see $wgAutopromote
3817 * @since 1.18
3818 */
3819 $wgAutopromoteOnce = array(
3820 'onEdit' => array(),
3821 'onView' => array()
3822 );
3823
3824 /**
3825 * Put user rights log entries for autopromotion in recent changes?
3826 * @since 1.18
3827 */
3828 $wgAutopromoteOnceLogInRC = true;
3829
3830 /**
3831 * $wgAddGroups and $wgRemoveGroups can be used to give finer control over who
3832 * can assign which groups at Special:Userrights. Example configuration:
3833 *
3834 * @code
3835 * // Bureaucrat can add any group
3836 * $wgAddGroups['bureaucrat'] = true;
3837 * // Bureaucrats can only remove bots and sysops
3838 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
3839 * // Sysops can make bots
3840 * $wgAddGroups['sysop'] = array( 'bot' );
3841 * // Sysops can disable other sysops in an emergency, and disable bots
3842 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
3843 * @endcode
3844 */
3845 $wgAddGroups = array();
3846 /** @see $wgAddGroups */
3847 $wgRemoveGroups = array();
3848
3849 /**
3850 * A list of available rights, in addition to the ones defined by the core.
3851 * For extensions only.
3852 */
3853 $wgAvailableRights = array();
3854
3855 /**
3856 * Optional to restrict deletion of pages with higher revision counts
3857 * to users with the 'bigdelete' permission. (Default given to sysops.)
3858 */
3859 $wgDeleteRevisionsLimit = 0;
3860
3861 /** Number of accounts each IP address may create, 0 to disable.
3862 * Requires memcached */
3863 $wgAccountCreationThrottle = 0;
3864
3865 /**
3866 * Edits matching these regular expressions in body text
3867 * will be recognised as spam and rejected automatically.
3868 *
3869 * There's no administrator override on-wiki, so be careful what you set. :)
3870 * May be an array of regexes or a single string for backwards compatibility.
3871 *
3872 * See http://en.wikipedia.org/wiki/Regular_expression
3873 * Note that each regex needs a beginning/end delimiter, eg: # or /
3874 */
3875 $wgSpamRegex = array();
3876
3877 /** Same as the above except for edit summaries */
3878 $wgSummarySpamRegex = array();
3879
3880 /**
3881 * Whether to use DNS blacklists in $wgDnsBlacklistUrls to check for open proxies
3882 * @since 1.16
3883 */
3884 $wgEnableDnsBlacklist = false;
3885
3886 /**
3887 * @deprecated since 1.17 Use $wgEnableDnsBlacklist instead, only kept for backward
3888 * compatibility
3889 */
3890 $wgEnableSorbs = false;
3891
3892 /**
3893 * List of DNS blacklists to use, if $wgEnableDnsBlacklist is true. This is an
3894 * array of either a URL or an array with the URL and a key (should the blacklist
3895 * require a key). For example:
3896 * @code
3897 * $wgDnsBlacklistUrls = array(
3898 * // String containing URL
3899 * 'http.dnsbl.sorbs.net',
3900 * // Array with URL and key, for services that require a key
3901 * array( 'dnsbl.httpbl.net', 'mykey' ),
3902 * // Array with just the URL. While this works, it is recommended that you
3903 * // just use a string as shown above
3904 * array( 'opm.tornevall.org' )
3905 * );
3906 * @endcode
3907 * @since 1.16
3908 */
3909 $wgDnsBlacklistUrls = array( 'http.dnsbl.sorbs.net.' );
3910
3911 /**
3912 * @deprecated since 1.17 Use $wgDnsBlacklistUrls instead, only kept for backward
3913 * compatibility
3914 */
3915 $wgSorbsUrl = array();
3916
3917 /**
3918 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite
3919 * what the other methods might say.
3920 */
3921 $wgProxyWhitelist = array();
3922
3923 /**
3924 * Simple rate limiter options to brake edit floods. Maximum number actions
3925 * allowed in the given number of seconds; after that the violating client re-
3926 * ceives HTTP 500 error pages until the period elapses.
3927 *
3928 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
3929 *
3930 * This option set is experimental and likely to change. Requires memcached.
3931 */
3932 $wgRateLimits = array(
3933 'edit' => array(
3934 'anon' => null, // for any and all anonymous edits (aggregate)
3935 'user' => null, // for each logged-in user
3936 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
3937 'ip' => null, // for each anon and recent account
3938 'subnet' => null, // ... with final octet removed
3939 ),
3940 'move' => array(
3941 'user' => null,
3942 'newbie' => null,
3943 'ip' => null,
3944 'subnet' => null,
3945 ),
3946 'mailpassword' => array(
3947 'anon' => null,
3948 ),
3949 'emailuser' => array(
3950 'user' => null,
3951 ),
3952 );
3953
3954 /**
3955 * Set to a filename to log rate limiter hits.
3956 */
3957 $wgRateLimitLog = null;
3958
3959 /**
3960 * Array of IPs which should be excluded from rate limits.
3961 * This may be useful for whitelisting NAT gateways for conferences, etc.
3962 */
3963 $wgRateLimitsExcludedIPs = array();
3964
3965 /**
3966 * Log IP addresses in the recentchanges table; can be accessed only by
3967 * extensions (e.g. CheckUser) or a DB admin
3968 */
3969 $wgPutIPinRC = true;
3970
3971 /**
3972 * Integer defining default number of entries to show on
3973 * special pages which are query-pages such as Special:Whatlinkshere.
3974 */
3975 $wgQueryPageDefaultLimit = 50;
3976
3977 /**
3978 * Limit password attempts to X attempts per Y seconds per IP per account.
3979 * Requires memcached.
3980 */
3981 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 );
3982
3983 /** @} */ # end of user rights settings
3984
3985 /************************************************************************//**
3986 * @name Proxy scanner settings
3987 * @{
3988 */
3989
3990 /**
3991 * If you enable this, every editor's IP address will be scanned for open HTTP
3992 * proxies.
3993 *
3994 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
3995 * ISP and ask for your server to be shut down.
3996 *
3997 * You have been warned.
3998 */
3999 $wgBlockOpenProxies = false;
4000 /** Port we want to scan for a proxy */
4001 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
4002 /** Script used to scan */
4003 $wgProxyScriptPath = "$IP/maintenance/proxy_check.php";
4004 /** */
4005 $wgProxyMemcExpiry = 86400;
4006 /** This should always be customised in LocalSettings.php */
4007 $wgSecretKey = false;
4008 /** big list of banned IP addresses, in the keys not the values */
4009 $wgProxyList = array();
4010 /** deprecated */
4011 $wgProxyKey = false;
4012
4013 /** @} */ # end of proxy scanner settings
4014
4015 /************************************************************************//**
4016 * @name Cookie settings
4017 * @{
4018 */
4019
4020 /**
4021 * Default cookie expiration time. Setting to 0 makes all cookies session-only.
4022 */
4023 $wgCookieExpiration = 180*86400;
4024
4025 /**
4026 * Set to set an explicit domain on the login cookies eg, "justthis.domain.org"
4027 * or ".any.subdomain.net"
4028 */
4029 $wgCookieDomain = '';
4030
4031
4032 /**
4033 * Set this variable if you want to restrict cookies to a certain path within
4034 * the domain specified by $wgCookieDomain.
4035 */
4036 $wgCookiePath = '/';
4037
4038 /**
4039 * Whether the "secure" flag should be set on the cookie. This can be:
4040 * - true: Set secure flag
4041 * - false: Don't set secure flag
4042 * - "detect": Set the secure flag if $wgServer is set to an HTTPS URL
4043 */
4044 $wgCookieSecure = 'detect';
4045
4046 /**
4047 * By default, MediaWiki checks if the client supports cookies during the
4048 * login process, so that it can display an informative error message if
4049 * cookies are disabled. Set this to true if you want to disable this cookie
4050 * check.
4051 */
4052 $wgDisableCookieCheck = false;
4053
4054 /**
4055 * Cookies generated by MediaWiki have names starting with this prefix. Set it
4056 * to a string to use a custom prefix. Setting it to false causes the database
4057 * name to be used as a prefix.
4058 */
4059 $wgCookiePrefix = false;
4060
4061 /**
4062 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
4063 * in browsers that support this feature. This can mitigates some classes of
4064 * XSS attack.
4065 */
4066 $wgCookieHttpOnly = true;
4067
4068 /**
4069 * If the requesting browser matches a regex in this blacklist, we won't
4070 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
4071 */
4072 $wgHttpOnlyBlacklist = array(
4073 // Internet Explorer for Mac; sometimes the cookies work, sometimes
4074 // they don't. It's difficult to predict, as combinations of path
4075 // and expiration options affect its parsing.
4076 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
4077 );
4078
4079 /** A list of cookies that vary the cache (for use by extensions) */
4080 $wgCacheVaryCookies = array();
4081
4082 /** Override to customise the session name */
4083 $wgSessionName = false;
4084
4085 /** @} */ # end of cookie settings }
4086
4087 /************************************************************************//**
4088 * @name LaTeX (mathematical formulas)
4089 * @{
4090 */
4091
4092 /**
4093 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
4094 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
4095 * (ImageMagick) installed and available in the PATH.
4096 * Please see math/README for more information.
4097 */
4098 $wgUseTeX = false;
4099
4100 /* @} */ # end LaTeX }
4101
4102 /************************************************************************//**
4103 * @name Profiling, testing and debugging
4104 *
4105 * To enable profiling, edit StartProfiler.php
4106 *
4107 * @{
4108 */
4109
4110 /**
4111 * Filename for debug logging. See http://www.mediawiki.org/wiki/How_to_debug
4112 * The debug log file should be not be publicly accessible if it is used, as it
4113 * may contain private data.
4114 */
4115 $wgDebugLogFile = '';
4116
4117 /**
4118 * Prefix for debug log lines
4119 */
4120 $wgDebugLogPrefix = '';
4121
4122 /**
4123 * If true, instead of redirecting, show a page with a link to the redirect
4124 * destination. This allows for the inspection of PHP error messages, and easy
4125 * resubmission of form data. For developer use only.
4126 */
4127 $wgDebugRedirects = false;
4128
4129 /**
4130 * If true, log debugging data from action=raw and load.php.
4131 * This is normally false to avoid overlapping debug entries due to gen=css and
4132 * gen=js requests.
4133 */
4134 $wgDebugRawPage = false;
4135
4136 /**
4137 * Send debug data to an HTML comment in the output.
4138 *
4139 * This may occasionally be useful when supporting a non-technical end-user. It's
4140 * more secure than exposing the debug log file to the web, since the output only
4141 * contains private data for the current user. But it's not ideal for development
4142 * use since data is lost on fatal errors and redirects.
4143 */
4144 $wgDebugComments = false;
4145
4146 /**
4147 * Extensive database transaction state debugging
4148 */
4149 $wgDebugDBTransactions = false;
4150
4151 /**
4152 * Write SQL queries to the debug log
4153 */
4154 $wgDebugDumpSql = false;
4155
4156 /**
4157 * Set to an array of log group keys to filenames.
4158 * If set, wfDebugLog() output for that group will go to that file instead
4159 * of the regular $wgDebugLogFile. Useful for enabling selective logging
4160 * in production.
4161 */
4162 $wgDebugLogGroups = array();
4163
4164 /**
4165 * Display debug data at the bottom of the main content area.
4166 *
4167 * Useful for developers and technical users trying to working on a closed wiki.
4168 */
4169 $wgShowDebug = false;
4170
4171 /**
4172 * Prefix debug messages with relative timestamp. Very-poor man's profiler.
4173 * Since 1.19 also includes memory usage.
4174 */
4175 $wgDebugTimestamps = false;
4176
4177 /**
4178 * Print HTTP headers for every request in the debug information.
4179 */
4180 $wgDebugPrintHttpHeaders = true;
4181
4182 /**
4183 * Show the contents of $wgHooks in Special:Version
4184 */
4185 $wgSpecialVersionShowHooks = false;
4186
4187 /**
4188 * Whether to show "we're sorry, but there has been a database error" pages.
4189 * Displaying errors aids in debugging, but may display information useful
4190 * to an attacker.
4191 */
4192 $wgShowSQLErrors = false;
4193
4194 /**
4195 * If set to true, uncaught exceptions will print a complete stack trace
4196 * to output. This should only be used for debugging, as it may reveal
4197 * private information in function parameters due to PHP's backtrace
4198 * formatting.
4199 */
4200 $wgShowExceptionDetails = false;
4201
4202 /**
4203 * If true, show a backtrace for database errors
4204 */
4205 $wgShowDBErrorBacktrace = false;
4206
4207 /**
4208 * If true, send the exception backtrace to the error log
4209 */
4210 $wgLogExceptionBacktrace = true;
4211
4212 /**
4213 * Expose backend server host names through the API and various HTML comments
4214 */
4215 $wgShowHostnames = false;
4216
4217 /**
4218 * If set to true MediaWiki will throw notices for some possible error
4219 * conditions and for deprecated functions.
4220 */
4221 $wgDevelopmentWarnings = false;
4222
4223 /**
4224 * Release limitation to wfDeprecated warnings, if set to a release number
4225 * development warnings will not be generated for deprecations added in releases
4226 * after the limit.
4227 */
4228 $wgDeprecationReleaseLimit = false;
4229
4230 /** Only record profiling info for pages that took longer than this */
4231 $wgProfileLimit = 0.0;
4232
4233 /** Don't put non-profiling info into log file */
4234 $wgProfileOnly = false;
4235
4236 /**
4237 * Log sums from profiling into "profiling" table in db.
4238 *
4239 * You have to create a 'profiling' table in your database before using
4240 * this feature, see maintenance/archives/patch-profiling.sql
4241 *
4242 * To enable profiling, edit StartProfiler.php
4243 */
4244 $wgProfileToDatabase = false;
4245
4246 /** If true, print a raw call tree instead of per-function report */
4247 $wgProfileCallTree = false;
4248
4249 /** Should application server host be put into profiling table */
4250 $wgProfilePerHost = false;
4251
4252 /**
4253 * Host for UDP profiler.
4254 *
4255 * The host should be running a daemon which can be obtained from MediaWiki
4256 * Subversion at: http://svn.wikimedia.org/svnroot/mediawiki/trunk/udpprofile
4257 */
4258 $wgUDPProfilerHost = '127.0.0.1';
4259
4260 /**
4261 * Port for UDP profiler.
4262 * @see $wgUDPProfilerHost
4263 */
4264 $wgUDPProfilerPort = '3811';
4265
4266 /** Detects non-matching wfProfileIn/wfProfileOut calls */
4267 $wgDebugProfiling = false;
4268
4269 /** Output debug message on every wfProfileIn/wfProfileOut */
4270 $wgDebugFunctionEntry = false;
4271
4272 /**
4273 * Destination for wfIncrStats() data...
4274 * 'cache' to go into the system cache, if enabled (memcached)
4275 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
4276 * false to disable
4277 */
4278 $wgStatsMethod = 'cache';
4279
4280 /**
4281 * When $wgStatsMethod is 'udp', setting this to a string allows statistics to
4282 * be aggregated over more than one wiki. The string will be used in place of
4283 * the DB name in outgoing UDP packets. If this is set to false, the DB name
4284 * will be used.
4285 */
4286 $wgAggregateStatsID = false;
4287
4288 /** Whereas to count the number of time an article is viewed.
4289 * Does not work if pages are cached (for example with squid).
4290 */
4291 $wgDisableCounters = false;
4292
4293 /**
4294 * Set this to an integer to only do synchronous site_stats updates
4295 * one every *this many* updates. The other requests go into pending
4296 * delta values in $wgMemc. Make sure that $wgMemc is a global cache.
4297 * If set to -1, updates *only* go to $wgMemc (useful for daemons).
4298 */
4299 $wgSiteStatsAsyncFactor = false;
4300
4301 /**
4302 * Parser test suite files to be run by parserTests.php when no specific
4303 * filename is passed to it.
4304 *
4305 * Extensions may add their own tests to this array, or site-local tests
4306 * may be added via LocalSettings.php
4307 *
4308 * Use full paths.
4309 */
4310 $wgParserTestFiles = array(
4311 "$IP/tests/parser/parserTests.txt",
4312 "$IP/tests/parser/extraParserTests.txt"
4313 );
4314
4315 /**
4316 * If configured, specifies target CodeReview installation to send test
4317 * result data from 'parserTests.php --upload'
4318 *
4319 * Something like this:
4320 * $wgParserTestRemote = array(
4321 * 'api-url' => 'http://www.mediawiki.org/w/api.php',
4322 * 'repo' => 'MediaWiki',
4323 * 'suite' => 'ParserTests',
4324 * 'path' => '/trunk/phase3', // not used client-side; for reference
4325 * 'secret' => 'qmoicj3mc4mcklmqw', // Shared secret used in HMAC validation
4326 * );
4327 */
4328 $wgParserTestRemote = false;
4329
4330 /**
4331 * Allow running of javascript test suites via [[Special:JavaScriptTest]] (such as QUnit).
4332 */
4333 $wgEnableJavaScriptTest = false;
4334
4335 /**
4336 * Configuration for javascript testing.
4337 */
4338 $wgJavaScriptTestConfig = array(
4339 'qunit' => array(
4340 // Page where documentation can be found relevant to the QUnit test suite being ran.
4341 // Used in the intro paragraph on [[Special:JavaScriptTest/qunit]] for the
4342 // documentation link in the "javascripttest-qunit-intro" message.
4343 'documentation' => '//www.mediawiki.org/wiki/Manual:JavaScript_unit_testing',
4344 // If you are submitting the QUnit test suite to a TestSwarm instance,
4345 // point this to the "inject.js" script of that instance. This is was registers
4346 // the QUnit hooks to extract the test results and push them back up into the
4347 // TestSwarm database.
4348 // @example 'http://localhost/testswarm/js/inject.js'
4349 // @example '//integration.mediawiki.org/testswarm/js/inject.js'
4350 'testswarm-injectjs' => false,
4351 ),
4352 );
4353
4354
4355 /**
4356 * Overwrite the caching key prefix with custom value.
4357 * @since 1.19
4358 */
4359 $wgCachePrefix = false;
4360
4361 /**
4362 * Display the new debugging toolbar. This also enables profiling on database
4363 * queries and other useful output.
4364 * Will disable file cache.
4365 *
4366 * @since 1.19
4367 */
4368 $wgDebugToolbar = false;
4369
4370 /** @} */ # end of profiling, testing and debugging }
4371
4372 /************************************************************************//**
4373 * @name Search
4374 * @{
4375 */
4376
4377 /**
4378 * Set this to true to disable the full text search feature.
4379 */
4380 $wgDisableTextSearch = false;
4381
4382 /**
4383 * Set to true to have nicer highligted text in search results,
4384 * by default off due to execution overhead
4385 */
4386 $wgAdvancedSearchHighlighting = false;
4387
4388 /**
4389 * Regexp to match word boundaries, defaults for non-CJK languages
4390 * should be empty for CJK since the words are not separate
4391 */
4392 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
4393
4394 /**
4395 * Set to true to have the search engine count total
4396 * search matches to present in the Special:Search UI.
4397 * Not supported by every search engine shipped with MW.
4398 *
4399 * This could however be slow on larger wikis, and is pretty flaky
4400 * with the current title vs content split. Recommend avoiding until
4401 * that's been worked out cleanly; but this may aid in testing the
4402 * search UI and API to confirm that the result count works.
4403 */
4404 $wgCountTotalSearchHits = false;
4405
4406 /**
4407 * Template for OpenSearch suggestions, defaults to API action=opensearch
4408 *
4409 * Sites with heavy load would tipically have these point to a custom
4410 * PHP wrapper to avoid firing up mediawiki for every keystroke
4411 *
4412 * Placeholders: {searchTerms}
4413 *
4414 */
4415 $wgOpenSearchTemplate = false;
4416
4417 /**
4418 * Enable suggestions while typing in search boxes
4419 * (results are passed around in OpenSearch format)
4420 * Requires $wgEnableOpenSearchSuggest = true;
4421 */
4422 $wgEnableMWSuggest = false;
4423
4424 /**
4425 * Enable OpenSearch suggestions requested by MediaWiki. Set this to
4426 * false if you've disabled MWSuggest or another suggestion script and
4427 * want reduce load caused by cached scripts pulling suggestions.
4428 */
4429 $wgEnableOpenSearchSuggest = true;
4430
4431 /**
4432 * Expiry time for search suggestion responses
4433 */
4434 $wgSearchSuggestCacheExpiry = 1200;
4435
4436 /**
4437 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
4438 *
4439 * Placeholders: {searchTerms}, {namespaces}, {dbname}
4440 *
4441 */
4442 $wgMWSuggestTemplate = false;
4443
4444 /**
4445 * If you've disabled search semi-permanently, this also disables updates to the
4446 * table. If you ever re-enable, be sure to rebuild the search table.
4447 */
4448 $wgDisableSearchUpdate = false;
4449
4450 /**
4451 * List of namespaces which are searched by default. Example:
4452 *
4453 * <code>
4454 * $wgNamespacesToBeSearchedDefault[NS_MAIN] = true;
4455 * $wgNamespacesToBeSearchedDefault[NS_PROJECT] = true;
4456 * </code>
4457 */
4458 $wgNamespacesToBeSearchedDefault = array(
4459 NS_MAIN => true,
4460 );
4461
4462 /**
4463 * Namespaces to be searched when user clicks the "Help" tab
4464 * on Special:Search
4465 *
4466 * Same format as $wgNamespacesToBeSearchedDefault
4467 */
4468 $wgNamespacesToBeSearchedHelp = array(
4469 NS_PROJECT => true,
4470 NS_HELP => true,
4471 );
4472
4473 /**
4474 * If set to true the 'searcheverything' preference will be effective only for logged-in users.
4475 * Useful for big wikis to maintain different search profiles for anonymous and logged-in users.
4476 *
4477 */
4478 $wgSearchEverythingOnlyLoggedIn = false;
4479
4480 /**
4481 * Disable the internal MySQL-based search, to allow it to be
4482 * implemented by an extension instead.
4483 */
4484 $wgDisableInternalSearch = false;
4485
4486 /**
4487 * Set this to a URL to forward search requests to some external location.
4488 * If the URL includes '$1', this will be replaced with the URL-encoded
4489 * search term.
4490 *
4491 * For example, to forward to Google you'd have something like:
4492 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
4493 * '&domains=http://example.com' .
4494 * '&sitesearch=http://example.com' .
4495 * '&ie=utf-8&oe=utf-8';
4496 */
4497 $wgSearchForwardUrl = null;
4498
4499 /**
4500 * Search form behavior
4501 * true = use Go & Search buttons
4502 * false = use Go button & Advanced search link
4503 */
4504 $wgUseTwoButtonsSearchForm = true;
4505
4506 /**
4507 * Array of namespaces to generate a Google sitemap for when the
4508 * maintenance/generateSitemap.php script is run, or false if one is to be ge-
4509 * nerated for all namespaces.
4510 */
4511 $wgSitemapNamespaces = false;
4512
4513 /**
4514 * Custom namespace priorities for sitemaps. Setting this will allow you to
4515 * set custom priorities to namsepaces when sitemaps are generated using the
4516 * maintenance/generateSitemap.php script.
4517 *
4518 * This should be a map of namespace IDs to priority
4519 * Example:
4520 * $wgSitemapNamespacesPriorities = array(
4521 * NS_USER => '0.9',
4522 * NS_HELP => '0.0',
4523 * );
4524 */
4525 $wgSitemapNamespacesPriorities = false;
4526
4527 /**
4528 * If true, searches for IP addresses will be redirected to that IP's
4529 * contributions page. E.g. searching for "1.2.3.4" will redirect to
4530 * [[Special:Contributions/1.2.3.4]]
4531 */
4532 $wgEnableSearchContributorsByIP = true;
4533
4534 /** @} */ # end of search settings
4535
4536 /************************************************************************//**
4537 * @name Edit user interface
4538 * @{
4539 */
4540
4541 /**
4542 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
4543 * fall back to the old behaviour (no merging).
4544 */
4545 $wgDiff3 = '/usr/bin/diff3';
4546
4547 /**
4548 * Path to the GNU diff utility.
4549 */
4550 $wgDiff = '/usr/bin/diff';
4551
4552 /**
4553 * Which namespaces have special treatment where they should be preview-on-open
4554 * Internaly only Category: pages apply, but using this extensions (e.g. Semantic MediaWiki)
4555 * can specify namespaces of pages they have special treatment for
4556 */
4557 $wgPreviewOnOpenNamespaces = array(
4558 NS_CATEGORY => true
4559 );
4560
4561 /**
4562 * Activate external editor interface for files and pages
4563 * See http://www.mediawiki.org/wiki/Manual:External_editors
4564 */
4565 $wgUseExternalEditor = true;
4566
4567 /** Go button goes straight to the edit screen if the article doesn't exist. */
4568 $wgGoToEdit = false;
4569
4570 /**
4571 * Enable the UniversalEditButton for browsers that support it
4572 * (currently only Firefox with an extension)
4573 * See http://universaleditbutton.org for more background information
4574 */
4575 $wgUniversalEditButton = true;
4576
4577 /**
4578 * If user doesn't specify any edit summary when making a an edit, MediaWiki
4579 * will try to automatically create one. This feature can be disabled by set-
4580 * ting this variable false.
4581 */
4582 $wgUseAutomaticEditSummaries = true;
4583
4584 /** @} */ # end edit UI }
4585
4586 /************************************************************************//**
4587 * @name Maintenance
4588 * See also $wgSiteNotice
4589 * @{
4590 */
4591
4592 /**
4593 * @cond file_level_code
4594 * Set $wgCommandLineMode if it's not set already, to avoid notices
4595 */
4596 if( !isset( $wgCommandLineMode ) ) {
4597 $wgCommandLineMode = false;
4598 }
4599 /** @endcond */
4600
4601 /** For colorized maintenance script output, is your terminal background dark ? */
4602 $wgCommandLineDarkBg = false;
4603
4604 /**
4605 * Array for extensions to register their maintenance scripts with the
4606 * system. The key is the name of the class and the value is the full
4607 * path to the file
4608 */
4609 $wgMaintenanceScripts = array();
4610
4611 /**
4612 * Set this to a string to put the wiki into read-only mode. The text will be
4613 * used as an explanation to users.
4614 *
4615 * This prevents most write operations via the web interface. Cache updates may
4616 * still be possible. To prevent database writes completely, use the read_only
4617 * option in MySQL.
4618 */
4619 $wgReadOnly = null;
4620
4621 /**
4622 * If this lock file exists (size > 0), the wiki will be forced into read-only mode.
4623 * Its contents will be shown to users as part of the read-only warning
4624 * message.
4625 *
4626 * Will default to "{$wgUploadDirectory}/lock_yBgMBwiR" in Setup.php
4627 */
4628 $wgReadOnlyFile = false;
4629
4630 /**
4631 * When you run the web-based upgrade utility, it will tell you what to set
4632 * this to in order to authorize the upgrade process. It will subsequently be
4633 * used as a password, to authorize further upgrades.
4634 *
4635 * For security, do not set this to a guessable string. Use the value supplied
4636 * by the install/upgrade process. To cause the upgrader to generate a new key,
4637 * delete the old key from LocalSettings.php.
4638 */
4639 $wgUpgradeKey = false;
4640
4641 /**
4642 * Map GIT repository URLs to viewer URLs to provide links in Special:Version
4643 *
4644 * Key is a pattern passed to preg_match() and preg_replace(),
4645 * without the delimiters (which are #) and must match the whole URL.
4646 * The value is the replacement for the key (it can contain $1, etc.)
4647 * %h will be replaced by the short SHA-1 (7 first chars) and %H by the
4648 * full SHA-1 of the HEAD revision.
4649 */
4650 $wgGitRepositoryViewers = array(
4651 'https://gerrit.wikimedia.org/r/p/(.*)' => 'https://gerrit.wikimedia.org/r/gitweb?p=$1;h=%H',
4652 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' => 'https://gerrit.wikimedia.org/r/gitweb?p=$1;h=%H',
4653 );
4654
4655 /** @} */ # End of maintenance }
4656
4657 /************************************************************************//**
4658 * @name Recent changes, new pages, watchlist and history
4659 * @{
4660 */
4661
4662 /**
4663 * Recentchanges items are periodically purged; entries older than this many
4664 * seconds will go.
4665 * Default: 13 weeks = about three months
4666 */
4667 $wgRCMaxAge = 13 * 7 * 24 * 3600;
4668
4669 /**
4670 * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers
4671 * higher than what will be stored. Note that this is disabled by default
4672 * because we sometimes do have RC data which is beyond the limit for some
4673 * reason, and some users may use the high numbers to display that data which
4674 * is still there.
4675 */
4676 $wgRCFilterByAge = false;
4677
4678 /**
4679 * List of Days and Limits options to list in the Special:Recentchanges and
4680 * Special:Recentchangeslinked pages.
4681 */
4682 $wgRCLinkLimits = array( 50, 100, 250, 500 );
4683 $wgRCLinkDays = array( 1, 3, 7, 14, 30 );
4684
4685 /**
4686 * Send recent changes updates via UDP. The updates will be formatted for IRC.
4687 * Set this to the IP address of the receiver.
4688 */
4689 $wgRC2UDPAddress = false;
4690
4691 /**
4692 * Port number for RC updates
4693 */
4694 $wgRC2UDPPort = false;
4695
4696 /**
4697 * Prefix to prepend to each UDP packet.
4698 * This can be used to identify the wiki. A script is available called
4699 * mxircecho.py which listens on a UDP port, and uses a prefix ending in a
4700 * tab to identify the IRC channel to send the log line to.
4701 */
4702 $wgRC2UDPPrefix = '';
4703
4704 /**
4705 * If this is set to true, $wgLocalInterwiki will be prepended to links in the
4706 * IRC feed. If this is set to a string, that string will be used as the prefix.
4707 */
4708 $wgRC2UDPInterwikiPrefix = false;
4709
4710 /**
4711 * Set to true to omit "bot" edits (by users with the bot permission) from the
4712 * UDP feed.
4713 */
4714 $wgRC2UDPOmitBots = false;
4715
4716 /**
4717 * Enable user search in Special:Newpages
4718 * This is really a temporary hack around an index install bug on some Wikipedias.
4719 * Kill it once fixed.
4720 */
4721 $wgEnableNewpagesUserFilter = true;
4722
4723 /** Use RC Patrolling to check for vandalism */
4724 $wgUseRCPatrol = true;
4725
4726 /** Use new page patrolling to check new pages on Special:Newpages */
4727 $wgUseNPPatrol = true;
4728
4729 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
4730 $wgFeed = true;
4731
4732 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
4733 * eg Recentchanges, Newpages. */
4734 $wgFeedLimit = 50;
4735
4736 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
4737 * A cached version will continue to be served out even if changes
4738 * are made, until this many seconds runs out since the last render.
4739 *
4740 * If set to 0, feed caching is disabled. Use this for debugging only;
4741 * feed generation can be pretty slow with diffs.
4742 */
4743 $wgFeedCacheTimeout = 60;
4744
4745 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
4746 * pages larger than this size. */
4747 $wgFeedDiffCutoff = 32768;
4748
4749 /** Override the site's default RSS/ATOM feed for recentchanges that appears on
4750 * every page. Some sites might have a different feed they'd like to promote
4751 * instead of the RC feed (maybe like a "Recent New Articles" or "Breaking news" one).
4752 * Ex: $wgSiteFeed['format'] = "http://example.com/somefeed.xml"; Format can be one
4753 * of either 'rss' or 'atom'.
4754 */
4755 $wgOverrideSiteFeed = array();
4756
4757 /**
4758 * Available feeds objects
4759 * Should probably only be defined when a page is syndicated ie when
4760 * $wgOut->isSyndicated() is true
4761 */
4762 $wgFeedClasses = array(
4763 'rss' => 'RSSFeed',
4764 'atom' => 'AtomFeed',
4765 );
4766
4767 /**
4768 * Which feed types should we provide by default? This can include 'rss',
4769 * 'atom', neither, or both.
4770 */
4771 $wgAdvertisedFeedTypes = array( 'atom' );
4772
4773 /** Show watching users in recent changes, watchlist and page history views */
4774 $wgRCShowWatchingUsers = false; # UPO
4775 /** Show watching users in Page views */
4776 $wgPageShowWatchingUsers = false;
4777 /** Show the amount of changed characters in recent changes */
4778 $wgRCShowChangedSize = true;
4779
4780 /**
4781 * If the difference between the character counts of the text
4782 * before and after the edit is below that value, the value will be
4783 * highlighted on the RC page.
4784 */
4785 $wgRCChangedSizeThreshold = 500;
4786
4787 /**
4788 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
4789 * view for watched pages with new changes */
4790 $wgShowUpdatedMarker = true;
4791
4792 /**
4793 * Disable links to talk pages of anonymous users (IPs) in listings on special
4794 * pages like page history, Special:Recentchanges, etc.
4795 */
4796 $wgDisableAnonTalk = false;
4797
4798 /**
4799 * Enable filtering of categories in Recentchanges
4800 */
4801 $wgAllowCategorizedRecentChanges = false;
4802
4803 /**
4804 * Allow filtering by change tag in recentchanges, history, etc
4805 * Has no effect if no tags are defined in valid_tag.
4806 */
4807 $wgUseTagFilter = true;
4808
4809 /** @} */ # end RC/watchlist }
4810
4811 /************************************************************************//**
4812 * @name Copyright and credits settings
4813 * @{
4814 */
4815
4816 /**
4817 * Override for copyright metadata.
4818 *
4819 * This is the name of the page containing information about the wiki's copyright status,
4820 * which will be added as a link in the footer if it is specified. It overrides
4821 * $wgRightsUrl if both are specified.
4822 */
4823 $wgRightsPage = null;
4824
4825 /**
4826 * Set this to specify an external URL containing details about the content license used on your wiki.
4827 * If $wgRightsPage is set then this setting is ignored.
4828 */
4829 $wgRightsUrl = null;
4830
4831 /**
4832 * If either $wgRightsUrl or $wgRightsPage is specified then this variable gives the text for the link.
4833 * If using $wgRightsUrl then this value must be specified. If using $wgRightsPage then the name of the
4834 * page will also be used as the link if this variable is not set.
4835 */
4836 $wgRightsText = null;
4837
4838 /**
4839 * Override for copyright metadata.
4840 */
4841 $wgRightsIcon = null;
4842
4843 /**
4844 * Set to an array of metadata terms. Else they will be loaded based on $wgRightsUrl
4845 */
4846 $wgLicenseTerms = false;
4847
4848 /**
4849 * Set this to some HTML to override the rights icon with an arbitrary logo
4850 * @deprecated since 1.18 Use $wgFooterIcons['copyright']['copyright']
4851 */
4852 $wgCopyrightIcon = null;
4853
4854 /** Set this to true if you want detailed copyright information forms on Upload. */
4855 $wgUseCopyrightUpload = false;
4856
4857 /**
4858 * Set this to the number of authors that you want to be credited below an
4859 * article text. Set it to zero to hide the attribution block, and a negative
4860 * number (like -1) to show all authors. Note that this will require 2-3 extra
4861 * database hits, which can have a not insignificant impact on performance for
4862 * large wikis.
4863 */
4864 $wgMaxCredits = 0;
4865
4866 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
4867 * Otherwise, link to a separate credits page. */
4868 $wgShowCreditsIfMax = true;
4869
4870 /** @} */ # end of copyright and credits settings }
4871
4872 /************************************************************************//**
4873 * @name Import / Export
4874 * @{
4875 */
4876
4877 /**
4878 * List of interwiki prefixes for wikis we'll accept as sources for
4879 * Special:Import (for sysops). Since complete page history can be imported,
4880 * these should be 'trusted'.
4881 *
4882 * If a user has the 'import' permission but not the 'importupload' permission,
4883 * they will only be able to run imports through this transwiki interface.
4884 */
4885 $wgImportSources = array();
4886
4887 /**
4888 * Optional default target namespace for interwiki imports.
4889 * Can use this to create an incoming "transwiki"-style queue.
4890 * Set to numeric key, not the name.
4891 *
4892 * Users may override this in the Special:Import dialog.
4893 */
4894 $wgImportTargetNamespace = null;
4895
4896 /**
4897 * If set to false, disables the full-history option on Special:Export.
4898 * This is currently poorly optimized for long edit histories, so is
4899 * disabled on Wikimedia's sites.
4900 */
4901 $wgExportAllowHistory = true;
4902
4903 /**
4904 * If set nonzero, Special:Export requests for history of pages with
4905 * more revisions than this will be rejected. On some big sites things
4906 * could get bogged down by very very long pages.
4907 */
4908 $wgExportMaxHistory = 0;
4909
4910 /**
4911 * Return distinct author list (when not returning full history)
4912 */
4913 $wgExportAllowListContributors = false;
4914
4915 /**
4916 * If non-zero, Special:Export accepts a "pagelink-depth" parameter
4917 * up to this specified level, which will cause it to include all
4918 * pages linked to from the pages you specify. Since this number
4919 * can become *insanely large* and could easily break your wiki,
4920 * it's disabled by default for now.
4921 *
4922 * There's a HARD CODED limit of 5 levels of recursion to prevent a
4923 * crazy-big export from being done by someone setting the depth
4924 * number too high. In other words, last resort safety net.
4925 */
4926 $wgExportMaxLinkDepth = 0;
4927
4928 /**
4929 * Whether to allow the "export all pages in namespace" option
4930 */
4931 $wgExportFromNamespaces = false;
4932
4933 /**
4934 * Whether to allow exporting the entire wiki into a single file
4935 */
4936 $wgExportAllowAll = false;
4937
4938 /** @} */ # end of import/export }
4939
4940 /*************************************************************************//**
4941 * @name Extensions
4942 * @{
4943 */
4944
4945 /**
4946 * A list of callback functions which are called once MediaWiki is fully initialised
4947 */
4948 $wgExtensionFunctions = array();
4949
4950 /**
4951 * Extension messages files.
4952 *
4953 * Associative array mapping extension name to the filename where messages can be
4954 * found. The file should contain variable assignments. Any of the variables
4955 * present in languages/messages/MessagesEn.php may be defined, but $messages
4956 * is the most common.
4957 *
4958 * Variables defined in extensions will override conflicting variables defined
4959 * in the core.
4960 *
4961 * Example:
4962 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
4963 *
4964 */
4965 $wgExtensionMessagesFiles = array();
4966
4967 /**
4968 * Parser output hooks.
4969 * This is an associative array where the key is an extension-defined tag
4970 * (typically the extension name), and the value is a PHP callback.
4971 * These will be called as an OutputPageParserOutput hook, if the relevant
4972 * tag has been registered with the parser output object.
4973 *
4974 * Registration is done with $pout->addOutputHook( $tag, $data ).
4975 *
4976 * The callback has the form:
4977 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
4978 */
4979 $wgParserOutputHooks = array();
4980
4981 /**
4982 * List of valid skin names.
4983 * The key should be the name in all lower case, the value should be a properly
4984 * cased name for the skin. This value will be prefixed with "Skin" to create the
4985 * class name of the skin to load, and if the skin's class cannot be found through
4986 * the autoloader it will be used to load a .php file by that name in the skins directory.
4987 * The default skins will be added later, by Skin::getSkinNames(). Use
4988 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
4989 */
4990 $wgValidSkinNames = array();
4991
4992 /**
4993 * Special page list.
4994 * See the top of SpecialPage.php for documentation.
4995 */
4996 $wgSpecialPages = array();
4997
4998 /**
4999 * Array mapping class names to filenames, for autoloading.
5000 */
5001 $wgAutoloadClasses = array();
5002
5003 /**
5004 * An array of extension types and inside that their names, versions, authors,
5005 * urls, descriptions and pointers to localized description msgs. Note that
5006 * the version, url, description and descriptionmsg key can be omitted.
5007 *
5008 * <code>
5009 * $wgExtensionCredits[$type][] = array(
5010 * 'name' => 'Example extension',
5011 * 'version' => 1.9,
5012 * 'path' => __FILE__,
5013 * 'author' => 'Foo Barstein',
5014 * 'url' => 'http://wwww.example.com/Example%20Extension/',
5015 * 'description' => 'An example extension',
5016 * 'descriptionmsg' => 'exampleextension-desc',
5017 * );
5018 * </code>
5019 *
5020 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
5021 * Where 'descriptionmsg' can be an array with message key and parameters:
5022 * 'descriptionmsg' => array( 'exampleextension-desc', param1, param2, ... ),
5023 */
5024 $wgExtensionCredits = array();
5025
5026 /**
5027 * Authentication plugin.
5028 * @var $wgAuth AuthPlugin
5029 */
5030 $wgAuth = null;
5031
5032 /**
5033 * Global list of hooks.
5034 * Add a hook by doing:
5035 * $wgHooks['event_name'][] = $function;
5036 * or:
5037 * $wgHooks['event_name'][] = array($function, $data);
5038 * or:
5039 * $wgHooks['event_name'][] = array($object, 'method');
5040 */
5041 $wgHooks = array();
5042
5043 /**
5044 * Maps jobs to their handling classes; extensions
5045 * can add to this to provide custom jobs
5046 */
5047 $wgJobClasses = array(
5048 'refreshLinks' => 'RefreshLinksJob',
5049 'refreshLinks2' => 'RefreshLinksJob2',
5050 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
5051 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
5052 'sendMail' => 'EmaillingJob',
5053 'enotifNotify' => 'EnotifNotifyJob',
5054 'fixDoubleRedirect' => 'DoubleRedirectJob',
5055 'uploadFromUrl' => 'UploadFromUrlJob',
5056 );
5057
5058 /**
5059
5060 * Jobs that must be explicitly requested, i.e. aren't run by job runners unless special flags are set.
5061 *
5062 * These can be:
5063 * - Very long-running jobs.
5064 * - Jobs that you would never want to run as part of a page rendering request.
5065 * - Jobs that you want to run on specialized machines ( like transcoding, or a particular
5066 * machine on your cluster has 'outside' web access you could restrict uploadFromUrl )
5067 */
5068 $wgJobTypesExcludedFromDefaultQueue = array();
5069
5070 /**
5071 * Additional functions to be performed with updateSpecialPages.
5072 * Expensive Querypages are already updated.
5073 */
5074 $wgSpecialPageCacheUpdates = array(
5075 'Statistics' => array( 'SiteStatsUpdate', 'cacheUpdate' )
5076 );
5077
5078 /**
5079 * Hooks that are used for outputting exceptions. Format is:
5080 * $wgExceptionHooks[] = $funcname
5081 * or:
5082 * $wgExceptionHooks[] = array( $class, $funcname )
5083 * Hooks should return strings or false
5084 */
5085 $wgExceptionHooks = array();
5086
5087 /**
5088 * Page property link table invalidation lists. When a page property
5089 * changes, this may require other link tables to be updated (eg
5090 * adding __HIDDENCAT__ means the hiddencat tracking category will
5091 * have been added, so the categorylinks table needs to be rebuilt).
5092 * This array can be added to by extensions.
5093 */
5094 $wgPagePropLinkInvalidations = array(
5095 'hiddencat' => 'categorylinks',
5096 );
5097
5098 /** @} */ # End extensions }
5099
5100 /*************************************************************************//**
5101 * @name Categories
5102 * @{
5103 */
5104
5105 /**
5106 * Use experimental, DMOZ-like category browser
5107 */
5108 $wgUseCategoryBrowser = false;
5109
5110 /**
5111 * On category pages, show thumbnail gallery for images belonging to that
5112 * category instead of listing them as articles.
5113 */
5114 $wgCategoryMagicGallery = true;
5115
5116 /**
5117 * Paging limit for categories
5118 */
5119 $wgCategoryPagingLimit = 200;
5120
5121 /**
5122 * Specify how category names should be sorted, when listed on a category page.
5123 * A sorting scheme is also known as a collation.
5124 *
5125 * Available values are:
5126 *
5127 * - uppercase: Converts the category name to upper case, and sorts by that.
5128 *
5129 * - identity: Does no conversion. Sorts by binary value of the string.
5130 *
5131 * - uca-default: Provides access to the Unicode Collation Algorithm with
5132 * the default element table. This is a compromise collation which sorts
5133 * all languages in a mediocre way. However, it is better than "uppercase".
5134 *
5135 * To use the uca-default collation, you must have PHP's intl extension
5136 * installed. See http://php.net/manual/en/intl.setup.php . The details of the
5137 * resulting collation will depend on the version of ICU installed on the
5138 * server.
5139 *
5140 * After you change this, you must run maintenance/updateCollation.php to fix
5141 * the sort keys in the database.
5142 *
5143 * Extensions can define there own collations by subclassing Collation
5144 * and using the Collation::factory hook.
5145 */
5146 $wgCategoryCollation = 'uppercase';
5147
5148 /** @} */ # End categories }
5149
5150 /*************************************************************************//**
5151 * @name Logging
5152 * @{
5153 */
5154
5155 /**
5156 * The logging system has two levels: an event type, which describes the
5157 * general category and can be viewed as a named subset of all logs; and
5158 * an action, which is a specific kind of event that can exist in that
5159 * log type.
5160 */
5161 $wgLogTypes = array(
5162 '',
5163 'block',
5164 'protect',
5165 'rights',
5166 'delete',
5167 'upload',
5168 'move',
5169 'import',
5170 'patrol',
5171 'merge',
5172 'suppress',
5173 );
5174
5175 /**
5176 * This restricts log access to those who have a certain right
5177 * Users without this will not see it in the option menu and can not view it
5178 * Restricted logs are not added to recent changes
5179 * Logs should remain non-transcludable
5180 * Format: logtype => permissiontype
5181 */
5182 $wgLogRestrictions = array(
5183 'suppress' => 'suppressionlog'
5184 );
5185
5186 /**
5187 * Show/hide links on Special:Log will be shown for these log types.
5188 *
5189 * This is associative array of log type => boolean "hide by default"
5190 *
5191 * See $wgLogTypes for a list of available log types.
5192 *
5193 * For example:
5194 * $wgFilterLogTypes => array(
5195 * 'move' => true,
5196 * 'import' => false,
5197 * );
5198 *
5199 * Will display show/hide links for the move and import logs. Move logs will be
5200 * hidden by default unless the link is clicked. Import logs will be shown by
5201 * default, and hidden when the link is clicked.
5202 *
5203 * A message of the form log-show-hide-<type> should be added, and will be used
5204 * for the link text.
5205 */
5206 $wgFilterLogTypes = array(
5207 'patrol' => true
5208 );
5209
5210 /**
5211 * Lists the message key string for each log type. The localized messages
5212 * will be listed in the user interface.
5213 *
5214 * Extensions with custom log types may add to this array.
5215 *
5216 * Since 1.19, if you follow the naming convention log-name-TYPE,
5217 * where TYPE is your log type, yoy don't need to use this array.
5218 */
5219 $wgLogNames = array(
5220 '' => 'all-logs-page',
5221 'block' => 'blocklogpage',
5222 'protect' => 'protectlogpage',
5223 'rights' => 'rightslog',
5224 'delete' => 'dellogpage',
5225 'upload' => 'uploadlogpage',
5226 'move' => 'movelogpage',
5227 'import' => 'importlogpage',
5228 'patrol' => 'patrol-log-page',
5229 'merge' => 'mergelog',
5230 'suppress' => 'suppressionlog',
5231 );
5232
5233 /**
5234 * Lists the message key string for descriptive text to be shown at the
5235 * top of each log type.
5236 *
5237 * Extensions with custom log types may add to this array.
5238 *
5239 * Since 1.19, if you follow the naming convention log-description-TYPE,
5240 * where TYPE is your log type, yoy don't need to use this array.
5241 */
5242 $wgLogHeaders = array(
5243 '' => 'alllogstext',
5244 'block' => 'blocklogtext',
5245 'protect' => 'protectlogtext',
5246 'rights' => 'rightslogtext',
5247 'delete' => 'dellogpagetext',
5248 'upload' => 'uploadlogpagetext',
5249 'move' => 'movelogpagetext',
5250 'import' => 'importlogpagetext',
5251 'patrol' => 'patrol-log-header',
5252 'merge' => 'mergelogpagetext',
5253 'suppress' => 'suppressionlogtext',
5254 );
5255
5256 /**
5257 * Lists the message key string for formatting individual events of each
5258 * type and action when listed in the logs.
5259 *
5260 * Extensions with custom log types may add to this array.
5261 */
5262 $wgLogActions = array(
5263 'block/block' => 'blocklogentry',
5264 'block/unblock' => 'unblocklogentry',
5265 'block/reblock' => 'reblock-logentry',
5266 'protect/protect' => 'protectedarticle',
5267 'protect/modify' => 'modifiedarticleprotection',
5268 'protect/unprotect' => 'unprotectedarticle',
5269 'protect/move_prot' => 'movedarticleprotection',
5270 'rights/rights' => 'rightslogentry',
5271 'rights/autopromote' => 'rightslogentry-autopromote',
5272 'upload/upload' => 'uploadedimage',
5273 'upload/overwrite' => 'overwroteimage',
5274 'upload/revert' => 'uploadedimage',
5275 'import/upload' => 'import-logentry-upload',
5276 'import/interwiki' => 'import-logentry-interwiki',
5277 'merge/merge' => 'pagemerge-logentry',
5278 'suppress/block' => 'blocklogentry',
5279 'suppress/reblock' => 'reblock-logentry',
5280 );
5281
5282 /**
5283 * The same as above, but here values are names of functions,
5284 * not messages.
5285 * @see LogPage::actionText
5286 * @see LogFormatter
5287 */
5288 $wgLogActionsHandlers = array(
5289 // move, move_redir
5290 'move/*' => 'MoveLogFormatter',
5291 // delete, restore, revision, event
5292 'delete/*' => 'DeleteLogFormatter',
5293 'suppress/revision' => 'DeleteLogFormatter',
5294 'suppress/event' => 'DeleteLogFormatter',
5295 'suppress/delete' => 'DeleteLogFormatter',
5296 'patrol/patrol' => 'PatrolLogFormatter',
5297 );
5298
5299 /**
5300 * Maintain a log of newusers at Log/newusers?
5301 */
5302 $wgNewUserLog = true;
5303
5304 /** @} */ # end logging }
5305
5306 /*************************************************************************//**
5307 * @name Special pages (general and miscellaneous)
5308 * @{
5309 */
5310
5311 /**
5312 * Allow special page inclusions such as {{Special:Allpages}}
5313 */
5314 $wgAllowSpecialInclusion = true;
5315
5316 /**
5317 * Set this to an array of special page names to prevent
5318 * maintenance/updateSpecialPages.php from updating those pages.
5319 */
5320 $wgDisableQueryPageUpdate = false;
5321
5322 /**
5323 * List of special pages, followed by what subtitle they should go under
5324 * at Special:SpecialPages
5325 */
5326 $wgSpecialPageGroups = array(
5327 'DoubleRedirects' => 'maintenance',
5328 'BrokenRedirects' => 'maintenance',
5329 'Lonelypages' => 'maintenance',
5330 'Uncategorizedpages' => 'maintenance',
5331 'Uncategorizedcategories' => 'maintenance',
5332 'Uncategorizedimages' => 'maintenance',
5333 'Uncategorizedtemplates' => 'maintenance',
5334 'Unusedcategories' => 'maintenance',
5335 'Unusedimages' => 'maintenance',
5336 'Protectedpages' => 'maintenance',
5337 'Protectedtitles' => 'maintenance',
5338 'Unusedtemplates' => 'maintenance',
5339 'Withoutinterwiki' => 'maintenance',
5340 'Longpages' => 'maintenance',
5341 'Shortpages' => 'maintenance',
5342 'Ancientpages' => 'maintenance',
5343 'Deadendpages' => 'maintenance',
5344 'Wantedpages' => 'maintenance',
5345 'Wantedcategories' => 'maintenance',
5346 'Wantedfiles' => 'maintenance',
5347 'Wantedtemplates' => 'maintenance',
5348 'Unwatchedpages' => 'maintenance',
5349 'Fewestrevisions' => 'maintenance',
5350
5351 'Userlogin' => 'login',
5352 'Userlogout' => 'login',
5353 'CreateAccount' => 'login',
5354
5355 'Recentchanges' => 'changes',
5356 'Recentchangeslinked' => 'changes',
5357 'Watchlist' => 'changes',
5358 'Newimages' => 'changes',
5359 'Newpages' => 'changes',
5360 'Log' => 'changes',
5361 'Tags' => 'changes',
5362
5363 'Upload' => 'media',
5364 'Listfiles' => 'media',
5365 'MIMEsearch' => 'media',
5366 'FileDuplicateSearch' => 'media',
5367 'Filepath' => 'media',
5368
5369 'Listusers' => 'users',
5370 'Activeusers' => 'users',
5371 'Listgrouprights' => 'users',
5372 'BlockList' => 'users',
5373 'Contributions' => 'users',
5374 'Emailuser' => 'users',
5375 'Listadmins' => 'users',
5376 'Listbots' => 'users',
5377 'Userrights' => 'users',
5378 'Block' => 'users',
5379 'Unblock' => 'users',
5380 'Preferences' => 'users',
5381 'ChangeEmail' => 'users',
5382 'ChangePassword' => 'users',
5383 'DeletedContributions' => 'users',
5384 'PasswordReset' => 'users',
5385
5386 'Mostlinked' => 'highuse',
5387 'Mostlinkedcategories' => 'highuse',
5388 'Mostlinkedtemplates' => 'highuse',
5389 'Mostcategories' => 'highuse',
5390 'Mostimages' => 'highuse',
5391 'Mostrevisions' => 'highuse',
5392
5393 'Allpages' => 'pages',
5394 'Prefixindex' => 'pages',
5395 'Listredirects' => 'pages',
5396 'Categories' => 'pages',
5397 'Disambiguations' => 'pages',
5398
5399 'Randompage' => 'redirects',
5400 'Randomredirect' => 'redirects',
5401 'Mypage' => 'redirects',
5402 'Mytalk' => 'redirects',
5403 'Mycontributions' => 'redirects',
5404 'Search' => 'redirects',
5405 'LinkSearch' => 'redirects',
5406
5407 'ComparePages' => 'pagetools',
5408 'Movepage' => 'pagetools',
5409 'MergeHistory' => 'pagetools',
5410 'Revisiondelete' => 'pagetools',
5411 'Undelete' => 'pagetools',
5412 'Export' => 'pagetools',
5413 'Import' => 'pagetools',
5414 'Whatlinkshere' => 'pagetools',
5415
5416 'Statistics' => 'wiki',
5417 'Version' => 'wiki',
5418 'Lockdb' => 'wiki',
5419 'Unlockdb' => 'wiki',
5420 'Allmessages' => 'wiki',
5421 'Popularpages' => 'wiki',
5422
5423 'Specialpages' => 'other',
5424 'Blockme' => 'other',
5425 'Booksources' => 'other',
5426 'JavaScriptTest' => 'other',
5427 );
5428
5429 /** Whether or not to sort special pages in Special:Specialpages */
5430
5431 $wgSortSpecialPages = true;
5432
5433 /**
5434 * On Special:Unusedimages, consider images "used", if they are put
5435 * into a category. Default (false) is not to count those as used.
5436 */
5437 $wgCountCategorizedImagesAsUsed = false;
5438
5439 /**
5440 * Maximum number of links to a redirect page listed on
5441 * Special:Whatlinkshere/RedirectDestination
5442 */
5443 $wgMaxRedirectLinksRetrieved = 500;
5444
5445 /** @} */ # end special pages }
5446
5447 /*************************************************************************//**
5448 * @name Actions
5449 * @{
5450 */
5451
5452 /**
5453 * Array of allowed values for the title=foo&action=<action> parameter. Syntax is:
5454 * 'foo' => 'ClassName' Load the specified class which subclasses Action
5455 * 'foo' => true Load the class FooAction which subclasses Action
5456 * If something is specified in the getActionOverrides()
5457 * of the relevant Page object it will be used
5458 * instead of the default class.
5459 * 'foo' => false The action is disabled; show an error message
5460 * Unsetting core actions will probably cause things to complain loudly.
5461 */
5462 $wgActions = array(
5463 'credits' => true,
5464 'delete' => true,
5465 'edit' => true,
5466 'history' => true,
5467 'info' => true,
5468 'markpatrolled' => true,
5469 'protect' => true,
5470 'purge' => true,
5471 'raw' => true,
5472 'render' => true,
5473 'revert' => true,
5474 'revisiondelete' => true,
5475 'rollback' => true,
5476 'submit' => true,
5477 'unprotect' => true,
5478 'unwatch' => true,
5479 'view' => true,
5480 'watch' => true,
5481 );
5482
5483 /**
5484 * Array of disabled article actions, e.g. view, edit, delete, etc.
5485 * @deprecated since 1.18; just set $wgActions['action'] = false instead
5486 */
5487 $wgDisabledActions = array();
5488
5489 /**
5490 * Allow the "info" action, very inefficient at the moment
5491 */
5492 $wgAllowPageInfo = false;
5493
5494 /** @} */ # end actions }
5495
5496 /*************************************************************************//**
5497 * @name Robot (search engine crawler) policy
5498 * See also $wgNoFollowLinks.
5499 * @{
5500 */
5501
5502 /**
5503 * Default robot policy. The default policy is to encourage indexing and fol-
5504 * lowing of links. It may be overridden on a per-namespace and/or per-page
5505 * basis.
5506 */
5507 $wgDefaultRobotPolicy = 'index,follow';
5508
5509 /**
5510 * Robot policies per namespaces. The default policy is given above, the array
5511 * is made of namespace constants as defined in includes/Defines.php. You can-
5512 * not specify a different default policy for NS_SPECIAL: it is always noindex,
5513 * nofollow. This is because a number of special pages (e.g., ListPages) have
5514 * many permutations of options that display the same data under redundant
5515 * URLs, so search engine spiders risk getting lost in a maze of twisty special
5516 * pages, all alike, and never reaching your actual content.
5517 *
5518 * Example:
5519 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
5520 */
5521 $wgNamespaceRobotPolicies = array();
5522
5523 /**
5524 * Robot policies per article. These override the per-namespace robot policies.
5525 * Must be in the form of an array where the key part is a properly canonical-
5526 * ised text form title and the value is a robot policy.
5527 * Example:
5528 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex,follow',
5529 * 'User:Bob' => 'index,follow' );
5530 * Example that DOES NOT WORK because the names are not canonical text forms:
5531 * $wgArticleRobotPolicies = array(
5532 * # Underscore, not space!
5533 * 'Main_Page' => 'noindex,follow',
5534 * # "Project", not the actual project name!
5535 * 'Project:X' => 'index,follow',
5536 * # Needs to be "Abc", not "abc" (unless $wgCapitalLinks is false for that namespace)!
5537 * 'abc' => 'noindex,nofollow'
5538 * );
5539 */
5540 $wgArticleRobotPolicies = array();
5541
5542 /**
5543 * An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words
5544 * will not function, so users can't decide whether pages in that namespace are
5545 * indexed by search engines. If set to null, default to $wgContentNamespaces.
5546 * Example:
5547 * $wgExemptFromUserRobotsControl = array( NS_MAIN, NS_TALK, NS_PROJECT );
5548 */
5549 $wgExemptFromUserRobotsControl = null;
5550
5551 /** @} */ # End robot policy }
5552
5553 /************************************************************************//**
5554 * @name AJAX and API
5555 * Note: The AJAX entry point which this section refers to is gradually being
5556 * replaced by the API entry point, api.php. They are essentially equivalent.
5557 * Both of them are used for dynamic client-side features, via XHR.
5558 * @{
5559 */
5560
5561 /**
5562 * Enable the MediaWiki API for convenient access to
5563 * machine-readable data via api.php
5564 *
5565 * See http://www.mediawiki.org/wiki/API
5566 */
5567 $wgEnableAPI = true;
5568
5569 /**
5570 * Allow the API to be used to perform write operations
5571 * (page edits, rollback, etc.) when an authorised user
5572 * accesses it
5573 */
5574 $wgEnableWriteAPI = true;
5575
5576 /**
5577 * API module extensions
5578 * Associative array mapping module name to class name.
5579 * Extension modules may override the core modules.
5580 */
5581 $wgAPIModules = array();
5582 $wgAPIMetaModules = array();
5583 $wgAPIPropModules = array();
5584 $wgAPIListModules = array();
5585
5586 /**
5587 * Maximum amount of rows to scan in a DB query in the API
5588 * The default value is generally fine
5589 */
5590 $wgAPIMaxDBRows = 5000;
5591
5592 /**
5593 * The maximum size (in bytes) of an API result.
5594 * Don't set this lower than $wgMaxArticleSize*1024
5595 */
5596 $wgAPIMaxResultSize = 8388608;
5597
5598 /**
5599 * The maximum number of uncached diffs that can be retrieved in one API
5600 * request. Set this to 0 to disable API diffs altogether
5601 */
5602 $wgAPIMaxUncachedDiffs = 1;
5603
5604 /**
5605 * Log file or URL (TCP or UDP) to log API requests to, or false to disable
5606 * API request logging
5607 */
5608 $wgAPIRequestLog = false;
5609
5610 /**
5611 * Set the timeout for the API help text cache. If set to 0, caching disabled
5612 */
5613 $wgAPICacheHelpTimeout = 60*60;
5614
5615 /**
5616 * Enable AJAX framework
5617 */
5618 $wgUseAjax = true;
5619
5620 /**
5621 * List of Ajax-callable functions.
5622 * Extensions acting as Ajax callbacks must register here
5623 */
5624 $wgAjaxExportList = array();
5625
5626 /**
5627 * Enable watching/unwatching pages using AJAX.
5628 * Requires $wgUseAjax to be true too.
5629 */
5630 $wgAjaxWatch = true;
5631
5632 /**
5633 * Enable AJAX check for file overwrite, pre-upload
5634 */
5635 $wgAjaxUploadDestCheck = true;
5636
5637 /**
5638 * Enable previewing licences via AJAX. Also requires $wgEnableAPI to be true.
5639 */
5640 $wgAjaxLicensePreview = true;
5641
5642 /**
5643 * Settings for incoming cross-site AJAX requests:
5644 * Newer browsers support cross-site AJAX when the target resource allows requests
5645 * from the origin domain by the Access-Control-Allow-Origin header.
5646 * This is currently only used by the API (requests to api.php)
5647 * $wgCrossSiteAJAXdomains can be set using a wildcard syntax:
5648 *
5649 * '*' matches any number of characters
5650 * '?' matches any 1 character
5651 *
5652 * Example:
5653 $wgCrossSiteAJAXdomains = array(
5654 'www.mediawiki.org',
5655 '*.wikipedia.org',
5656 '*.wikimedia.org',
5657 '*.wiktionary.org',
5658 );
5659 *
5660 */
5661 $wgCrossSiteAJAXdomains = array();
5662
5663 /**
5664 * Domains that should not be allowed to make AJAX requests,
5665 * even if they match one of the domains allowed by $wgCrossSiteAJAXdomains
5666 * Uses the same syntax as $wgCrossSiteAJAXdomains
5667 */
5668
5669 $wgCrossSiteAJAXdomainExceptions = array();
5670
5671 /** @} */ # End AJAX and API }
5672
5673 /************************************************************************//**
5674 * @name Shell and process control
5675 * @{
5676 */
5677
5678 /**
5679 * Maximum amount of virtual memory available to shell processes under linux, in KB.
5680 */
5681 $wgMaxShellMemory = 102400;
5682
5683 /**
5684 * Maximum file size created by shell processes under linux, in KB
5685 * ImageMagick convert for example can be fairly hungry for scratch space
5686 */
5687 $wgMaxShellFileSize = 102400;
5688
5689 /**
5690 * Maximum CPU time in seconds for shell processes under linux
5691 */
5692 $wgMaxShellTime = 180;
5693
5694 /**
5695 * Executable path of the PHP cli binary (php/php5). Should be set up on install.
5696 */
5697 $wgPhpCli = '/usr/bin/php';
5698
5699 /**
5700 * Locale for LC_CTYPE, to work around http://bugs.php.net/bug.php?id=45132
5701 * For Unix-like operating systems, set this to to a locale that has a UTF-8
5702 * character set. Only the character set is relevant.
5703 */
5704 $wgShellLocale = 'en_US.utf8';
5705
5706 /** @} */ # End shell }
5707
5708 /************************************************************************//**
5709 * @name HTTP client
5710 * @{
5711 */
5712
5713 /**
5714 * Timeout for HTTP requests done internally
5715 */
5716 $wgHTTPTimeout = 25;
5717
5718 /**
5719 * Timeout for Asynchronous (background) HTTP requests
5720 */
5721 $wgAsyncHTTPTimeout = 25;
5722
5723 /**
5724 * Proxy to use for CURL requests.
5725 */
5726 $wgHTTPProxy = false;
5727
5728 /** @} */ # End HTTP client }
5729
5730 /************************************************************************//**
5731 * @name Job queue
5732 * See also $wgEnotifUseJobQ.
5733 * @{
5734 */
5735
5736 /**
5737 * Number of jobs to perform per request. May be less than one in which case
5738 * jobs are performed probabalistically. If this is zero, jobs will not be done
5739 * during ordinary apache requests. In this case, maintenance/runJobs.php should
5740 * be run periodically.
5741 */
5742 $wgJobRunRate = 1;
5743
5744 /**
5745 * Number of rows to update per job
5746 */
5747 $wgUpdateRowsPerJob = 500;
5748
5749 /**
5750 * Number of rows to update per query
5751 */
5752 $wgUpdateRowsPerQuery = 100;
5753
5754 /** @} */ # End job queue }
5755
5756 /************************************************************************//**
5757 * @name HipHop compilation
5758 * @{
5759 */
5760
5761 /**
5762 * The build directory for HipHop compilation.
5763 * Defaults to $IP/maintenance/hiphop/build.
5764 */
5765 $wgHipHopBuildDirectory = false;
5766
5767 /**
5768 * The HipHop build type. Can be either "Debug" or "Release".
5769 */
5770 $wgHipHopBuildType = 'Debug';
5771
5772 /**
5773 * Number of parallel processes to use during HipHop compilation, or "detect"
5774 * to guess from system properties.
5775 */
5776 $wgHipHopCompilerProcs = 'detect';
5777
5778 /**
5779 * Filesystem extensions directory. Defaults to $IP/../extensions.
5780 *
5781 * To compile extensions with HipHop, set $wgExtensionsDirectory correctly,
5782 * and use code like:
5783 *
5784 * require( MWInit::extensionSetupPath( 'Extension/Extension.php' ) );
5785 *
5786 * to include the extension setup file from LocalSettings.php. It is not
5787 * necessary to set this variable unless you use MWInit::extensionSetupPath().
5788 */
5789 $wgExtensionsDirectory = false;
5790
5791 /**
5792 * A list of files that should be compiled into a HipHop build, in addition to
5793 * those listed in $wgAutoloadClasses. Add to this array in an extension setup
5794 * file in order to add files to the build.
5795 *
5796 * The files listed here must either be either absolute paths under $IP or
5797 * under $wgExtensionsDirectory, or paths relative to the virtual source root
5798 * "$IP/..", i.e. starting with "phase3" for core files, and "extensions" for
5799 * extension files.
5800 */
5801 $wgCompiledFiles = array();
5802
5803 /** @} */ # End of HipHop compilation }
5804
5805
5806 /************************************************************************//**
5807 * @name Mobile support
5808 * @{
5809 */
5810
5811 /**
5812 * Name of the class used for mobile device detection, must be inherited from
5813 * IDeviceDetector.
5814 */
5815 $wgDeviceDetectionClass = 'DeviceDetection';
5816
5817 /** @} */ # End of Mobile support }
5818
5819 /************************************************************************//**
5820 * @name Miscellaneous
5821 * @{
5822 */
5823
5824 /** Name of the external diff engine to use */
5825 $wgExternalDiffEngine = false;
5826
5827 /**
5828 * Disable redirects to special pages and interwiki redirects, which use a 302
5829 * and have no "redirected from" link. Note this is only for articles with #Redirect
5830 * in them. URL's containing a local interwiki prefix (or a non-canonical special
5831 * page name) are still hard redirected regardless of this setting.
5832 */
5833 $wgDisableHardRedirects = false;
5834
5835 /**
5836 * LinkHolderArray batch size
5837 * For debugging
5838 */
5839 $wgLinkHolderBatchSize = 1000;
5840
5841 /**
5842 * By default MediaWiki does not register links pointing to same server in externallinks dataset,
5843 * use this value to override:
5844 */
5845 $wgRegisterInternalExternals = false;
5846
5847 /**
5848 * Maximum number of pages to move at once when moving subpages with a page.
5849 */
5850 $wgMaximumMovedPages = 100;
5851
5852 /**
5853 * Fix double redirects after a page move.
5854 * Tends to conflict with page move vandalism, use only on a private wiki.
5855 */
5856 $wgFixDoubleRedirects = false;
5857
5858 /**
5859 * Allow redirection to another page when a user logs in.
5860 * To enable, set to a string like 'Main Page'
5861 */
5862 $wgRedirectOnLogin = null;
5863
5864 /**
5865 * Configuration for processing pool control, for use in high-traffic wikis.
5866 * An implementation is provided in the PoolCounter extension.
5867 *
5868 * This configuration array maps pool types to an associative array. The only
5869 * defined key in the associative array is "class", which gives the class name.
5870 * The remaining elements are passed through to the class as constructor
5871 * parameters. Example:
5872 *
5873 * $wgPoolCounterConf = array( 'ArticleView' => array(
5874 * 'class' => 'PoolCounter_Client',
5875 * 'timeout' => 15, // wait timeout in seconds
5876 * 'workers' => 5, // maximum number of active threads in each pool
5877 * 'maxqueue' => 50, // maximum number of total threads in each pool
5878 * ... any extension-specific options...
5879 * );
5880 */
5881 $wgPoolCounterConf = null;
5882
5883 /**
5884 * To disable file delete/restore temporarily
5885 */
5886 $wgUploadMaintenance = false;
5887
5888 /**
5889 * Allows running of selenium tests via maintenance/tests/RunSeleniumTests.php
5890 */
5891 $wgEnableSelenium = false;
5892 $wgSeleniumTestConfigs = array();
5893 $wgSeleniumConfigFile = null;
5894 $wgDBtestuser = ''; //db user that has permission to create and drop the test databases only
5895 $wgDBtestpassword = '';
5896
5897 /**
5898 * Associative array mapping namespace IDs to the name of the content model pages in that namespace should have by
5899 * default (use the CONTENT_MODEL_XXX constants). If no special content type is defined for a given namespace,
5900 * pages in that namespace will use the CONTENT_MODEL_WIKITEXT (except for the special case of JS and CS pages).
5901 */
5902 $wgNamespaceContentModels = array();
5903
5904 /**
5905 * How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText():
5906 *
5907 * * 'ignore': return null
5908 * * 'fail': throw an MWException
5909 * * 'serializeContent': serializeContent to default format
5910 */
5911 $wgContentHandlerTextFallback = 'ignore';
5912
5913 /**
5914 * Compatibility switch for running ContentHandler code withoput a schema update.
5915 * Set to false to disable use of the database fields introduced by the ContentHandler facility.
5916 *
5917 * @deprecated this is only here to allow code deployment without a database schema update on large sites.
5918 * get rid of it in the next version.
5919 */
5920 $wgContentHandlerUseDB = true;
5921
5922 /**
5923 * For really cool vim folding this needs to be at the end:
5924 * vim: foldmarker=@{,@} foldmethod=marker
5925 * @}
5926 */