(bug 35060) more allowed params to Special:MyPage, Special:MyTalk
[mediawiki.git] / includes / DefaultSettings.php
blob690d39ee29a2352124fef54ab8d5712f7dae2d97
1 <?php
2 /**
3 * Default values for MediaWiki configuration settings.
6 * NEVER EDIT THIS FILE
9 * To customize your installation, edit "LocalSettings.php". If you make
10 * changes here, they will be lost on next upgrade of MediaWiki!
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.
17 * Documentation is in the source and on:
18 * http://www.mediawiki.org/wiki/Manual:Configuration_settings
20 * @warning Note: this (and other things) will break if the autoloader is not
21 * enabled. Please include includes/AutoLoader.php before including this file.
23 * This program is free software; you can redistribute it and/or modify
24 * it under the terms of the GNU General Public License as published by
25 * the Free Software Foundation; either version 2 of the License, or
26 * (at your option) any later version.
28 * This program is distributed in the hope that it will be useful,
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 * GNU General Public License for more details.
33 * You should have received a copy of the GNU General Public License along
34 * with this program; if not, write to the Free Software Foundation, Inc.,
35 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36 * http://www.gnu.org/copyleft/gpl.html
38 * @file
41 /**
42 * @defgroup Globalsettings Global settings
45 /**
46 * @cond file_level_code
47 * This is not a valid entry point, perform no further processing unless
48 * MEDIAWIKI is defined
50 if( !defined( 'MEDIAWIKI' ) ) {
51 echo "This file is part of MediaWiki and is not a valid entry point\n";
52 die( 1 );
55 /**
56 * wgConf hold the site configuration.
57 * Not used for much in a default install.
59 $wgConf = new SiteConfiguration;
61 /** MediaWiki version number */
62 $wgVersion = '1.20alpha';
64 /** Name of the site. It must be changed in LocalSettings.php */
65 $wgSitename = 'MediaWiki';
67 /**
68 * URL of the server.
70 * @par Example:
71 * @code
72 * $wgServer = 'http://example.com';
73 * @endcode
75 * This is usually detected correctly by MediaWiki. If MediaWiki detects the
76 * wrong server, it will redirect incorrectly after you save a page. In that
77 * case, set this variable to fix it.
79 * If you want to use protocol-relative URLs on your wiki, set this to a
80 * protocol-relative URL like '//example.com' and set $wgCanonicalServer
81 * to a fully qualified URL.
83 $wgServer = WebRequest::detectServer();
85 /**
86 * Canonical URL of the server, to use in IRC feeds and notification e-mails.
87 * Must be fully qualified, even if $wgServer is protocol-relative.
89 * Defaults to $wgServer, expanded to a fully qualified http:// URL if needed.
91 $wgCanonicalServer = false;
93 /************************************************************************//**
94 * @name Script path settings
95 * @{
98 /**
99 * The path we should point to.
100 * It might be a virtual path in case with use apache mod_rewrite for example.
102 * This *needs* to be set correctly.
104 * Other paths will be set to defaults based on it unless they are directly
105 * set in LocalSettings.php
107 $wgScriptPath = '/wiki';
110 * Whether to support URLs like index.php/Page_title These often break when PHP
111 * is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set,
112 * but then again it may not; lighttpd converts incoming path data to lowercase
113 * on systems with case-insensitive filesystems, and there have been reports of
114 * problems on Apache as well.
116 * To be safe we'll continue to keep it off by default.
118 * Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly
119 * incorrect garbage, or to true if it is really correct.
121 * The default $wgArticlePath will be set based on this value at runtime, but if
122 * you have customized it, having this incorrectly set to true can cause
123 * redirect loops when "pretty URLs" are used.
125 $wgUsePathInfo =
126 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
127 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
128 ( strpos( php_sapi_name(), 'isapi' ) === false );
131 * The extension to append to script names by default. This can either be .php
132 * or .php5.
134 * Some hosting providers use PHP 4 for *.php files, and PHP 5 for *.php5. This
135 * variable is provided to support those providers.
137 $wgScriptExtension = '.php';
140 /**@}*/
142 /************************************************************************//**
143 * @name URLs and file paths
145 * These various web and file path variables are set to their defaults
146 * in Setup.php if they are not explicitly set from LocalSettings.php.
148 * These will relatively rarely need to be set manually, unless you are
149 * splitting style sheets or images outside the main document root.
151 * In this section, a "path" is usually a host-relative URL, i.e. a URL without
152 * the host part, that starts with a slash. In most cases a full URL is also
153 * acceptable. A "directory" is a local file path.
155 * In both paths and directories, trailing slashes should not be included.
157 * @{
161 * The URL path to index.php.
163 * Defaults to "{$wgScriptPath}/index{$wgScriptExtension}".
165 $wgScript = false;
168 * The URL path to redirect.php. This is a script that is used by the Nostalgia
169 * skin.
171 * Defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}".
173 $wgRedirectScript = false;
176 * The URL path to load.php.
178 * Defaults to "{$wgScriptPath}/load{$wgScriptExtension}".
180 $wgLoadScript = false;
183 * The URL path of the skins directory.
184 * Defaults to "{$wgScriptPath}/skins".
186 $wgStylePath = false;
187 $wgStyleSheetPath = &$wgStylePath;
190 * The URL path of the skins directory. Should not point to an external domain.
191 * Defaults to "{$wgScriptPath}/skins".
193 $wgLocalStylePath = false;
196 * The URL path of the extensions directory.
197 * Defaults to "{$wgScriptPath}/extensions".
198 * @since 1.16
200 $wgExtensionAssetsPath = false;
203 * Filesystem stylesheets directory.
204 * Defaults to "{$IP}/skins".
206 $wgStyleDirectory = false;
209 * The URL path for primary article page views. This path should contain $1,
210 * which is replaced by the article title.
212 * Defaults to "{$wgScript}/$1" or "{$wgScript}?title=$1",
213 * depending on $wgUsePathInfo.
215 $wgArticlePath = false;
218 * The URL path for the images directory.
219 * Defaults to "{$wgScriptPath}/images".
221 $wgUploadPath = false;
224 * The filesystem path of the images directory. Defaults to "{$IP}/images".
226 $wgUploadDirectory = false;
229 * Directory where the cached page will be saved.
230 * Defaults to "{$wgUploadDirectory}/cache".
232 $wgFileCacheDirectory = false;
235 * The URL path of the wiki logo. The logo size should be 135x135 pixels.
236 * Defaults to "{$wgStylePath}/common/images/wiki.png".
238 $wgLogo = false;
241 * The URL path of the shortcut icon.
243 $wgFavicon = '/favicon.ico';
246 * The URL path of the icon for iPhone and iPod Touch web app bookmarks.
247 * Defaults to no icon.
249 $wgAppleTouchIcon = false;
252 * The local filesystem path to a temporary directory. This is not required to
253 * be web accessible.
255 * When this setting is set to false, its value will be set through a call
256 * to wfTempDir(). See that methods implementation for the actual detection
257 * logic.
259 * Developers should use the global function wfTempDir() instead of this
260 * variable.
262 * @see wfTempDir()
263 * @note Default changed to false in MediaWiki 1.20.
266 $wgTmpDirectory = false;
269 * If set, this URL is added to the start of $wgUploadPath to form a complete
270 * upload URL.
272 $wgUploadBaseUrl = '';
275 * To enable remote on-demand scaling, set this to the thumbnail base URL.
276 * Full thumbnail URL will be like $wgUploadStashScalerBaseUrl/e/e6/Foo.jpg/123px-Foo.jpg
277 * where 'e6' are the first two characters of the MD5 hash of the file name.
278 * If $wgUploadStashScalerBaseUrl is set to false, thumbs are rendered locally as needed.
280 $wgUploadStashScalerBaseUrl = false;
283 * To set 'pretty' URL paths for actions other than
284 * plain page views, add to this array.
286 * @par Example:
287 * Set pretty URL for the edit action:
288 * @code
289 * 'edit' => "$wgScriptPath/edit/$1"
290 * @endcode
292 * There must be an appropriate script or rewrite rule in place to handle these
293 * URLs.
295 $wgActionPaths = array();
297 /**@}*/
299 /************************************************************************//**
300 * @name Files and file uploads
301 * @{
304 /** Uploads have to be specially set up to be secure */
305 $wgEnableUploads = false;
308 * The maximum age of temporary (incomplete) uploaded files
310 $wgUploadStashMaxAge = 6 * 3600; // 6 hours
312 /** Allows to move images and other media files */
313 $wgAllowImageMoving = true;
316 * These are additional characters that should be replaced with '-' in filenames
318 $wgIllegalFileChars = ":";
321 * @deprecated since 1.17 use $wgDeletedDirectory
323 $wgFileStore = array();
326 * What directory to place deleted uploads in.
327 * Defaults to "{$wgUploadDirectory}/deleted".
329 $wgDeletedDirectory = false;
332 * Set this to true if you use img_auth and want the user to see details on why access failed.
334 $wgImgAuthDetails = false;
337 * If this is enabled, img_auth.php will not allow image access unless the wiki
338 * is private. This improves security when image uploads are hosted on a
339 * separate domain.
341 $wgImgAuthPublicTest = true;
344 * File repository structures
346 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepos is
347 * an array of such structures. Each repository structure is an associative
348 * array of properties configuring the repository.
350 * Properties required for all repos:
351 * - class The class name for the repository. May come from the core or an extension.
352 * The core repository classes are FileRepo, LocalRepo, ForeignDBRepo.
353 * FSRepo is also supported for backwards compatibility.
355 * - name A unique name for the repository (but $wgLocalFileRepo should be 'local').
356 * The name should consist of alpha-numberic characters.
357 * - backend A file backend name (see $wgFileBackends).
359 * For most core repos:
360 * - zones Associative array of zone names that each map to an array with:
361 * container : backend container name the zone is in
362 * directory : root path within container for the zone
363 * url : base URL to the root of the zone
364 * Zones default to using "<repo name>-<zone name>" as the container name
365 * and default to using the container root as the zone's root directory.
366 * Nesting of zone locations within other zones should be avoided.
367 * - url Public zone URL. The 'zones' settings take precedence.
368 * - hashLevels The number of directory levels for hash-based division of files
369 * - thumbScriptUrl The URL for thumb.php (optional, not recommended)
370 * - transformVia404 Whether to skip media file transformation on parse and rely on a 404
371 * handler instead.
372 * - initialCapital Equivalent to $wgCapitalLinks (or $wgCapitalLinkOverrides[NS_FILE],
373 * determines whether filenames implicitly start with a capital letter.
374 * The current implementation may give incorrect description page links
375 * when the local $wgCapitalLinks and initialCapital are mismatched.
376 * - pathDisclosureProtection
377 * May be 'paranoid' to remove all parameters from error messages, 'none' to
378 * leave the paths in unchanged, or 'simple' to replace paths with
379 * placeholders. Default for LocalRepo is 'simple'.
380 * - fileMode This allows wikis to set the file mode when uploading/moving files. Default
381 * is 0644.
382 * - directory The local filesystem directory where public files are stored. Not used for
383 * some remote repos.
384 * - thumbDir The base thumbnail directory. Defaults to "<directory>/thumb".
385 * - thumbUrl The base thumbnail URL. Defaults to "<url>/thumb".
388 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
389 * for local repositories:
390 * - descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/File:
391 * - scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
392 * http://en.wikipedia.org/w
393 * - scriptExtension Script extension of the MediaWiki installation, equivalent to
394 * $wgScriptExtension, e.g. .php5 defaults to .php
396 * - articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
397 * - fetchDescription Fetch the text of the remote file description page. Equivalent to
398 * $wgFetchCommonsDescriptions.
400 * ForeignDBRepo:
401 * - dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
402 * equivalent to the corresponding member of $wgDBservers
403 * - tablePrefix Table prefix, the foreign wiki's $wgDBprefix
404 * - hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
406 * ForeignAPIRepo:
407 * - apibase Use for the foreign API's URL
408 * - apiThumbCacheExpiry How long to locally cache thumbs for
410 * If you leave $wgLocalFileRepo set to false, Setup will fill in appropriate values.
411 * Otherwise, set $wgLocalFileRepo to a repository structure as described above.
412 * If you set $wgUseInstantCommons to true, it will add an entry for Commons.
413 * If you set $wgForeignFileRepos to an array of repostory structures, those will
414 * be searched after the local file repo.
415 * Otherwise, you will only have access to local media files.
417 * @see Setup.php for an example usage and default initialization.
419 $wgLocalFileRepo = false;
421 /** @see $wgLocalFileRepo */
422 $wgForeignFileRepos = array();
425 * Use Commons as a remote file repository. Essentially a wrapper, when this
426 * is enabled $wgForeignFileRepos will point at Commons with a set of default
427 * settings
429 $wgUseInstantCommons = false;
432 * File backend structure configuration.
433 * This is an array of file backend configuration arrays.
434 * Each backend configuration has the following parameters:
435 * - 'name' : A unique name for the backend
436 * - 'class' : The file backend class to use
437 * - 'wikiId' : A unique string that identifies the wiki (container prefix)
438 * - 'lockManager' : The name of a lock manager (see $wgLockManagers)
440 * Additional parameters are specific to the class used.
442 $wgFileBackends = array();
445 * Array of configuration arrays for each lock manager.
446 * Each backend configuration has the following parameters:
447 * - 'name' : A unique name for the lock manager
448 * - 'class' : The lock manger class to use
449 * Additional parameters are specific to the class used.
451 $wgLockManagers = array();
454 * Show EXIF data, on by default if available.
455 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
457 * @note FOR WINDOWS USERS:
458 * To enable EXIF functions, add the following lines to the "Windows
459 * extensions" section of php.ini:
460 * @code{.ini}
461 * extension=extensions/php_mbstring.dll
462 * extension=extensions/php_exif.dll
463 * @endcode
465 $wgShowEXIF = function_exists( 'exif_read_data' );
468 * If to automatically update the img_metadata field
469 * if the metadata field is outdated but compatible with the current version.
470 * Defaults to false.
472 $wgUpdateCompatibleMetadata = false;
475 * If you operate multiple wikis, you can define a shared upload path here.
476 * Uploads to this wiki will NOT be put there - they will be put into
477 * $wgUploadDirectory.
478 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
479 * no file of the given name is found in the local repository (for [[File:..]],
480 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
481 * directory.
483 * Note that these configuration settings can now be defined on a per-
484 * repository basis for an arbitrary number of file repositories, using the
485 * $wgForeignFileRepos variable.
487 $wgUseSharedUploads = false;
489 /** Full path on the web server where shared uploads can be found */
490 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
492 /** Fetch commons image description pages and display them on the local wiki? */
493 $wgFetchCommonsDescriptions = false;
495 /** Path on the file system where shared uploads can be found. */
496 $wgSharedUploadDirectory = "/var/www/wiki3/images";
498 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
499 $wgSharedUploadDBname = false;
501 /** Optional table prefix used in database. */
502 $wgSharedUploadDBprefix = '';
504 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
505 $wgCacheSharedUploads = true;
508 * Allow for upload to be copied from an URL. Requires Special:Upload?source=web
509 * The timeout for copy uploads is set by $wgHTTPTimeout.
510 * You have to assign the user right 'upload_by_url' to a user group, to use this.
512 $wgAllowCopyUploads = false;
515 * Allow asynchronous copy uploads.
516 * This feature is experimental and broken as of r81612.
518 $wgAllowAsyncCopyUploads = false;
521 * A list of domains copy uploads can come from
523 $wgCopyUploadsDomains = array();
526 * Max size for uploads, in bytes. If not set to an array, applies to all
527 * uploads. If set to an array, per upload type maximums can be set, using the
528 * file and url keys. If the * key is set this value will be used as maximum
529 * for non-specified types.
531 * @par Example:
532 * @code
533 * $wgMaxUploadSize = array(
534 * '*' => 250 * 1024,
535 * 'url' => 500 * 1024,
536 * );
537 * @endcode
538 * Sets the maximum for all uploads to 250 kB except for upload-by-url, which
539 * will have a maximum of 500 kB.
542 $wgMaxUploadSize = 1024*1024*100; # 100MB
545 * Point the upload navigation link to an external URL
546 * Useful if you want to use a shared repository by default
547 * without disabling local uploads (use $wgEnableUploads = false for that).
549 * @par Example:
550 * @code
551 * $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
552 * @endcode
554 $wgUploadNavigationUrl = false;
557 * Point the upload link for missing files to an external URL, as with
558 * $wgUploadNavigationUrl. The URL will get "(?|&)wpDestFile=<filename>"
559 * appended to it as appropriate.
561 $wgUploadMissingFileUrl = false;
564 * Give a path here to use thumb.php for thumbnail generation on client
565 * request, instead of generating them on render and outputting a static URL.
566 * This is necessary if some of your apache servers don't have read/write
567 * access to the thumbnail path.
569 * @par Example:
570 * @code
571 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
572 * @endcode
574 $wgThumbnailScriptPath = false;
576 * @see $wgThumbnailScriptPath
578 $wgSharedThumbnailScriptPath = false;
581 * Set this to false if you do not want MediaWiki to divide your images
582 * directory into many subdirectories, for improved performance.
584 * It's almost always good to leave this enabled. In previous versions of
585 * MediaWiki, some users set this to false to allow images to be added to the
586 * wiki by simply copying them into $wgUploadDirectory and then running
587 * maintenance/rebuildImages.php to register them in the database. This is no
588 * longer recommended, use maintenance/importImages.php instead.
590 * @note That this variable may be ignored if $wgLocalFileRepo is set.
591 * @todo Deprecate the setting and ultimately remove it from Core.
593 $wgHashedUploadDirectory = true;
596 * Set the following to false especially if you have a set of files that need to
597 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
598 * directory layout.
600 $wgHashedSharedUploadDirectory = true;
603 * Base URL for a repository wiki. Leave this blank if uploads are just stored
604 * in a shared directory and not meant to be accessible through a separate wiki.
605 * Otherwise the image description pages on the local wiki will link to the
606 * image description page on this wiki.
608 * Please specify the namespace, as in the example below.
610 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:";
613 * This is the list of preferred extensions for uploading files. Uploading files
614 * with extensions not in this list will trigger a warning.
616 * @warning If you add any OpenOffice or Microsoft Office file formats here,
617 * such as odt or doc, and untrusted users are allowed to upload files, then
618 * your wiki will be vulnerable to cross-site request forgery (CSRF).
620 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
623 * Files with these extensions will never be allowed as uploads.
624 * An array of file extensions to blacklist. You should append to this array
625 * if you want to blacklist additional files.
626 * */
627 $wgFileBlacklist = array(
628 # HTML may contain cookie-stealing JavaScript and web bugs
629 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
630 # PHP scripts may execute arbitrary code on the server
631 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
632 # Other types that may be interpreted by some servers
633 'shtml', 'jhtml', 'pl', 'py', 'cgi',
634 # May contain harmful executables for Windows victims
635 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
638 * Files with these mime types will never be allowed as uploads
639 * if $wgVerifyMimeType is enabled.
641 $wgMimeTypeBlacklist = array(
642 # HTML may contain cookie-stealing JavaScript and web bugs
643 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
644 # PHP scripts may execute arbitrary code on the server
645 'application/x-php', 'text/x-php',
646 # Other types that may be interpreted by some servers
647 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
648 # Client-side hazards on Internet Explorer
649 'text/scriptlet', 'application/x-msdownload',
650 # Windows metafile, client-side vulnerability on some systems
651 'application/x-msmetafile',
655 * Allow Java archive uploads.
656 * This is not recommended for public wikis since a maliciously-constructed
657 * applet running on the same domain as the wiki can steal the user's cookies.
659 $wgAllowJavaUploads = false;
662 * This is a flag to determine whether or not to check file extensions on upload.
664 * @warning Setting this to false is insecure for public wikis.
666 $wgCheckFileExtensions = true;
669 * If this is turned off, users may override the warning for files not covered
670 * by $wgFileExtensions.
672 * @warning Setting this to false is insecure for public wikis.
674 $wgStrictFileExtensions = true;
677 * Setting this to true will disable the upload system's checks for HTML/JavaScript.
679 * @warning THIS IS VERY DANGEROUS on a publicly editable site, so USE
680 * $wgGroupPermissions TO RESTRICT UPLOADING to only those that you trust
682 $wgDisableUploadScriptChecks = false;
685 * Warn if uploaded files are larger than this (in bytes), or false to disable
687 $wgUploadSizeWarning = false;
690 * list of trusted media-types and mime types.
691 * Use the MEDIATYPE_xxx constants to represent media types.
692 * This list is used by File::isSafeFile
694 * Types not listed here will have a warning about unsafe content
695 * displayed on the images description page. It would also be possible
696 * to use this for further restrictions, like disabling direct
697 * [[media:...]] links for non-trusted formats.
699 $wgTrustedMediaFormats = array(
700 MEDIATYPE_BITMAP, //all bitmap formats
701 MEDIATYPE_AUDIO, //all audio formats
702 MEDIATYPE_VIDEO, //all plain video formats
703 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
704 "application/pdf", //PDF files
705 #"application/x-shockwave-flash", //flash/shockwave movie
709 * Plugins for media file type handling.
710 * Each entry in the array maps a MIME type to a class name
712 $wgMediaHandlers = array(
713 'image/jpeg' => 'JpegHandler',
714 'image/png' => 'PNGHandler',
715 'image/gif' => 'GIFHandler',
716 'image/tiff' => 'TiffHandler',
717 'image/x-ms-bmp' => 'BmpHandler',
718 'image/x-bmp' => 'BmpHandler',
719 'image/x-xcf' => 'XCFHandler',
720 'image/svg+xml' => 'SvgHandler', // official
721 'image/svg' => 'SvgHandler', // compat
722 'image/vnd.djvu' => 'DjVuHandler', // official
723 'image/x.djvu' => 'DjVuHandler', // compat
724 'image/x-djvu' => 'DjVuHandler', // compat
728 * Resizing can be done using PHP's internal image libraries or using
729 * ImageMagick or another third-party converter, e.g. GraphicMagick.
730 * These support more file formats than PHP, which only supports PNG,
731 * GIF, JPG, XBM and WBMP.
733 * Use Image Magick instead of PHP builtin functions.
735 $wgUseImageMagick = false;
736 /** The convert command shipped with ImageMagick */
737 $wgImageMagickConvertCommand = '/usr/bin/convert';
738 /** The identify command shipped with ImageMagick */
739 $wgImageMagickIdentifyCommand = '/usr/bin/identify';
741 /** Sharpening parameter to ImageMagick */
742 $wgSharpenParameter = '0x0.4';
744 /** Reduction in linear dimensions below which sharpening will be enabled */
745 $wgSharpenReductionThreshold = 0.85;
748 * Temporary directory used for ImageMagick. The directory must exist. Leave
749 * this set to false to let ImageMagick decide for itself.
751 $wgImageMagickTempDir = false;
754 * Use another resizing converter, e.g. GraphicMagick
755 * %s will be replaced with the source path, %d with the destination
756 * %w and %h will be replaced with the width and height.
758 * @par Example for GraphicMagick:
759 * @code
760 * $wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
761 * @endcode
763 * Leave as false to skip this.
765 $wgCustomConvertCommand = false;
768 * Some tests and extensions use exiv2 to manipulate the EXIF metadata in some
769 * image formats.
771 $wgExiv2Command = '/usr/bin/exiv2';
774 * Scalable Vector Graphics (SVG) may be uploaded as images.
775 * Since SVG support is not yet standard in browsers, it is
776 * necessary to rasterize SVGs to PNG as a fallback format.
778 * An external program is required to perform this conversion.
779 * If set to an array, the first item is a PHP callable and any further items
780 * are passed as parameters after $srcPath, $dstPath, $width, $height
782 $wgSVGConverters = array(
783 'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output',
784 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
785 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
786 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
787 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
788 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
789 'ImagickExt' => array( 'SvgHandler::rasterizeImagickExt' ),
792 /** Pick a converter defined in $wgSVGConverters */
793 $wgSVGConverter = 'ImageMagick';
795 /** If not in the executable PATH, specify the SVG converter path. */
796 $wgSVGConverterPath = '';
798 /** Don't scale a SVG larger than this */
799 $wgSVGMaxSize = 2048;
801 /** Don't read SVG metadata beyond this point.
802 * Default is 1024*256 bytes
804 $wgSVGMetadataCutoff = 262144;
807 * Disallow <title> element in SVG files.
809 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic
810 * browsers which can not perform basic stuff like MIME detection and which are
811 * vulnerable to further idiots uploading crap files as images.
813 * When this directive is on, "<title>" will be allowed in files with an
814 * "image/svg+xml" MIME type. You should leave this disabled if your web server
815 * is misconfigured and doesn't send appropriate MIME types for SVG images.
817 $wgAllowTitlesInSVG = false;
820 * The maximum number of pixels a source image can have if it is to be scaled
821 * down by a scaler that requires the full source image to be decompressed
822 * and stored in decompressed form, before the thumbnail is generated.
824 * This provides a limit on memory usage for the decompression side of the
825 * image scaler. The limit is used when scaling PNGs with any of the
826 * built-in image scalers, such as ImageMagick or GD. It is ignored for
827 * JPEGs with ImageMagick, and when using the VipsScaler extension.
829 * The default is 50 MB if decompressed to RGBA form, which corresponds to
830 * 12.5 million pixels or 3500x3500.
832 $wgMaxImageArea = 1.25e7;
834 * Force thumbnailing of animated GIFs above this size to a single
835 * frame instead of an animated thumbnail. As of MW 1.17 this limit
836 * is checked against the total size of all frames in the animation.
837 * It probably makes sense to keep this equal to $wgMaxImageArea.
839 $wgMaxAnimatedGifArea = 1.25e7;
841 * Browsers don't support TIFF inline generally...
842 * For inline display, we need to convert to PNG or JPEG.
843 * Note scaling should work with ImageMagick, but may not with GD scaling.
845 * @par Example:
846 * @code
847 * // PNG is lossless, but inefficient for photos
848 * $wgTiffThumbnailType = array( 'png', 'image/png' );
849 * // JPEG is good for photos, but has no transparency support. Bad for diagrams.
850 * $wgTiffThumbnailType = array( 'jpg', 'image/jpeg' );
851 * @endcode
853 $wgTiffThumbnailType = false;
856 * If rendered thumbnail files are older than this timestamp, they
857 * will be rerendered on demand as if the file didn't already exist.
858 * Update if there is some need to force thumbs and SVG rasterizations
859 * to rerender, such as fixes to rendering bugs.
861 $wgThumbnailEpoch = '20030516000000';
864 * If set, inline scaled images will still produce "<img>" tags ready for
865 * output instead of showing an error message.
867 * This may be useful if errors are transitory, especially if the site
868 * is configured to automatically render thumbnails on request.
870 * On the other hand, it may obscure error conditions from debugging.
871 * Enable the debug log or the 'thumbnail' log group to make sure errors
872 * are logged to a file for review.
874 $wgIgnoreImageErrors = false;
877 * Allow thumbnail rendering on page view. If this is false, a valid
878 * thumbnail URL is still output, but no file will be created at
879 * the target location. This may save some time if you have a
880 * thumb.php or 404 handler set up which is faster than the regular
881 * webserver(s).
883 $wgGenerateThumbnailOnParse = true;
886 * Show thumbnails for old images on the image description page
888 $wgShowArchiveThumbnails = true;
890 /** Obsolete, always true, kept for compatibility with extensions */
891 $wgUseImageResize = true;
894 * If set to true, images that contain certain the exif orientation tag will
895 * be rotated accordingly. If set to null, try to auto-detect whether a scaler
896 * is available that can rotate.
898 $wgEnableAutoRotation = null;
901 * Internal name of virus scanner. This servers as a key to the
902 * $wgAntivirusSetup array. Set this to NULL to disable virus scanning. If not
903 * null, every file uploaded will be scanned for viruses.
905 $wgAntivirus = null;
908 * Configuration for different virus scanners. This an associative array of
909 * associative arrays. It contains one setup array per known scanner type.
910 * The entry is selected by $wgAntivirus, i.e.
911 * valid values for $wgAntivirus are the keys defined in this array.
913 * The configuration array for each scanner contains the following keys:
914 * "command", "codemap", "messagepattern":
916 * "command" is the full command to call the virus scanner - %f will be
917 * replaced with the name of the file to scan. If not present, the filename
918 * will be appended to the command. Note that this must be overwritten if the
919 * scanner is not in the system path; in that case, plase set
920 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full
921 * path.
923 * "codemap" is a mapping of exit code to return codes of the detectVirus
924 * function in SpecialUpload.
925 * - An exit code mapped to AV_SCAN_FAILED causes the function to consider
926 * the scan to be failed. This will pass the file if $wgAntivirusRequired
927 * is not set.
928 * - An exit code mapped to AV_SCAN_ABORTED causes the function to consider
929 * the file to have an usupported format, which is probably imune to
930 * virusses. This causes the file to pass.
931 * - An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning
932 * no virus was found.
933 * - All other codes (like AV_VIRUS_FOUND) will cause the function to report
934 * a virus.
935 * - You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
937 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
938 * output. The relevant part should be matched as group one (\1).
939 * If not defined or the pattern does not match, the full message is shown to the user.
941 $wgAntivirusSetup = array(
943 #setup for clamav
944 'clamav' => array (
945 'command' => "clamscan --no-summary ",
947 'codemap' => array (
948 "0" => AV_NO_VIRUS, # no virus
949 "1" => AV_VIRUS_FOUND, # virus found
950 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune)
951 "*" => AV_SCAN_FAILED, # else scan failed
954 'messagepattern' => '/.*?:(.*)/sim',
959 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected. */
960 $wgAntivirusRequired = true;
962 /** Determines if the mime type of uploaded files should be checked */
963 $wgVerifyMimeType = true;
965 /** Sets the mime type definition file to use by MimeMagic.php. */
966 $wgMimeTypeFile = "includes/mime.types";
967 #$wgMimeTypeFile= "/etc/mime.types";
968 #$wgMimeTypeFile= null; #use built-in defaults only.
970 /** Sets the mime type info file to use by MimeMagic.php. */
971 $wgMimeInfoFile= "includes/mime.info";
972 #$wgMimeInfoFile= null; #use built-in defaults only.
975 * Switch for loading the FileInfo extension by PECL at runtime.
976 * This should be used only if fileinfo is installed as a shared object
977 * or a dynamic library.
979 $wgLoadFileinfoExtension = false;
981 /** Sets an external mime detector program. The command must print only
982 * the mime type to standard output.
983 * The name of the file to process will be appended to the command given here.
984 * If not set or NULL, mime_content_type will be used if available.
986 * @par Example:
987 * @code
988 * #$wgMimeDetectorCommand = "file -bi"; # use external mime detector (Linux)
989 * @endcode
991 $wgMimeDetectorCommand = null;
994 * Switch for trivial mime detection. Used by thumb.php to disable all fancy
995 * things, because only a few types of images are needed and file extensions
996 * can be trusted.
998 $wgTrivialMimeDetection = false;
1001 * Additional XML types we can allow via mime-detection.
1002 * array = ( 'rootElement' => 'associatedMimeType' )
1004 $wgXMLMimeTypes = array(
1005 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1006 'svg' => 'image/svg+xml',
1007 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1008 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1009 'html' => 'text/html', // application/xhtml+xml?
1013 * Limit images on image description pages to a user-selectable limit. In order
1014 * to reduce disk usage, limits can only be selected from a list.
1015 * The user preference is saved as an array offset in the database, by default
1016 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
1017 * change it if you alter the array (see bug 8858).
1018 * This is the list of settings the user can choose from:
1020 $wgImageLimits = array(
1021 array( 320, 240 ),
1022 array( 640, 480 ),
1023 array( 800, 600 ),
1024 array( 1024, 768 ),
1025 array( 1280, 1024 )
1029 * Adjust thumbnails on image pages according to a user setting. In order to
1030 * reduce disk usage, the values can only be selected from a list. This is the
1031 * list of settings the user can choose from:
1033 $wgThumbLimits = array(
1034 120,
1035 150,
1036 180,
1037 200,
1038 250,
1043 * Default parameters for the "<gallery>" tag
1045 $wgGalleryOptions = array (
1046 'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize
1047 'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
1048 'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
1049 'captionLength' => 25, // Length of caption to truncate (in characters)
1050 'showBytes' => true, // Show the filesize in bytes in categories
1054 * Adjust width of upright images when parameter 'upright' is used
1055 * This allows a nicer look for upright images without the need to fix the width
1056 * by hardcoded px in wiki sourcecode.
1058 $wgThumbUpright = 0.75;
1061 * Default value for chmoding of new directories.
1063 $wgDirectoryMode = 0777;
1066 * @name DJVU settings
1067 * @{
1070 * Path of the djvudump executable
1071 * Enable this and $wgDjvuRenderer to enable djvu rendering
1073 # $wgDjvuDump = 'djvudump';
1074 $wgDjvuDump = null;
1077 * Path of the ddjvu DJVU renderer
1078 * Enable this and $wgDjvuDump to enable djvu rendering
1080 # $wgDjvuRenderer = 'ddjvu';
1081 $wgDjvuRenderer = null;
1084 * Path of the djvutxt DJVU text extraction utility
1085 * Enable this and $wgDjvuDump to enable text layer extraction from djvu files
1087 # $wgDjvuTxt = 'djvutxt';
1088 $wgDjvuTxt = null;
1091 * Path of the djvutoxml executable
1092 * This works like djvudump except much, much slower as of version 3.5.
1094 * For now we recommend you use djvudump instead. The djvuxml output is
1095 * probably more stable, so we'll switch back to it as soon as they fix
1096 * the efficiency problem.
1097 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
1099 * @par Example:
1100 * @code
1101 * $wgDjvuToXML = 'djvutoxml';
1102 * @endcode
1104 $wgDjvuToXML = null;
1107 * Shell command for the DJVU post processor
1108 * Default: pnmtopng, since ddjvu generates ppm output
1109 * Set this to false to output the ppm file directly.
1111 $wgDjvuPostProcessor = 'pnmtojpeg';
1113 * File extension for the DJVU post processor output
1115 $wgDjvuOutputExtension = 'jpg';
1116 /** @} */ # end of DJvu }
1118 /** @} */ # end of file uploads }
1120 /************************************************************************//**
1121 * @name Email settings
1122 * @{
1125 $serverName = substr( $wgServer, strrpos( $wgServer, '/' ) + 1 );
1128 * Site admin email address.
1130 $wgEmergencyContact = 'wikiadmin@' . $serverName;
1133 * Password reminder email address.
1135 * The address we should use as sender when a user is requesting his password.
1137 $wgPasswordSender = 'apache@' . $serverName;
1139 unset( $serverName ); # Don't leak local variables to global scope
1142 * Password reminder name
1144 $wgPasswordSenderName = 'MediaWiki Mail';
1147 * Dummy address which should be accepted during mail send action.
1148 * It might be necessary to adapt the address or to set it equal
1149 * to the $wgEmergencyContact address.
1151 $wgNoReplyAddress = 'reply@not.possible';
1154 * Set to true to enable the e-mail basic features:
1155 * Password reminders, etc. If sending e-mail on your
1156 * server doesn't work, you might want to disable this.
1158 $wgEnableEmail = true;
1161 * Set to true to enable user-to-user e-mail.
1162 * This can potentially be abused, as it's hard to track.
1164 $wgEnableUserEmail = true;
1167 * Set to true to put the sending user's email in a Reply-To header
1168 * instead of From. ($wgEmergencyContact will be used as From.)
1170 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
1171 * which can cause problems with SPF validation and leak recipient addressses
1172 * when bounces are sent to the sender.
1174 $wgUserEmailUseReplyTo = false;
1177 * Minimum time, in hours, which must elapse between password reminder
1178 * emails for a given account. This is to prevent abuse by mail flooding.
1180 $wgPasswordReminderResendTime = 24;
1183 * The time, in seconds, when an emailed temporary password expires.
1185 $wgNewPasswordExpiry = 3600 * 24 * 7;
1188 * The time, in seconds, when an email confirmation email expires
1190 $wgUserEmailConfirmationTokenExpiry = 7 * 24 * 60 * 60;
1193 * SMTP Mode.
1195 * For using a direct (authenticated) SMTP server connection.
1196 * Default to false or fill an array :
1198 * @code
1199 * $wgSMTP = array(
1200 * 'host' => 'SMTP domain',
1201 * 'IDHost' => 'domain for MessageID',
1202 * 'port' => '25',
1203 * 'auth' => [true|false],
1204 * 'username' => [SMTP username],
1205 * 'password' => [SMTP password],
1206 * );
1207 * @endcode
1209 $wgSMTP = false;
1212 * Additional email parameters, will be passed as the last argument to mail() call.
1213 * If using safe_mode this has no effect
1215 $wgAdditionalMailParams = null;
1218 * True: from page editor if s/he opted-in. False: Enotif mails appear to come
1219 * from $wgEmergencyContact
1221 $wgEnotifFromEditor = false;
1223 // TODO move UPO to preferences probably ?
1224 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1225 # If set to false, the corresponding input form on the user preference page is suppressed
1226 # It call this to be a "user-preferences-option (UPO)"
1229 * Require email authentication before sending mail to an email address.
1230 * This is highly recommended. It prevents MediaWiki from being used as an open
1231 * spam relay.
1233 $wgEmailAuthentication = true;
1236 * Allow users to enable email notification ("enotif") on watchlist changes.
1238 $wgEnotifWatchlist = false;
1241 * Allow users to enable email notification ("enotif") when someone edits their
1242 * user talk page.
1244 $wgEnotifUserTalk = false;
1247 * Set the Reply-to address in notifications to the editor's address, if user
1248 * allowed this in the preferences.
1250 $wgEnotifRevealEditorAddress = false;
1253 * Send notification mails on minor edits to watchlist pages. This is enabled
1254 * by default. Does not affect user talk notifications.
1256 $wgEnotifMinorEdits = true;
1259 * Send a generic mail instead of a personalised mail for each user. This
1260 * always uses UTC as the time zone, and doesn't include the username.
1262 * For pages with many users watching, this can significantly reduce mail load.
1263 * Has no effect when using sendmail rather than SMTP.
1265 $wgEnotifImpersonal = false;
1268 * Maximum number of users to mail at once when using impersonal mail. Should
1269 * match the limit on your mail server.
1271 $wgEnotifMaxRecips = 500;
1274 * Send mails via the job queue. This can be useful to reduce the time it
1275 * takes to save a page that a lot of people are watching.
1277 $wgEnotifUseJobQ = false;
1280 * Use real name instead of username in e-mail "from" field.
1282 $wgEnotifUseRealName = false;
1285 * Array of usernames who will be sent a notification email for every change
1286 * which occurs on a wiki. Users will not be notified of their own changes.
1288 $wgUsersNotifiedOnAllChanges = array();
1291 /** @} */ # end of email settings
1293 /************************************************************************//**
1294 * @name Database settings
1295 * @{
1297 /** Database host name or IP address */
1298 $wgDBserver = 'localhost';
1299 /** Database port number (for PostgreSQL) */
1300 $wgDBport = 5432;
1301 /** Name of the database */
1302 $wgDBname = 'my_wiki';
1303 /** Database username */
1304 $wgDBuser = 'wikiuser';
1305 /** Database user's password */
1306 $wgDBpassword = '';
1307 /** Database type */
1308 $wgDBtype = 'mysql';
1310 /** Separate username for maintenance tasks. Leave as null to use the default. */
1311 $wgDBadminuser = null;
1312 /** Separate password for maintenance tasks. Leave as null to use the default. */
1313 $wgDBadminpassword = null;
1316 * Search type.
1317 * Leave as null to select the default search engine for the
1318 * selected database type (eg SearchMySQL), or set to a class
1319 * name to override to a custom search engine.
1321 $wgSearchType = null;
1323 /** Table name prefix */
1324 $wgDBprefix = '';
1325 /** MySQL table options to use during installation or update */
1326 $wgDBTableOptions = 'ENGINE=InnoDB';
1329 * SQL Mode - default is turning off all modes, including strict, if set.
1330 * null can be used to skip the setting for performance reasons and assume
1331 * DBA has done his best job.
1332 * String override can be used for some additional fun :-)
1334 $wgSQLMode = '';
1336 /** Mediawiki schema */
1337 $wgDBmwschema = 'mediawiki';
1339 /** To override default SQLite data directory ($docroot/../data) */
1340 $wgSQLiteDataDir = '';
1343 * Make all database connections secretly go to localhost. Fool the load balancer
1344 * thinking there is an arbitrarily large cluster of servers to connect to.
1345 * Useful for debugging.
1347 $wgAllDBsAreLocalhost = false;
1350 * Shared database for multiple wikis. Commonly used for storing a user table
1351 * for single sign-on. The server for this database must be the same as for the
1352 * main database.
1354 * For backwards compatibility the shared prefix is set to the same as the local
1355 * prefix, and the user table is listed in the default list of shared tables.
1356 * The user_properties table is also added so that users will continue to have their
1357 * preferences shared (preferences were stored in the user table prior to 1.16)
1359 * $wgSharedTables may be customized with a list of tables to share in the shared
1360 * datbase. However it is advised to limit what tables you do share as many of
1361 * MediaWiki's tables may have side effects if you try to share them.
1362 * EXPERIMENTAL
1364 * $wgSharedPrefix is the table prefix for the shared database. It defaults to
1365 * $wgDBprefix.
1367 $wgSharedDB = null;
1369 /** @see $wgSharedDB */
1370 $wgSharedPrefix = false;
1371 /** @see $wgSharedDB */
1372 $wgSharedTables = array( 'user', 'user_properties' );
1375 * Database load balancer
1376 * This is a two-dimensional array, an array of server info structures
1377 * Fields are:
1378 * - host: Host name
1379 * - dbname: Default database name
1380 * - user: DB user
1381 * - password: DB password
1382 * - type: "mysql" or "postgres"
1383 * - load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
1384 * - groupLoads: array of load ratios, the key is the query group name. A query may belong
1385 * to several groups, the most specific group defined here is used.
1387 * - flags: bit field
1388 * - DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
1389 * - DBO_DEBUG -- equivalent of $wgDebugDumpSql
1390 * - DBO_TRX -- wrap entire request in a transaction
1391 * - DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
1392 * - DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
1393 * - DBO_PERSISTENT -- enables persistent database connections
1395 * - max lag: (optional) Maximum replication lag before a slave will taken out of rotation
1396 * - max threads: (optional) Maximum number of running threads
1398 * These and any other user-defined properties will be assigned to the mLBInfo member
1399 * variable of the Database object.
1401 * Leave at false to use the single-server variables above. If you set this
1402 * variable, the single-server variables will generally be ignored (except
1403 * perhaps in some command-line scripts).
1405 * The first server listed in this array (with key 0) will be the master. The
1406 * rest of the servers will be slaves. To prevent writes to your slaves due to
1407 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
1408 * slaves in my.cnf. You can set read_only mode at runtime using:
1410 * @code
1411 * SET @@read_only=1;
1412 * @endcode
1414 * Since the effect of writing to a slave is so damaging and difficult to clean
1415 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
1416 * our masters, and then set read_only=0 on masters at runtime.
1418 $wgDBservers = false;
1421 * Load balancer factory configuration
1422 * To set up a multi-master wiki farm, set the class here to something that
1423 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
1424 * The class identified here is responsible for reading $wgDBservers,
1425 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
1427 * The LBFactory_Multi class is provided for this purpose, please see
1428 * includes/db/LBFactory_Multi.php for configuration information.
1430 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
1432 /** How long to wait for a slave to catch up to the master */
1433 $wgMasterWaitTimeout = 10;
1435 /** File to log database errors to */
1436 $wgDBerrorLog = false;
1438 * Override wiki timezone to UTC for wgDBerrorLog
1439 * @since 1.20
1441 $wgDBerrorLogInUTC = false;
1443 /** When to give an error message */
1444 $wgDBClusterTimeout = 10;
1447 * Scale load balancer polling time so that under overload conditions, the
1448 * database server receives a SHOW STATUS query at an average interval of this
1449 * many microseconds
1451 $wgDBAvgStatusPoll = 2000;
1454 * Set to true to engage MySQL 4.1/5.0 charset-related features;
1455 * for now will just cause sending of 'SET NAMES=utf8' on connect.
1457 * @warning THIS IS EXPERIMENTAL!
1459 * May break if you're not using the table defs from mysql5/tables.sql.
1460 * May break if you're upgrading an existing wiki if set differently.
1461 * Broken symptoms likely to include incorrect behavior with page titles,
1462 * usernames, comments etc containing non-ASCII characters.
1463 * Might also cause failures on the object cache and other things.
1465 * Even correct usage may cause failures with Unicode supplementary
1466 * characters (those not in the Basic Multilingual Plane) unless MySQL
1467 * has enhanced their Unicode support.
1469 $wgDBmysql5 = false;
1472 * Other wikis on this site, can be administered from a single developer
1473 * account.
1474 * Array numeric key => database name
1476 $wgLocalDatabases = array();
1479 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
1480 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
1481 * show a more obvious warning.
1483 $wgSlaveLagWarning = 10;
1484 /** @see $wgSlaveLagWarning */
1485 $wgSlaveLagCritical = 30;
1488 * Use old names for change_tags indices.
1490 $wgOldChangeTagsIndex = false;
1492 /**@}*/ # End of DB settings }
1495 /************************************************************************//**
1496 * @name Text storage
1497 * @{
1501 * We can also compress text stored in the 'text' table. If this is set on, new
1502 * revisions will be compressed on page save if zlib support is available. Any
1503 * compressed revisions will be decompressed on load regardless of this setting
1504 * *but will not be readable at all* if zlib support is not available.
1506 $wgCompressRevisions = false;
1509 * External stores allow including content
1510 * from non database sources following URL links.
1512 * Short names of ExternalStore classes may be specified in an array here:
1513 * @code
1514 * $wgExternalStores = array("http","file","custom")...
1515 * @endcode
1517 * CAUTION: Access to database might lead to code execution
1519 $wgExternalStores = false;
1522 * An array of external MySQL servers.
1524 * @par Example:
1525 * Create a cluster named 'cluster1' containing three servers:
1526 * @code
1527 * $wgExternalServers = array(
1528 * 'cluster1' => array( 'srv28', 'srv29', 'srv30' )
1529 * );
1530 * @endcode
1532 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to
1533 * another class.
1535 $wgExternalServers = array();
1538 * The place to put new revisions, false to put them in the local text table.
1539 * Part of a URL, e.g. DB://cluster1
1541 * Can be an array instead of a single string, to enable data distribution. Keys
1542 * must be consecutive integers, starting at zero.
1544 * @par Example:
1545 * @code
1546 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
1547 * @endcode
1549 * @var array
1551 $wgDefaultExternalStore = false;
1554 * Revision text may be cached in $wgMemc to reduce load on external storage
1555 * servers and object extraction overhead for frequently-loaded revisions.
1557 * Set to 0 to disable, or number of seconds before cache expiry.
1559 $wgRevisionCacheExpiry = 0;
1561 /** @} */ # end text storage }
1563 /************************************************************************//**
1564 * @name Performance hacks and limits
1565 * @{
1567 /** Disable database-intensive features */
1568 $wgMiserMode = false;
1569 /** Disable all query pages if miser mode is on, not just some */
1570 $wgDisableQueryPages = false;
1571 /** Number of rows to cache in 'querycache' table when miser mode is on */
1572 $wgQueryCacheLimit = 1000;
1573 /** Number of links to a page required before it is deemed "wanted" */
1574 $wgWantedPagesThreshold = 1;
1575 /** Enable slow parser functions */
1576 $wgAllowSlowParserFunctions = false;
1577 /** Allow schema updates */
1578 $wgAllowSchemaUpdates = true;
1581 * Do DELETE/INSERT for link updates instead of incremental
1583 $wgUseDumbLinkUpdate = false;
1586 * Anti-lock flags - bitfield
1587 * - ALF_PRELOAD_LINKS:
1588 * Preload links during link update for save
1589 * - ALF_PRELOAD_EXISTENCE:
1590 * Preload cur_id during replaceLinkHolders
1591 * - ALF_NO_LINK_LOCK:
1592 * Don't use locking reads when updating the link table. This is
1593 * necessary for wikis with a high edit rate for performance
1594 * reasons, but may cause link table inconsistency
1595 * - ALF_NO_BLOCK_LOCK:
1596 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1597 * wikis.
1599 $wgAntiLockFlags = 0;
1602 * Maximum article size in kilobytes
1604 $wgMaxArticleSize = 2048;
1607 * The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to
1608 * raise PHP's memory limit if it's below this amount.
1610 $wgMemoryLimit = "50M";
1612 /** @} */ # end performance hacks }
1614 /************************************************************************//**
1615 * @name Cache settings
1616 * @{
1620 * Directory for caching data in the local filesystem. Should not be accessible
1621 * from the web. Set this to false to not use any local caches.
1623 * Note: if multiple wikis share the same localisation cache directory, they
1624 * must all have the same set of extensions. You can set a directory just for
1625 * the localisation cache using $wgLocalisationCacheConf['storeDirectory'].
1627 $wgCacheDirectory = false;
1630 * Main cache type. This should be a cache with fast access, but it may have
1631 * limited space. By default, it is disabled, since the database is not fast
1632 * enough to make it worthwhile.
1634 * The options are:
1636 * - CACHE_ANYTHING: Use anything, as long as it works
1637 * - CACHE_NONE: Do not cache
1638 * - CACHE_DB: Store cache objects in the DB
1639 * - CACHE_MEMCACHED: MemCached, must specify servers in $wgMemCachedServers
1640 * - CACHE_ACCEL: APC, XCache or WinCache
1641 * - CACHE_DBA: Use PHP's DBA extension to store in a DBM-style
1642 * database. This is slow, and is not recommended for
1643 * anything other than debugging.
1644 * - (other): A string may be used which identifies a cache
1645 * configuration in $wgObjectCaches.
1647 * @see $wgMessageCacheType, $wgParserCacheType
1649 $wgMainCacheType = CACHE_NONE;
1652 * The cache type for storing the contents of the MediaWiki namespace. This
1653 * cache is used for a small amount of data which is expensive to regenerate.
1655 * For available types see $wgMainCacheType.
1657 $wgMessageCacheType = CACHE_ANYTHING;
1660 * The cache type for storing article HTML. This is used to store data which
1661 * is expensive to regenerate, and benefits from having plenty of storage space.
1663 * For available types see $wgMainCacheType.
1665 $wgParserCacheType = CACHE_ANYTHING;
1668 * The cache type for storing language conversion tables,
1669 * which are used when parsing certain text and interface messages.
1671 * For available types see $wgMainCacheType.
1673 $wgLanguageConverterCacheType = CACHE_ANYTHING;
1676 * Advanced object cache configuration.
1678 * Use this to define the class names and constructor parameters which are used
1679 * for the various cache types. Custom cache types may be defined here and
1680 * referenced from $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType,
1681 * or $wgLanguageConverterCacheType.
1683 * The format is an associative array where the key is a cache identifier, and
1684 * the value is an associative array of parameters. The "class" parameter is the
1685 * class name which will be used. Alternatively, a "factory" parameter may be
1686 * given, giving a callable function which will generate a suitable cache object.
1688 * The other parameters are dependent on the class used.
1689 * - CACHE_DBA uses $wgTmpDirectory by default. The 'dir' parameter let you
1690 * overrides that.
1692 $wgObjectCaches = array(
1693 CACHE_NONE => array( 'class' => 'EmptyBagOStuff' ),
1694 CACHE_DB => array( 'class' => 'SqlBagOStuff', 'table' => 'objectcache' ),
1695 CACHE_DBA => array( 'class' => 'DBABagOStuff' ),
1697 CACHE_ANYTHING => array( 'factory' => 'ObjectCache::newAnything' ),
1698 CACHE_ACCEL => array( 'factory' => 'ObjectCache::newAccelerator' ),
1699 CACHE_MEMCACHED => array( 'factory' => 'ObjectCache::newMemcached' ),
1701 'apc' => array( 'class' => 'APCBagOStuff' ),
1702 'xcache' => array( 'class' => 'XCacheBagOStuff' ),
1703 'wincache' => array( 'class' => 'WinCacheBagOStuff' ),
1704 'memcached-php' => array( 'class' => 'MemcachedPhpBagOStuff' ),
1705 'memcached-pecl' => array( 'class' => 'MemcachedPeclBagOStuff' ),
1706 'hash' => array( 'class' => 'HashBagOStuff' ),
1710 * The expiry time for the parser cache, in seconds.
1711 * The default is 86400 (one day).
1713 $wgParserCacheExpireTime = 86400;
1716 * Select which DBA handler <http://www.php.net/manual/en/dba.requirements.php>
1717 * to use as CACHE_DBA backend.
1719 $wgDBAhandler = 'db3';
1722 * Store sessions in MemCached. This can be useful to improve performance, or to
1723 * avoid the locking behaviour of PHP's default session handler, which tends to
1724 * prevent multiple requests for the same user from acting concurrently.
1726 $wgSessionsInMemcached = false;
1729 * This is used for setting php's session.save_handler. In practice, you will
1730 * almost never need to change this ever. Other options might be 'user' or
1731 * 'session_mysql.' Setting to null skips setting this entirely (which might be
1732 * useful if you're doing cross-application sessions, see bug 11381)
1734 $wgSessionHandler = null;
1736 /** If enabled, will send MemCached debugging information to $wgDebugLogFile */
1737 $wgMemCachedDebug = false;
1739 /** The list of MemCached servers and port numbers */
1740 $wgMemCachedServers = array( '127.0.0.1:11000' );
1743 * Use persistent connections to MemCached, which are shared across multiple
1744 * requests.
1746 $wgMemCachedPersistent = false;
1749 * Read/write timeout for MemCached server communication, in microseconds.
1751 $wgMemCachedTimeout = 100000;
1754 * Set this to true to make a local copy of the message cache, for use in
1755 * addition to memcached. The files will be put in $wgCacheDirectory.
1757 $wgUseLocalMessageCache = false;
1760 * Defines format of local cache.
1761 * - true: Serialized object
1762 * - false: PHP source file (Warning - security risk)
1764 $wgLocalMessageCacheSerialized = true;
1767 * Instead of caching everything, keep track which messages are requested and
1768 * load only most used messages. This only makes sense if there is lots of
1769 * interface messages customised in the wiki (like hundreds in many languages).
1771 $wgAdaptiveMessageCache = false;
1774 * Localisation cache configuration. Associative array with keys:
1775 * class: The class to use. May be overridden by extensions.
1777 * store: The location to store cache data. May be 'files', 'db' or
1778 * 'detect'. If set to "files", data will be in CDB files. If set
1779 * to "db", data will be stored to the database. If set to
1780 * "detect", files will be used if $wgCacheDirectory is set,
1781 * otherwise the database will be used.
1783 * storeClass: The class name for the underlying storage. If set to a class
1784 * name, it overrides the "store" setting.
1786 * storeDirectory: If the store class puts its data in files, this is the
1787 * directory it will use. If this is false, $wgCacheDirectory
1788 * will be used.
1790 * manualRecache: Set this to true to disable cache updates on web requests.
1791 * Use maintenance/rebuildLocalisationCache.php instead.
1793 $wgLocalisationCacheConf = array(
1794 'class' => 'LocalisationCache',
1795 'store' => 'detect',
1796 'storeClass' => false,
1797 'storeDirectory' => false,
1798 'manualRecache' => false,
1801 /** Allow client-side caching of pages */
1802 $wgCachePages = true;
1805 * Set this to current time to invalidate all prior cached pages. Affects both
1806 * client-side and server-side caching.
1807 * You can get the current date on your server by using the command:
1808 * @verbatim
1809 * date +%Y%m%d%H%M%S
1810 * @endverbatim
1812 $wgCacheEpoch = '20030516000000';
1815 * Bump this number when changing the global style sheets and JavaScript.
1817 * It should be appended in the query string of static CSS and JS includes,
1818 * to ensure that client-side caches do not keep obsolete copies of global
1819 * styles.
1821 $wgStyleVersion = '303';
1824 * This will cache static pages for non-logged-in users to reduce
1825 * database traffic on public sites.
1826 * Must set $wgShowIPinHeader = false
1827 * ResourceLoader requests to default language and skins are cached
1828 * as well as single module requests.
1830 $wgUseFileCache = false;
1833 * Depth of the subdirectory hierarchy to be created under
1834 * $wgFileCacheDirectory. The subdirectories will be named based on
1835 * the MD5 hash of the title. A value of 0 means all cache files will
1836 * be put directly into the main file cache directory.
1838 $wgFileCacheDepth = 2;
1841 * Keep parsed pages in a cache (objectcache table or memcached)
1842 * to speed up output of the same page viewed by another user with the
1843 * same options.
1845 * This can provide a significant speedup for medium to large pages,
1846 * so you probably want to keep it on. Extensions that conflict with the
1847 * parser cache should disable the cache on a per-page basis instead.
1849 $wgEnableParserCache = true;
1852 * Append a configured value to the parser cache and the sitenotice key so
1853 * that they can be kept separate for some class of activity.
1855 $wgRenderHashAppend = '';
1858 * If on, the sidebar navigation links are cached for users with the
1859 * current language set. This can save a touch of load on a busy site
1860 * by shaving off extra message lookups.
1862 * However it is also fragile: changing the site configuration, or
1863 * having a variable $wgArticlePath, can produce broken links that
1864 * don't update as expected.
1866 $wgEnableSidebarCache = false;
1869 * Expiry time for the sidebar cache, in seconds
1871 $wgSidebarCacheExpiry = 86400;
1874 * When using the file cache, we can store the cached HTML gzipped to save disk
1875 * space. Pages will then also be served compressed to clients that support it.
1877 * Requires zlib support enabled in PHP.
1879 $wgUseGzip = false;
1882 * Whether MediaWiki should send an ETag header. Seems to cause
1883 * broken behavior with Squid 2.6, see bug 7098.
1885 $wgUseETag = false;
1887 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1888 * problems when the user requests two pages within a short period of time. This
1889 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1890 * a grace period.
1892 $wgClockSkewFudge = 5;
1895 * Invalidate various caches when LocalSettings.php changes. This is equivalent
1896 * to setting $wgCacheEpoch to the modification time of LocalSettings.php, as
1897 * was previously done in the default LocalSettings.php file.
1899 * On high-traffic wikis, this should be set to false, to avoid the need to
1900 * check the file modification time, and to avoid the performance impact of
1901 * unnecessary cache invalidations.
1903 $wgInvalidateCacheOnLocalSettingsChange = true;
1905 /** @} */ # end of cache settings
1907 /************************************************************************//**
1908 * @name HTTP proxy (Squid) settings
1910 * Many of these settings apply to any HTTP proxy used in front of MediaWiki,
1911 * although they are referred to as Squid settings for historical reasons.
1913 * Achieving a high hit ratio with an HTTP proxy requires special
1914 * configuration. See http://www.mediawiki.org/wiki/Manual:Squid_caching for
1915 * more details.
1917 * @{
1921 * Enable/disable Squid.
1922 * See http://www.mediawiki.org/wiki/Manual:Squid_caching
1924 $wgUseSquid = false;
1926 /** If you run Squid3 with ESI support, enable this (default:false): */
1927 $wgUseESI = false;
1929 /** Send X-Vary-Options header for better caching (requires patched Squid) */
1930 $wgUseXVO = false;
1932 /** Add X-Forwarded-Proto to the Vary and X-Vary-Options headers for API
1933 * requests and RSS/Atom feeds. Use this if you have an SSL termination setup
1934 * and need to split the cache between HTTP and HTTPS for API requests,
1935 * feed requests and HTTP redirect responses in order to prevent cache
1936 * pollution. This does not affect 'normal' requests to index.php other than
1937 * HTTP redirects.
1939 $wgVaryOnXFP = false;
1942 * Internal server name as known to Squid, if different.
1944 * @par Example:
1945 * @code
1946 * $wgInternalServer = 'http://yourinternal.tld:8000';
1947 * @endcode
1949 $wgInternalServer = false;
1952 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1953 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1954 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1955 * days
1957 $wgSquidMaxage = 18000;
1960 * Default maximum age for raw CSS/JS accesses
1962 $wgForcedRawSMaxage = 300;
1965 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1967 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1968 * headers sent/modified from these proxies when obtaining the remote IP address
1970 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1972 $wgSquidServers = array();
1975 * As above, except these servers aren't purged on page changes; use to set a
1976 * list of trusted proxies, etc.
1978 $wgSquidServersNoPurge = array();
1980 /** Maximum number of titles to purge in any one client operation */
1981 $wgMaxSquidPurgeTitles = 400;
1984 * Routing configuration for HTCP multicast purging. Add elements here to
1985 * enable HTCP and determine which purges are sent where. If set to an empty
1986 * array, HTCP is disabled.
1988 * Each key in this array is a regular expression to match against the purged
1989 * URL, or an empty string to match all URLs. The purged URL is matched against
1990 * the regexes in the order specified, and the first rule whose regex matches
1991 * is used.
1993 * Example configuration to send purges for upload.wikimedia.org to one
1994 * multicast group and all other purges to another:
1995 * @code
1996 * $wgHTCPMulticastRouting = array(
1997 * '|^https?://upload\.wikimedia\.org|' => array(
1998 * 'host' => '239.128.0.113',
1999 * 'port' => 4827,
2000 * ),
2001 * '' => array(
2002 * 'host' => '239.128.0.112',
2003 * 'port' => 4827,
2004 * ),
2005 * );
2006 * @endcode
2008 * @see $wgHTCPMulticastTTL
2010 $wgHTCPMulticastRouting = array();
2013 * HTCP multicast address. Set this to a multicast IP address to enable HTCP.
2015 * Note that MediaWiki uses the old non-RFC compliant HTCP format, which was
2016 * present in the earliest Squid implementations of the protocol.
2018 * This setting is DEPRECATED in favor of $wgHTCPMulticastRouting , and kept
2019 * for backwards compatibility only. If $wgHTCPMulticastRouting is set, this
2020 * setting is ignored. If $wgHTCPMulticastRouting is not set and this setting
2021 * is, it is used to populate $wgHTCPMulticastRouting.
2023 * @deprecated in favor of $wgHTCPMulticastRouting
2025 $wgHTCPMulticastAddress = false;
2028 * HTCP multicast port.
2029 * @deprecated in favor of $wgHTCPMulticastRouting
2030 * @see $wgHTCPMulticastAddress
2032 $wgHTCPPort = 4827;
2035 * HTCP multicast TTL.
2036 * @see $wgHTCPMulticastRouting
2038 $wgHTCPMulticastTTL = 1;
2040 /** Should forwarded Private IPs be accepted? */
2041 $wgUsePrivateIPs = false;
2043 /** @} */ # end of HTTP proxy settings
2045 /************************************************************************//**
2046 * @name Language, regional and character encoding settings
2047 * @{
2050 /** Site language code, should be one of ./languages/Language(.*).php */
2051 $wgLanguageCode = 'en';
2054 * Some languages need different word forms, usually for different cases.
2055 * Used in Language::convertGrammar().
2057 * @par Example:
2058 * @code
2059 * $wgGrammarForms['en']['genitive']['car'] = 'car\'s';
2060 * @endcode
2062 $wgGrammarForms = array();
2064 /** Treat language links as magic connectors, not inline links */
2065 $wgInterwikiMagic = true;
2067 /** Hide interlanguage links from the sidebar */
2068 $wgHideInterlanguageLinks = false;
2070 /** List of language names or overrides for default names in Names.php */
2071 $wgExtraLanguageNames = array();
2074 * List of language codes that don't correspond to an actual language.
2075 * These codes are mostly leftoffs from renames, or other legacy things.
2076 * This array makes them not appear as a selectable language on the installer,
2077 * and excludes them when running the transstat.php script.
2079 $wgDummyLanguageCodes = array(
2080 'als' => 'gsw',
2081 'bat-smg' => 'sgs',
2082 'be-x-old' => 'be-tarask',
2083 'bh' => 'bho',
2084 'fiu-vro' => 'vro',
2085 'no' => 'nb',
2086 'qqq' => 'qqq', # Used for message documentation.
2087 'qqx' => 'qqx', # Used for viewing message keys.
2088 'roa-rup' => 'rup',
2089 'simple' => 'en',
2090 'zh-classical' => 'lzh',
2091 'zh-min-nan' => 'nan',
2092 'zh-yue' => 'yue',
2096 * Character set for use in the article edit box. Language-specific encodings
2097 * may be defined.
2099 * This historic feature is one of the first that was added by former MediaWiki
2100 * team leader Brion Vibber, and is used to support the Esperanto x-system.
2102 $wgEditEncoding = '';
2105 * Set this to true to replace Arabic presentation forms with their standard
2106 * forms in the U+0600-U+06FF block. This only works if $wgLanguageCode is
2107 * set to "ar".
2109 * Note that pages with titles containing presentation forms will become
2110 * inaccessible, run maintenance/cleanupTitles.php to fix this.
2112 $wgFixArabicUnicode = true;
2115 * Set this to true to replace ZWJ-based chillu sequences in Malayalam text
2116 * with their Unicode 5.1 equivalents. This only works if $wgLanguageCode is
2117 * set to "ml". Note that some clients (even new clients as of 2010) do not
2118 * support these characters.
2120 * If you enable this on an existing wiki, run maintenance/cleanupTitles.php to
2121 * fix any ZWJ sequences in existing page titles.
2123 $wgFixMalayalamUnicode = true;
2126 * Set this to always convert certain Unicode sequences to modern ones
2127 * regardless of the content language. This has a small performance
2128 * impact.
2130 * See $wgFixArabicUnicode and $wgFixMalayalamUnicode for conversion
2131 * details.
2133 * @since 1.17
2135 $wgAllUnicodeFixes = false;
2138 * Set this to eg 'ISO-8859-1' to perform character set conversion when
2139 * loading old revisions not marked with "utf-8" flag. Use this when
2140 * converting a wiki from MediaWiki 1.4 or earlier to UTF-8 without the
2141 * burdensome mass conversion of old text data.
2143 * @note This DOES NOT touch any fields other than old_text. Titles, comments,
2144 * user names, etc still must be converted en masse in the database before
2145 * continuing as a UTF-8 wiki.
2147 $wgLegacyEncoding = false;
2150 * Browser Blacklist for unicode non compliant browsers. Contains a list of
2151 * regexps : "/regexp/" matching problematic browsers. These browsers will
2152 * be served encoded unicode in the edit box instead of real unicode.
2154 $wgBrowserBlackList = array(
2156 * Netscape 2-4 detection
2157 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2158 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2159 * with a negative assertion. The [UIN] identifier specifies the level of security
2160 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2161 * The language string is unreliable, it is missing on NS4 Mac.
2163 * Reference: http://www.psychedelix.com/agents/index.shtml
2165 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2166 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2167 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2170 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2172 * Known useragents:
2173 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2174 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2175 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2176 * - [...]
2178 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2179 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2181 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2184 * Google wireless transcoder, seems to eat a lot of chars alive
2185 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2187 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2191 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
2192 * create stub reference rows in the text table instead of copying
2193 * the full text of all current entries from 'cur' to 'text'.
2195 * This will speed up the conversion step for large sites, but
2196 * requires that the cur table be kept around for those revisions
2197 * to remain viewable.
2199 * maintenance/migrateCurStubs.php can be used to complete the
2200 * migration in the background once the wiki is back online.
2202 * This option affects the updaters *only*. Any present cur stub
2203 * revisions will be readable at runtime regardless of this setting.
2205 $wgLegacySchemaConversion = false;
2208 * Enable to allow rewriting dates in page text.
2209 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES.
2211 $wgUseDynamicDates = false;
2213 * Enable dates like 'May 12' instead of '12 May', this only takes effect if
2214 * the interface is set to English.
2216 $wgAmericanDates = false;
2218 * For Hindi and Arabic use local numerals instead of Western style (0-9)
2219 * numerals in interface.
2221 $wgTranslateNumerals = true;
2224 * Translation using MediaWiki: namespace.
2225 * Interface messages will be loaded from the database.
2227 $wgUseDatabaseMessages = true;
2230 * Expiry time for the message cache key
2232 $wgMsgCacheExpiry = 86400;
2235 * Maximum entry size in the message cache, in bytes
2237 $wgMaxMsgCacheEntrySize = 10000;
2239 /** Whether to enable language variant conversion. */
2240 $wgDisableLangConversion = false;
2242 /** Whether to enable language variant conversion for links. */
2243 $wgDisableTitleConversion = false;
2245 /** Whether to enable cononical language links in meta data. */
2246 $wgCanonicalLanguageLinks = true;
2248 /** Default variant code, if false, the default will be the language code */
2249 $wgDefaultLanguageVariant = false;
2252 * Disabled variants array of language variant conversion.
2254 * @par Example:
2255 * @code
2256 * $wgDisabledVariants[] = 'zh-mo';
2257 * $wgDisabledVariants[] = 'zh-my';
2258 * @endcode
2260 $wgDisabledVariants = array();
2263 * Like $wgArticlePath, but on multi-variant wikis, this provides a
2264 * path format that describes which parts of the URL contain the
2265 * language variant.
2267 * @par Example:
2268 * @code
2269 * $wgLanguageCode = 'sr';
2270 * $wgVariantArticlePath = '/$2/$1';
2271 * $wgArticlePath = '/wiki/$1';
2272 * @endcode
2274 * A link to /wiki/ would be redirected to /sr/Главна_страна
2276 * It is important that $wgArticlePath not overlap with possible values
2277 * of $wgVariantArticlePath.
2279 $wgVariantArticlePath = false;
2282 * Show a bar of language selection links in the user login and user
2283 * registration forms; edit the "loginlanguagelinks" message to
2284 * customise these.
2286 $wgLoginLanguageSelector = false;
2289 * When translating messages with wfMsg(), it is not always clear what should
2290 * be considered UI messages and what should be content messages.
2292 * For example, for the English Wikipedia, there should be only one 'mainpage',
2293 * so when getting the link for 'mainpage', we should treat it as site content
2294 * and call wfMsgForContent(), but for rendering the text of the link, we call
2295 * wfMsg(). The code behaves this way by default. However, sites like the
2296 * Wikimedia Commons do offer different versions of 'mainpage' and the like for
2297 * different languages. This array provides a way to override the default
2298 * behavior.
2300 * @par Example:
2301 * To allow language-specific main page and community
2302 * portal:
2303 * @code
2304 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2305 * @endcode
2307 $wgForceUIMsgAsContentMsg = array();
2310 * Fake out the timezone that the server thinks it's in. This will be used for
2311 * date display and not for what's stored in the DB. Leave to null to retain
2312 * your server's OS-based timezone value.
2314 * This variable is currently used only for signature formatting and for local
2315 * time/date parser variables ({{LOCALTIME}} etc.)
2317 * Timezones can be translated by editing MediaWiki messages of type
2318 * timezone-nameinlowercase like timezone-utc.
2320 * @par Examples:
2321 * @code
2322 * $wgLocaltimezone = 'GMT';
2323 * $wgLocaltimezone = 'PST8PDT';
2324 * $wgLocaltimezone = 'Europe/Sweden';
2325 * $wgLocaltimezone = 'CET';
2326 * @endcode
2328 $wgLocaltimezone = null;
2331 * Set an offset from UTC in minutes to use for the default timezone setting
2332 * for anonymous users and new user accounts.
2334 * This setting is used for most date/time displays in the software, and is
2335 * overrideable in user preferences. It is *not* used for signature timestamps.
2337 * By default, this will be set to match $wgLocaltimezone.
2339 $wgLocalTZoffset = null;
2342 * If set to true, this will roll back a few bug fixes introduced in 1.19,
2343 * emulating the 1.18 behaviour, to avoid introducing bug 34832. In 1.19,
2344 * language variant conversion is disabled in interface messages. Setting this
2345 * to true re-enables it.
2347 * @todo This variable should be removed (implicitly false) in 1.20 or earlier.
2349 $wgBug34832TransitionalRollback = true;
2352 /** @} */ # End of language/charset settings
2354 /*************************************************************************//**
2355 * @name Output format and skin settings
2356 * @{
2359 /** The default Content-Type header. */
2360 $wgMimeType = 'text/html';
2363 * The content type used in script tags. This is mostly going to be ignored if
2364 * $wgHtml5 is true, at least for actual HTML output, since HTML5 doesn't
2365 * require a MIME type for JavaScript or CSS (those are the default script and
2366 * style languages).
2368 $wgJsMimeType = 'text/javascript';
2371 * The HTML document type. Ignored if $wgHtml5 is true, since <!DOCTYPE html>
2372 * doesn't actually have a doctype part to put this variable's contents in.
2374 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
2377 * The URL of the document type declaration. Ignored if $wgHtml5 is true,
2378 * since HTML5 has no DTD, and <!DOCTYPE html> doesn't actually have a DTD part
2379 * to put this variable's contents in.
2381 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
2384 * The default xmlns attribute. Ignored if $wgHtml5 is true (or it's supposed
2385 * to be), since we don't currently support XHTML5, and in HTML5 (i.e., served
2386 * as text/html) the attribute has no effect, so why bother?
2388 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
2391 * Should we output an HTML5 doctype? If false, use XHTML 1.0 Transitional
2392 * instead, and disable HTML5 features. This may eventually be removed and set
2393 * to always true. If it's true, a number of other settings will be irrelevant
2394 * and have no effect.
2396 $wgHtml5 = true;
2399 * Defines the value of the version attribute in the &lt;html&gt; tag, if any.
2400 * This is ignored if $wgHtml5 is false. If $wgAllowRdfaAttributes and
2401 * $wgHtml5 are both true, and this evaluates to boolean false (like if it's
2402 * left at the default null value), it will be auto-initialized to the correct
2403 * value for RDFa+HTML5. As such, you should have no reason to ever actually
2404 * set this to anything.
2406 $wgHtml5Version = null;
2409 * Enabled RDFa attributes for use in wikitext.
2410 * NOTE: Interaction with HTML5 is somewhat underspecified.
2412 $wgAllowRdfaAttributes = false;
2415 * Enabled HTML5 microdata attributes for use in wikitext, if $wgHtml5 is also true.
2417 $wgAllowMicrodataAttributes = false;
2420 * Cleanup as much presentational html like valign -> css vertical-align as we can
2422 $wgCleanupPresentationalAttributes = true;
2425 * Should we try to make our HTML output well-formed XML? If set to false,
2426 * output will be a few bytes shorter, and the HTML will arguably be more
2427 * readable. If set to true, life will be much easier for the authors of
2428 * screen-scraping bots, and the HTML will arguably be more readable.
2430 * Setting this to false may omit quotation marks on some attributes, omit
2431 * slashes from some self-closing tags, omit some ending tags, etc., where
2432 * permitted by HTML5. Setting it to true will not guarantee that all pages
2433 * will be well-formed, although non-well-formed pages should be rare and it's
2434 * a bug if you find one. Conversely, setting it to false doesn't mean that
2435 * all XML-y constructs will be omitted, just that they might be.
2437 * Because of compatibility with screen-scraping bots, and because it's
2438 * controversial, this is currently left to true by default.
2440 $wgWellFormedXml = true;
2443 * Permit other namespaces in addition to the w3.org default.
2445 * Use the prefix for the key and the namespace for the value.
2447 * @par Example:
2448 * @code
2449 * $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
2450 * @endCode
2451 * Normally we wouldn't have to define this in the root "<html>"
2452 * element, but IE needs it there in some circumstances.
2454 * This is ignored if $wgHtml5 is true, for the same reason as
2455 * $wgXhtmlDefaultNamespace.
2457 $wgXhtmlNamespaces = array();
2460 * Show IP address, for non-logged in users. It's necessary to switch this off
2461 * for some forms of caching.
2462 * @warning Will disable file cache.
2464 $wgShowIPinHeader = true;
2467 * Site notice shown at the top of each page
2469 * MediaWiki:Sitenotice page, which will override this. You can also
2470 * provide a separate message for logged-out users using the
2471 * MediaWiki:Anonnotice page.
2473 $wgSiteNotice = '';
2476 * A subtitle to add to the tagline, for skins that have it/
2478 $wgExtraSubtitle = '';
2481 * If this is set, a "donate" link will appear in the sidebar. Set it to a URL.
2483 $wgSiteSupportPage = '';
2486 * Validate the overall output using tidy and refuse
2487 * to display the page if it's not valid.
2489 $wgValidateAllHtml = false;
2492 * Default skin, for new users and anonymous visitors. Registered users may
2493 * change this to any one of the other available skins in their preferences.
2494 * This has to be completely lowercase; see the "skins" directory for the list
2495 * of available skins.
2497 $wgDefaultSkin = 'vector';
2500 * Specify the name of a skin that should not be presented in the list of
2501 * available skins. Use for blacklisting a skin which you do not want to
2502 * remove from the .../skins/ directory
2504 $wgSkipSkin = '';
2505 /** Array for more like $wgSkipSkin. */
2506 $wgSkipSkins = array();
2509 * Optionally, we can specify a stylesheet to use for media="handheld".
2510 * This is recognized by some, but not all, handheld/mobile/PDA browsers.
2511 * If left empty, compliant handheld browsers won't pick up the skin
2512 * stylesheet, which is specified for 'screen' media.
2514 * Can be a complete URL, base-relative path, or $wgStylePath-relative path.
2515 * Try 'chick/main.css' to apply the Chick styles to the MonoBook HTML.
2517 * Will also be switched in when 'handheld=yes' is added to the URL, like
2518 * the 'printable=yes' mode for print media.
2520 $wgHandheldStyle = false;
2523 * If set, 'screen' and 'handheld' media specifiers for stylesheets are
2524 * transformed such that they apply to the iPhone/iPod Touch Mobile Safari,
2525 * which doesn't recognize 'handheld' but does support media queries on its
2526 * screen size.
2528 * Consider only using this if you have a *really good* handheld stylesheet,
2529 * as iPhone users won't have any way to disable it and use the "grown-up"
2530 * styles instead.
2532 $wgHandheldForIPhone = false;
2535 * Allow user Javascript page?
2536 * This enables a lot of neat customizations, but may
2537 * increase security risk to users and server load.
2539 $wgAllowUserJs = false;
2542 * Allow user Cascading Style Sheets (CSS)?
2543 * This enables a lot of neat customizations, but may
2544 * increase security risk to users and server load.
2546 $wgAllowUserCss = false;
2549 * Allow user-preferences implemented in CSS?
2550 * This allows users to customise the site appearance to a greater
2551 * degree; disabling it will improve page load times.
2553 $wgAllowUserCssPrefs = true;
2555 /** Use the site's Javascript page? */
2556 $wgUseSiteJs = true;
2558 /** Use the site's Cascading Style Sheets (CSS)? */
2559 $wgUseSiteCss = true;
2562 * Break out of framesets. This can be used to prevent clickjacking attacks,
2563 * or to prevent external sites from framing your site with ads.
2565 $wgBreakFrames = false;
2568 * The X-Frame-Options header to send on pages sensitive to clickjacking
2569 * attacks, such as edit pages. This prevents those pages from being displayed
2570 * in a frame or iframe. The options are:
2572 * - 'DENY': Do not allow framing. This is recommended for most wikis.
2574 * - 'SAMEORIGIN': Allow framing by pages on the same domain. This can be used
2575 * to allow framing within a trusted domain. This is insecure if there
2576 * is a page on the same domain which allows framing of arbitrary URLs.
2578 * - false: Allow all framing. This opens up the wiki to XSS attacks and thus
2579 * full compromise of local user accounts. Private wikis behind a
2580 * corporate firewall are especially vulnerable. This is not
2581 * recommended.
2583 * For extra safety, set $wgBreakFrames = true, to prevent framing on all pages,
2584 * not just edit pages.
2586 $wgEditPageFrameOptions = 'DENY';
2589 * Disable output compression (enabled by default if zlib is available)
2591 $wgDisableOutputCompression = false;
2594 * Should we allow a broader set of characters in id attributes, per HTML5? If
2595 * not, use only HTML 4-compatible IDs. This option is for testing -- when the
2596 * functionality is ready, it will be on by default with no option.
2598 * Currently this appears to work fine in all browsers, but it's disabled by
2599 * default because it normalizes id's a bit too aggressively, breaking preexisting
2600 * content (particularly Cite). See bug 27733, bug 27694, bug 27474.
2602 $wgExperimentalHtmlIds = false;
2605 * Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code
2606 * You can add new icons to the built in copyright or poweredby, or you can create
2607 * a new block. Though note that you may need to add some custom css to get good styling
2608 * of new blocks in monobook. vector and modern should work without any special css.
2610 * $wgFooterIcons itself is a key/value array.
2611 * The key is the name of a block that the icons will be wrapped in. The final id varies
2612 * by skin; Monobook and Vector will turn poweredby into f-poweredbyico while Modern
2613 * turns it into mw_poweredby.
2614 * The value is either key/value array of icons or a string.
2615 * In the key/value array the key may or may not be used by the skin but it can
2616 * be used to find the icon and unset it or change the icon if needed.
2617 * This is useful for disabling icons that are set by extensions.
2618 * The value should be either a string or an array. If it is a string it will be output
2619 * directly as html, however some skins may choose to ignore it. An array is the preferred format
2620 * for the icon, the following keys are used:
2621 * - src: An absolute url to the image to use for the icon, this is recommended
2622 * but not required, however some skins will ignore icons without an image
2623 * - url: The url to use in the a element arround the text or icon, if not set an a element will not be outputted
2624 * - alt: This is the text form of the icon, it will be displayed without an image in
2625 * skins like Modern or if src is not set, and will otherwise be used as
2626 * the alt="" for the image. This key is required.
2627 * - width and height: If the icon specified by src is not of the standard size
2628 * you can specify the size of image to use with these keys.
2629 * Otherwise they will default to the standard 88x31.
2630 * @todo Reformat documentation.
2632 $wgFooterIcons = array(
2633 "copyright" => array(
2634 "copyright" => array(), // placeholder for the built in copyright icon
2636 "poweredby" => array(
2637 "mediawiki" => array(
2638 "src" => null, // Defaults to "$wgStylePath/common/images/poweredby_mediawiki_88x31.png"
2639 "url" => "//www.mediawiki.org/",
2640 "alt" => "Powered by MediaWiki",
2646 * Login / create account link behavior when it's possible for anonymous users
2647 * to create an account.
2648 * - true = use a combined login / create account link
2649 * - false = split login and create account into two separate links
2651 $wgUseCombinedLoginLink = true;
2654 * Search form behavior for Vector skin only.
2655 * - true = use an icon search button
2656 * - false = use Go & Search buttons
2658 $wgVectorUseSimpleSearch = false;
2661 * Watch and unwatch as an icon rather than a link for Vector skin only.
2662 * - true = use an icon watch/unwatch button
2663 * - false = use watch/unwatch text link
2665 $wgVectorUseIconWatch = false;
2668 * Display user edit counts in various prominent places.
2670 $wgEdititis = false;
2673 * Better directionality support (bug 6100 and related).
2674 * Removed in 1.18, still kept here for LiquidThreads backwards compatibility.
2676 * @deprecated since 1.18
2678 $wgBetterDirectionality = true;
2681 * Some web hosts attempt to rewrite all responses with a 404 (not found)
2682 * status code, mangling or hiding MediaWiki's output. If you are using such a
2683 * host, you should start looking for a better one. While you're doing that,
2684 * set this to false to convert some of MediaWiki's 404 responses to 200 so
2685 * that the generated error pages can be seen.
2687 * In cases where for technical reasons it is more important for MediaWiki to
2688 * send the correct status code than for the body to be transmitted intact,
2689 * this configuration variable is ignored.
2691 $wgSend404Code = true;
2693 /** @} */ # End of output format settings }
2695 /*************************************************************************//**
2696 * @name Resource loader settings
2697 * @{
2701 * Client-side resource modules.
2703 * Extensions should add their resource loader module definitions
2704 * to the $wgResourceModules variable.
2706 * @par Example:
2707 * @code
2708 * $wgResourceModules['ext.myExtension'] = array(
2709 * 'scripts' => 'myExtension.js',
2710 * 'styles' => 'myExtension.css',
2711 * 'dependencies' => array( 'jquery.cookie', 'jquery.tabIndex' ),
2712 * 'localBasePath' => dirname( __FILE__ ),
2713 * 'remoteExtPath' => 'MyExtension',
2714 * );
2715 * @endcode
2717 $wgResourceModules = array();
2720 * Extensions should register foreign module sources here. 'local' is a
2721 * built-in source that is not in this array, but defined by
2722 * ResourceLoader::__construct() so that it cannot be unset.
2724 * @par Example:
2725 * @code
2726 * $wgResourceLoaderSources['foo'] = array(
2727 * 'loadScript' => 'http://example.org/w/load.php',
2728 * 'apiScript' => 'http://example.org/w/api.php'
2729 * );
2730 * @endcode
2732 $wgResourceLoaderSources = array();
2735 * Default 'remoteBasePath' value for instances of ResourceLoaderFileModule.
2736 * If not set, then $wgScriptPath will be used as a fallback.
2738 $wgResourceBasePath = null;
2741 * Maximum time in seconds to cache resources served by the resource loader.
2743 * @todo Document array structure
2745 $wgResourceLoaderMaxage = array(
2746 'versioned' => array(
2747 // Squid/Varnish but also any other public proxy cache between the client and MediaWiki
2748 'server' => 30 * 24 * 60 * 60, // 30 days
2749 // On the client side (e.g. in the browser cache).
2750 'client' => 30 * 24 * 60 * 60, // 30 days
2752 'unversioned' => array(
2753 'server' => 5 * 60, // 5 minutes
2754 'client' => 5 * 60, // 5 minutes
2759 * The default debug mode (on/off) for of ResourceLoader requests.
2761 * This will still be overridden when the debug URL parameter is used.
2763 $wgResourceLoaderDebug = false;
2766 * Enable embedding of certain resources using Edge Side Includes. This will
2767 * improve performance but only works if there is something in front of the
2768 * web server (e..g a Squid or Varnish server) configured to process the ESI.
2770 $wgResourceLoaderUseESI = false;
2773 * Put each statement on its own line when minifying JavaScript. This makes
2774 * debugging in non-debug mode a bit easier.
2776 $wgResourceLoaderMinifierStatementsOnOwnLine = false;
2779 * Maximum line length when minifying JavaScript. This is not a hard maximum:
2780 * the minifier will try not to produce lines longer than this, but may be
2781 * forced to do so in certain cases.
2783 $wgResourceLoaderMinifierMaxLineLength = 1000;
2786 * Whether to include the mediawiki.legacy JS library (old wikibits.js), and its
2787 * dependencies.
2789 $wgIncludeLegacyJavaScript = true;
2792 * Whether to preload the mediawiki.util module as blocking module in the top
2793 * queue.
2795 * Before MediaWiki 1.19, modules used to load slower/less asynchronous which
2796 * allowed modules to lack dependencies on 'popular' modules that were likely
2797 * loaded already.
2799 * This setting is to aid scripts during migration by providing mediawiki.util
2800 * unconditionally (which was the most commonly missed dependency).
2801 * It doesn't cover all missing dependencies obviously but should fix most of
2802 * them.
2804 * This should be removed at some point after site/user scripts have been fixed.
2805 * Enable this if your wiki has a large amount of user/site scripts that are
2806 * lacking dependencies.
2807 * @todo Deprecate
2809 $wgPreloadJavaScriptMwUtil = false;
2812 * Whether or not to assign configuration variables to the global window object.
2814 * If this is set to false, old code using deprecated variables will no longer
2815 * work.
2817 * @par Example of legacy code:
2818 * @code{,js}
2819 * if ( window.wgRestrictionEdit ) { ... }
2820 * @endcode
2821 * or:
2822 * @code{,js}
2823 * if ( wgIsArticle ) { ... }
2824 * @endcode
2826 * Instead, one needs to use mw.config.
2827 * @par Example using mw.config global configuration:
2828 * @code{,js}
2829 * if ( mw.config.exists('wgRestrictionEdit') ) { ... }
2830 * @endcode
2831 * or:
2832 * @code{,js}
2833 * if ( mw.config.get('wgIsArticle') ) { ... }
2834 * @endcode
2836 $wgLegacyJavaScriptGlobals = true;
2839 * If set to a positive number, ResourceLoader will not generate URLs whose
2840 * query string is more than this many characters long, and will instead use
2841 * multiple requests with shorter query strings. This degrades performance,
2842 * but may be needed if your web server has a low (less than, say 1024)
2843 * query string length limit or a low value for suhosin.get.max_value_length
2844 * that you can't increase.
2846 * If set to a negative number, ResourceLoader will assume there is no query
2847 * string length limit.
2849 $wgResourceLoaderMaxQueryLength = -1;
2852 * If set to true, JavaScript modules loaded from wiki pages will be parsed
2853 * prior to minification to validate it.
2855 * Parse errors will result in a JS exception being thrown during module load,
2856 * which avoids breaking other modules loaded in the same request.
2858 $wgResourceLoaderValidateJS = true;
2861 * If set to true, statically-sourced (file-backed) JavaScript resources will
2862 * be parsed for validity before being bundled up into ResourceLoader modules.
2864 * This can be helpful for development by providing better error messages in
2865 * default (non-debug) mode, but JavaScript parsing is slow and memory hungry
2866 * and may fail on large pre-bundled frameworks.
2868 $wgResourceLoaderValidateStaticJS = false;
2871 * If set to true, asynchronous loading of bottom-queue scripts in the "<head>"
2872 * will be enabled. This is an experimental feature that's supposed to make
2873 * JavaScript load faster.
2875 $wgResourceLoaderExperimentalAsyncLoading = false;
2877 /** @} */ # End of resource loader settings }
2880 /*************************************************************************//**
2881 * @name Page title and interwiki link settings
2882 * @{
2886 * Name of the project namespace. If left set to false, $wgSitename will be
2887 * used instead.
2889 $wgMetaNamespace = false;
2892 * Name of the project talk namespace.
2894 * Normally you can ignore this and it will be something like
2895 * $wgMetaNamespace . "_talk". In some languages, you may want to set this
2896 * manually for grammatical reasons.
2898 $wgMetaNamespaceTalk = false;
2901 * Additional namespaces. If the namespaces defined in Language.php and
2902 * Namespace.php are insufficient, you can create new ones here, for example,
2903 * to import Help files in other languages. You can also override the namespace
2904 * names of existing namespaces. Extensions developers should use
2905 * $wgCanonicalNamespaceNames.
2907 * @warning Once you delete a namespace, the pages in that namespace will
2908 * no longer be accessible. If you rename it, then you can access them through
2909 * the new namespace name.
2911 * Custom namespaces should start at 100 to avoid conflicting with standard
2912 * namespaces, and should always follow the even/odd main/talk pattern.
2914 * @par Example:
2915 * @code
2916 * $wgExtraNamespaces = array(
2917 * 100 => "Hilfe",
2918 * 101 => "Hilfe_Diskussion",
2919 * 102 => "Aide",
2920 * 103 => "Discussion_Aide"
2921 * );
2922 * @endcode
2924 * @todo Add a note about maintenance/namespaceDupes.php
2926 $wgExtraNamespaces = array();
2929 * Same as above, but for namespaces with gender distinction.
2930 * Note: the default form for the namespace should also be set
2931 * using $wgExtraNamespaces for the same index.
2932 * @since 1.18
2934 $wgExtraGenderNamespaces = array();
2937 * Namespace aliases.
2939 * These are alternate names for the primary localised namespace names, which
2940 * are defined by $wgExtraNamespaces and the language file. If a page is
2941 * requested with such a prefix, the request will be redirected to the primary
2942 * name.
2944 * Set this to a map from namespace names to IDs.
2946 * @par Example:
2947 * @code
2948 * $wgNamespaceAliases = array(
2949 * 'Wikipedian' => NS_USER,
2950 * 'Help' => 100,
2951 * );
2952 * @endcode
2954 $wgNamespaceAliases = array();
2957 * Allowed title characters -- regex character class
2958 * Don't change this unless you know what you're doing
2960 * Problematic punctuation:
2961 * - []{}|# Are needed for link syntax, never enable these
2962 * - <> Causes problems with HTML escaping, don't use
2963 * - % Enabled by default, minor problems with path to query rewrite rules, see below
2964 * - + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
2965 * - ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
2967 * All three of these punctuation problems can be avoided by using an alias,
2968 * instead of a rewrite rule of either variety.
2970 * The problem with % is that when using a path to query rewrite rule, URLs are
2971 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
2972 * %253F, for example, becomes "?". Our code does not double-escape to compensate
2973 * for this, indeed double escaping would break if the double-escaped title was
2974 * passed in the query string rather than the path. This is a minor security issue
2975 * because articles can be created such that they are hard to view or edit.
2977 * In some rare cases you may wish to remove + for compatibility with old links.
2979 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
2980 * this breaks interlanguage links
2982 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
2985 * The interwiki prefix of the current wiki, or false if it doesn't have one.
2987 $wgLocalInterwiki = false;
2990 * Expiry time for cache of interwiki table
2992 $wgInterwikiExpiry = 10800;
2995 * @name Interwiki caching settings.
2996 * @{
2999 *$wgInterwikiCache specifies path to constant database file.
3001 * This cdb database is generated by dumpInterwiki from maintenance and has
3002 * such key formats:
3003 * - dbname:key - a simple key (e.g. enwiki:meta)
3004 * - _sitename:key - site-scope key (e.g. wiktionary:meta)
3005 * - __global:key - global-scope key (e.g. __global:meta)
3006 * - __sites:dbname - site mapping (e.g. __sites:enwiki)
3008 * Sites mapping just specifies site name, other keys provide "local url"
3009 * data layout.
3011 $wgInterwikiCache = false;
3013 * Specify number of domains to check for messages.
3014 * - 1: Just wiki(db)-level
3015 * - 2: wiki and global levels
3016 * - 3: site levels
3018 $wgInterwikiScopes = 3;
3020 * $wgInterwikiFallbackSite - if unable to resolve from cache
3022 $wgInterwikiFallbackSite = 'wiki';
3023 /** @} */ # end of Interwiki caching settings.
3026 * If local interwikis are set up which allow redirects,
3027 * set this regexp to restrict URLs which will be displayed
3028 * as 'redirected from' links.
3030 * @par Example:
3031 * It might look something like this:
3032 * @code
3033 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
3034 * @endcode
3036 * Leave at false to avoid displaying any incoming redirect markers.
3037 * This does not affect intra-wiki redirects, which don't change
3038 * the URL.
3040 $wgRedirectSources = false;
3043 * Set this to false to avoid forcing the first letter of links to capitals.
3045 * @warning may break links! This makes links COMPLETELY case-sensitive. Links
3046 * appearing with a capital at the beginning of a sentence will *not* go to the
3047 * same place as links in the middle of a sentence using a lowercase initial.
3049 $wgCapitalLinks = true;
3052 * @since 1.16 - This can now be set per-namespace. Some special namespaces (such
3053 * as Special, see MWNamespace::$alwaysCapitalizedNamespaces for the full list) must be
3054 * true by default (and setting them has no effect), due to various things that
3055 * require them to be so. Also, since Talk namespaces need to directly mirror their
3056 * associated content namespaces, the values for those are ignored in favor of the
3057 * subject namespace's setting. Setting for NS_MEDIA is taken automatically from
3058 * NS_FILE.
3060 * @par Example:
3061 * @code
3062 * $wgCapitalLinkOverrides[ NS_FILE ] = false;
3063 * @endcode
3065 $wgCapitalLinkOverrides = array();
3067 /** Which namespaces should support subpages?
3068 * See Language.php for a list of namespaces.
3070 $wgNamespacesWithSubpages = array(
3071 NS_TALK => true,
3072 NS_USER => true,
3073 NS_USER_TALK => true,
3074 NS_PROJECT_TALK => true,
3075 NS_FILE_TALK => true,
3076 NS_MEDIAWIKI => true,
3077 NS_MEDIAWIKI_TALK => true,
3078 NS_TEMPLATE_TALK => true,
3079 NS_HELP_TALK => true,
3080 NS_CATEGORY_TALK => true
3084 * Array of namespaces which can be deemed to contain valid "content", as far
3085 * as the site statistics are concerned. Useful if additional namespaces also
3086 * contain "content" which should be considered when generating a count of the
3087 * number of articles in the wiki.
3089 $wgContentNamespaces = array( NS_MAIN );
3092 * Max number of redirects to follow when resolving redirects.
3093 * 1 means only the first redirect is followed (default behavior).
3094 * 0 or less means no redirects are followed.
3096 $wgMaxRedirects = 1;
3099 * Array of invalid page redirect targets.
3100 * Attempting to create a redirect to any of the pages in this array
3101 * will make the redirect fail.
3102 * Userlogout is hard-coded, so it does not need to be listed here.
3103 * (bug 10569) Disallow Mypage and Mytalk as well.
3105 * As of now, this only checks special pages. Redirects to pages in
3106 * other namespaces cannot be invalidated by this variable.
3108 $wgInvalidRedirectTargets = array( 'Filepath', 'Mypage', 'Mytalk' );
3110 /** @} */ # End of title and interwiki settings }
3112 /************************************************************************//**
3113 * @name Parser settings
3114 * These settings configure the transformation from wikitext to HTML.
3115 * @{
3119 * Parser configuration. Associative array with the following members:
3121 * class The class name
3123 * preprocessorClass The preprocessor class. Two classes are currently available:
3124 * Preprocessor_Hash, which uses plain PHP arrays for tempoarary
3125 * storage, and Preprocessor_DOM, which uses the DOM module for
3126 * temporary storage. Preprocessor_DOM generally uses less memory;
3127 * the speed of the two is roughly the same.
3129 * If this parameter is not given, it uses Preprocessor_DOM if the
3130 * DOM module is available, otherwise it uses Preprocessor_Hash.
3132 * The entire associative array will be passed through to the constructor as
3133 * the first parameter. Note that only Setup.php can use this variable --
3134 * the configuration will change at runtime via $wgParser member functions, so
3135 * the contents of this variable will be out-of-date. The variable can only be
3136 * changed during LocalSettings.php, in particular, it can't be changed during
3137 * an extension setup function.
3139 $wgParserConf = array(
3140 'class' => 'Parser',
3141 #'preprocessorClass' => 'Preprocessor_Hash',
3144 /** Maximum indent level of toc. */
3145 $wgMaxTocLevel = 999;
3148 * A complexity limit on template expansion
3150 $wgMaxPPNodeCount = 1000000;
3153 * Maximum recursion depth for templates within templates.
3154 * The current parser adds two levels to the PHP call stack for each template,
3155 * and xdebug limits the call stack to 100 by default. So this should hopefully
3156 * stop the parser before it hits the xdebug limit.
3158 $wgMaxTemplateDepth = 40;
3160 /** @see $wgMaxTemplateDepth */
3161 $wgMaxPPExpandDepth = 40;
3163 /** The external URL protocols */
3164 $wgUrlProtocols = array(
3165 'http://',
3166 'https://',
3167 'ftp://',
3168 'irc://',
3169 'ircs://', // @bug 28503
3170 'gopher://',
3171 'telnet://', // Well if we're going to support the above.. -ævar
3172 'nntp://', // @bug 3808 RFC 1738
3173 'worldwind://',
3174 'mailto:',
3175 'news:',
3176 'svn://',
3177 'git://',
3178 'mms://',
3179 '//', // for protocol-relative URLs
3183 * If true, removes (substitutes) templates in "~~~~" signatures.
3185 $wgCleanSignatures = true;
3187 /** Whether to allow inline image pointing to other websites */
3188 $wgAllowExternalImages = false;
3191 * If the above is false, you can specify an exception here. Image URLs
3192 * that start with this string are then rendered, while all others are not.
3193 * You can use this to set up a trusted, simple repository of images.
3194 * You may also specify an array of strings to allow multiple sites
3196 * @par Examples:
3197 * @code
3198 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
3199 * $wgAllowExternalImagesFrom = array( 'http://127.0.0.1/', 'http://example.com' );
3200 * @endcode
3202 $wgAllowExternalImagesFrom = '';
3204 /** If $wgAllowExternalImages is false, you can allow an on-wiki
3205 * whitelist of regular expression fragments to match the image URL
3206 * against. If the image matches one of the regular expression fragments,
3207 * The image will be displayed.
3209 * Set this to true to enable the on-wiki whitelist (MediaWiki:External image whitelist)
3210 * Or false to disable it
3212 $wgEnableImageWhitelist = true;
3215 * A different approach to the above: simply allow the "<img>" tag to be used.
3216 * This allows you to specify alt text and other attributes, copy-paste HTML to
3217 * your wiki more easily, etc. However, allowing external images in any manner
3218 * will allow anyone with editing rights to snoop on your visitors' IP
3219 * addresses and so forth, if they wanted to, by inserting links to images on
3220 * sites they control.
3222 $wgAllowImageTag = false;
3225 * $wgUseTidy: use tidy to make sure HTML output is sane.
3226 * Tidy is a free tool that fixes broken HTML.
3227 * See http://www.w3.org/People/Raggett/tidy/
3229 * - $wgTidyBin should be set to the path of the binary and
3230 * - $wgTidyConf to the path of the configuration file.
3231 * - $wgTidyOpts can include any number of parameters.
3232 * - $wgTidyInternal controls the use of the PECL extension or the
3233 * libtidy (PHP >= 5) extension to use an in-process tidy library instead
3234 * of spawning a separate program.
3235 * Normally you shouldn't need to override the setting except for
3236 * debugging. To install, use 'pear install tidy' and add a line
3237 * 'extension=tidy.so' to php.ini.
3239 $wgUseTidy = false;
3240 /** @see $wgUseTidy */
3241 $wgAlwaysUseTidy = false;
3242 /** @see $wgUseTidy */
3243 $wgTidyBin = 'tidy';
3244 /** @see $wgUseTidy */
3245 $wgTidyConf = $IP.'/includes/tidy.conf';
3246 /** @see $wgUseTidy */
3247 $wgTidyOpts = '';
3248 /** @see $wgUseTidy */
3249 $wgTidyInternal = extension_loaded( 'tidy' );
3252 * Put tidy warnings in HTML comments
3253 * Only works for internal tidy.
3255 $wgDebugTidy = false;
3257 /** Allow raw, unchecked HTML in "<html>...</html>" sections.
3258 * THIS IS VERY DANGEROUS on a publicly editable site, so USE wgGroupPermissions
3259 * TO RESTRICT EDITING to only those that you trust
3261 $wgRawHtml = false;
3264 * Set a default target for external links, e.g. _blank to pop up a new window
3266 $wgExternalLinkTarget = false;
3269 * If true, external URL links in wiki text will be given the
3270 * rel="nofollow" attribute as a hint to search engines that
3271 * they should not be followed for ranking purposes as they
3272 * are user-supplied and thus subject to spamming.
3274 $wgNoFollowLinks = true;
3277 * Namespaces in which $wgNoFollowLinks doesn't apply.
3278 * See Language.php for a list of namespaces.
3280 $wgNoFollowNsExceptions = array();
3283 * If this is set to an array of domains, external links to these domain names
3284 * (or any subdomains) will not be set to rel="nofollow" regardless of the
3285 * value of $wgNoFollowLinks. For instance:
3287 * $wgNoFollowDomainExceptions = array( 'en.wikipedia.org', 'wiktionary.org' );
3289 * This would add rel="nofollow" to links to de.wikipedia.org, but not
3290 * en.wikipedia.org, wiktionary.org, en.wiktionary.org, us.en.wikipedia.org,
3291 * etc.
3293 $wgNoFollowDomainExceptions = array();
3296 * Allow DISPLAYTITLE to change title display
3298 $wgAllowDisplayTitle = true;
3301 * For consistency, restrict DISPLAYTITLE to titles that normalize to the same
3302 * canonical DB key.
3304 $wgRestrictDisplayTitle = true;
3307 * Maximum number of calls per parse to expensive parser functions such as
3308 * PAGESINCATEGORY.
3310 $wgExpensiveParserFunctionLimit = 100;
3313 * Preprocessor caching threshold
3314 * Setting it to 'false' will disable the preprocessor cache.
3316 $wgPreprocessorCacheThreshold = 1000;
3319 * Enable interwiki transcluding. Only when iw_trans=1.
3321 $wgEnableScaryTranscluding = false;
3324 * (see next option $wgGlobalDatabase).
3326 $wgTranscludeCacheExpiry = 3600;
3328 /** @} */ # end of parser settings }
3330 /************************************************************************//**
3331 * @name Statistics
3332 * @{
3336 * Method used to determine if a page in a content namespace should be counted
3337 * as a valid article.
3339 * Redirect pages will never be counted as valid articles.
3341 * This variable can have the following values:
3342 * - 'any': all pages as considered as valid articles
3343 * - 'comma': the page must contain a comma to be considered valid
3344 * - 'link': the page must contain a [[wiki link]] to be considered valid
3345 * - null: the value will be set at run time depending on $wgUseCommaCount:
3346 * if $wgUseCommaCount is false, it will be 'link', if it is true
3347 * it will be 'comma'
3349 * See also See http://www.mediawiki.org/wiki/Manual:Article_count
3351 * Retroactively changing this variable will not affect the existing count,
3352 * to update it, you will need to run the maintenance/updateArticleCount.php
3353 * script.
3355 $wgArticleCountMethod = null;
3358 * Backward compatibility setting, will set $wgArticleCountMethod if it is null.
3359 * @deprecated since 1.18; use $wgArticleCountMethod instead
3361 $wgUseCommaCount = false;
3364 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
3365 * values are easier on the database. A value of 1 causes the counters to be
3366 * updated on every hit, any higher value n cause them to update *on average*
3367 * every n hits. Should be set to either 1 or something largish, eg 1000, for
3368 * maximum efficiency.
3370 $wgHitcounterUpdateFreq = 1;
3373 * How many days user must be idle before he is considered inactive. Will affect
3374 * the number shown on Special:Statistics and Special:ActiveUsers special page.
3375 * You might want to leave this as the default value, to provide comparable
3376 * numbers between different wikis.
3378 $wgActiveUserDays = 30;
3380 /** @} */ # End of statistics }
3382 /************************************************************************//**
3383 * @name User accounts, authentication
3384 * @{
3387 /** For compatibility with old installations set to false */
3388 $wgPasswordSalt = true;
3391 * Specifies the minimal length of a user password. If set to 0, empty pass-
3392 * words are allowed.
3394 $wgMinimalPasswordLength = 1;
3397 * Whether to allow password resets ("enter some identifying data, and we'll send an email
3398 * with a temporary password you can use to get back into the account") identified by
3399 * various bits of data. Setting all of these to false (or the whole variable to false)
3400 * has the effect of disabling password resets entirely
3402 $wgPasswordResetRoutes = array(
3403 'username' => true,
3404 'email' => false,
3408 * Maximum number of Unicode characters in signature
3410 $wgMaxSigChars = 255;
3413 * Maximum number of bytes in username. You want to run the maintenance
3414 * script ./maintenance/checkUsernames.php once you have changed this value.
3416 $wgMaxNameChars = 255;
3419 * Array of usernames which may not be registered or logged in from
3420 * Maintenance scripts can still use these
3422 $wgReservedUsernames = array(
3423 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
3424 'Conversion script', // Used for the old Wikipedia software upgrade
3425 'Maintenance script', // Maintenance scripts which perform editing, image import script
3426 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
3427 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
3428 'msg:double-redirect-fixer', // Automatic double redirect fix
3429 'msg:usermessage-editor', // Default user for leaving user messages
3430 'msg:proxyblocker', // For Special:Blockme
3434 * Settings added to this array will override the default globals for the user
3435 * preferences used by anonymous visitors and newly created accounts.
3436 * For instance, to disable section editing links:
3437 * $wgDefaultUserOptions ['editsection'] = 0;
3440 $wgDefaultUserOptions = array(
3441 'ccmeonemails' => 0,
3442 'cols' => 80,
3443 'date' => 'default',
3444 'diffonly' => 0,
3445 'disablemail' => 0,
3446 'disablesuggest' => 0,
3447 'editfont' => 'default',
3448 'editondblclick' => 0,
3449 'editsection' => 1,
3450 'editsectiononrightclick' => 0,
3451 'enotifminoredits' => 0,
3452 'enotifrevealaddr' => 0,
3453 'enotifusertalkpages' => 1,
3454 'enotifwatchlistpages' => 0,
3455 'extendwatchlist' => 0,
3456 'externaldiff' => 0,
3457 'externaleditor' => 0,
3458 'fancysig' => 0,
3459 'forceeditsummary' => 0,
3460 'gender' => 'unknown',
3461 'hideminor' => 0,
3462 'hidepatrolled' => 0,
3463 'imagesize' => 2,
3464 'justify' => 0,
3465 'math' => 1,
3466 'minordefault' => 0,
3467 'newpageshidepatrolled' => 0,
3468 'nocache' => 0,
3469 'noconvertlink' => 0,
3470 'norollbackdiff' => 0,
3471 'numberheadings' => 0,
3472 'previewonfirst' => 0,
3473 'previewontop' => 1,
3474 'quickbar' => 5,
3475 'rcdays' => 7,
3476 'rclimit' => 50,
3477 'rememberpassword' => 0,
3478 'rows' => 25,
3479 'searchlimit' => 20,
3480 'showhiddencats' => 0,
3481 'showjumplinks' => 1,
3482 'shownumberswatching' => 1,
3483 'showtoc' => 1,
3484 'showtoolbar' => 1,
3485 'skin' => false,
3486 'stubthreshold' => 0,
3487 'thumbsize' => 2,
3488 'underline' => 2,
3489 'uselivepreview' => 0,
3490 'usenewrc' => 0,
3491 'watchcreations' => 0,
3492 'watchdefault' => 0,
3493 'watchdeletion' => 0,
3494 'watchlistdays' => 3.0,
3495 'watchlisthideanons' => 0,
3496 'watchlisthidebots' => 0,
3497 'watchlisthideliu' => 0,
3498 'watchlisthideminor' => 0,
3499 'watchlisthideown' => 0,
3500 'watchlisthidepatrolled' => 0,
3501 'watchmoves' => 0,
3502 'wllimit' => 250,
3506 * Whether or not to allow and use real name fields.
3507 * @deprecated since 1.16, use $wgHiddenPrefs[] = 'realname' below to disable real
3508 * names
3510 $wgAllowRealName = true;
3512 /** An array of preferences to not show for the user */
3513 $wgHiddenPrefs = array();
3516 * Characters to prevent during new account creations.
3517 * This is used in a regular expression character class during
3518 * registration (regex metacharacters like / are escaped).
3520 $wgInvalidUsernameCharacters = '@';
3523 * Character used as a delimiter when testing for interwiki userrights
3524 * (In Special:UserRights, it is possible to modify users on different
3525 * databases if the delimiter is used, e.g. "Someuser@enwiki").
3527 * It is recommended that you have this delimiter in
3528 * $wgInvalidUsernameCharacters above, or you will not be able to
3529 * modify the user rights of those users via Special:UserRights
3531 $wgUserrightsInterwikiDelimiter = '@';
3534 * Use some particular type of external authentication. The specific
3535 * authentication module you use will normally require some extra settings to
3536 * be specified.
3538 * null indicates no external authentication is to be used. Otherwise,
3539 * $wgExternalAuthType must be the name of a non-abstract class that extends
3540 * ExternalUser.
3542 * Core authentication modules can be found in includes/extauth/.
3544 $wgExternalAuthType = null;
3547 * Configuration for the external authentication. This may include arbitrary
3548 * keys that depend on the authentication mechanism. For instance,
3549 * authentication against another web app might require that the database login
3550 * info be provided. Check the file where your auth mechanism is defined for
3551 * info on what to put here.
3553 $wgExternalAuthConf = array();
3556 * When should we automatically create local accounts when external accounts
3557 * already exist, if using ExternalAuth? Can have three values: 'never',
3558 * 'login', 'view'. 'view' requires the external database to support cookies,
3559 * and implies 'login'.
3561 * TODO: Implement 'view' (currently behaves like 'login').
3563 $wgAutocreatePolicy = 'login';
3566 * Policies for how each preference is allowed to be changed, in the presence
3567 * of external authentication. The keys are preference keys, e.g., 'password'
3568 * or 'emailaddress' (see Preferences.php et al.). The value can be one of the
3569 * following:
3571 * - local: Allow changes to this pref through the wiki interface but only
3572 * apply them locally (default).
3573 * - semiglobal: Allow changes through the wiki interface and try to apply them
3574 * to the foreign database, but continue on anyway if that fails.
3575 * - global: Allow changes through the wiki interface, but only let them go
3576 * through if they successfully update the foreign database.
3577 * - message: Allow no local changes for linked accounts; replace the change
3578 * form with a message provided by the auth plugin, telling the user how to
3579 * change the setting externally (maybe providing a link, etc.). If the auth
3580 * plugin provides no message for this preference, hide it entirely.
3582 * Accounts that are not linked to an external account are never affected by
3583 * this setting. You may want to look at $wgHiddenPrefs instead.
3584 * $wgHiddenPrefs supersedes this option.
3586 * TODO: Implement message, global.
3588 $wgAllowPrefChange = array();
3591 * This is to let user authenticate using https when they come from http.
3592 * Based on an idea by George Herbert on wikitech-l:
3593 * http://lists.wikimedia.org/pipermail/wikitech-l/2010-October/050065.html
3594 * @since 1.17
3596 $wgSecureLogin = false;
3598 /** @} */ # end user accounts }
3600 /************************************************************************//**
3601 * @name User rights, access control and monitoring
3602 * @{
3606 * Number of seconds before autoblock entries expire. Default 86400 = 1 day.
3608 $wgAutoblockExpiry = 86400;
3611 * Set this to true to allow blocked users to edit their own user talk page.
3613 $wgBlockAllowsUTEdit = false;
3615 /** Allow sysops to ban users from accessing Emailuser */
3616 $wgSysopEmailBans = true;
3619 * Limits on the possible sizes of range blocks.
3621 * CIDR notation is hard to understand, it's easy to mistakenly assume that a
3622 * /1 is a small range and a /31 is a large range. For IPv4, setting a limit of
3623 * half the number of bits avoids such errors, and allows entire ISPs to be
3624 * blocked using a small number of range blocks.
3626 * For IPv6, RFC 3177 recommends that a /48 be allocated to every residential
3627 * customer, so range blocks larger than /64 (half the number of bits) will
3628 * plainly be required. RFC 4692 implies that a very large ISP may be
3629 * allocated a /19 if a generous HD-Ratio of 0.8 is used, so we will use that
3630 * as our limit. As of 2012, blocking the whole world would require a /4 range.
3632 $wgBlockCIDRLimit = array(
3633 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
3634 'IPv6' => 19,
3638 * If true, blocked users will not be allowed to login. When using this with
3639 * a public wiki, the effect of logging out blocked users may actually be
3640 * avers: unless the user's address is also blocked (e.g. auto-block),
3641 * logging the user out will again allow reading and editing, just as for
3642 * anonymous visitors.
3644 $wgBlockDisablesLogin = false;
3647 * Pages anonymous user may see, set as an array of pages titles.
3649 * @par Example:
3650 * @code
3651 * $wgWhitelistRead = array ( "Main Page", "Wikipedia:Help");
3652 * @endcode
3654 * Special:Userlogin and Special:ChangePassword are always whitelisted.
3656 * @note This will only work if $wgGroupPermissions['*']['read'] is false --
3657 * see below. Otherwise, ALL pages are accessible, regardless of this setting.
3659 * @note Also that this will only protect _pages in the wiki_. Uploaded files
3660 * will remain readable. You can use img_auth.php to protect uploaded files,
3661 * see http://www.mediawiki.org/wiki/Manual:Image_Authorization
3663 $wgWhitelistRead = false;
3666 * Should editors be required to have a validated e-mail
3667 * address before being allowed to edit?
3669 $wgEmailConfirmToEdit = false;
3672 * Permission keys given to users in each group.
3674 * This is an array where the keys are all groups and each value is an
3675 * array of the format (right => boolean).
3677 * The second format is used to support per-namespace permissions.
3678 * Note that this feature does not fully work for all permission types.
3680 * All users are implicitly in the '*' group including anonymous visitors;
3681 * logged-in users are all implicitly in the 'user' group. These will be
3682 * combined with the permissions of all groups that a given user is listed
3683 * in in the user_groups table.
3685 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
3686 * doing! This will wipe all permissions, and may mean that your users are
3687 * unable to perform certain essential tasks or access new functionality
3688 * when new permissions are introduced and default grants established.
3690 * Functionality to make pages inaccessible has not been extensively tested
3691 * for security. Use at your own risk!
3693 * This replaces $wgWhitelistAccount and $wgWhitelistEdit
3695 $wgGroupPermissions = array();
3697 /** @cond file_level_code */
3698 // Implicit group for all visitors
3699 $wgGroupPermissions['*']['createaccount'] = true;
3700 $wgGroupPermissions['*']['read'] = true;
3701 $wgGroupPermissions['*']['edit'] = true;
3702 $wgGroupPermissions['*']['createpage'] = true;
3703 $wgGroupPermissions['*']['createtalk'] = true;
3704 $wgGroupPermissions['*']['writeapi'] = true;
3705 //$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
3707 // Implicit group for all logged-in accounts
3708 $wgGroupPermissions['user']['move'] = true;
3709 $wgGroupPermissions['user']['move-subpages'] = true;
3710 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
3711 $wgGroupPermissions['user']['movefile'] = true;
3712 $wgGroupPermissions['user']['read'] = true;
3713 $wgGroupPermissions['user']['edit'] = true;
3714 $wgGroupPermissions['user']['createpage'] = true;
3715 $wgGroupPermissions['user']['createtalk'] = true;
3716 $wgGroupPermissions['user']['writeapi'] = true;
3717 $wgGroupPermissions['user']['upload'] = true;
3718 $wgGroupPermissions['user']['reupload'] = true;
3719 $wgGroupPermissions['user']['reupload-shared'] = true;
3720 $wgGroupPermissions['user']['minoredit'] = true;
3721 $wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok"
3722 $wgGroupPermissions['user']['sendemail'] = true;
3724 // Implicit group for accounts that pass $wgAutoConfirmAge
3725 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
3727 // Users with bot privilege can have their edits hidden
3728 // from various log pages by default
3729 $wgGroupPermissions['bot']['bot'] = true;
3730 $wgGroupPermissions['bot']['autoconfirmed'] = true;
3731 $wgGroupPermissions['bot']['nominornewtalk'] = true;
3732 $wgGroupPermissions['bot']['autopatrol'] = true;
3733 $wgGroupPermissions['bot']['suppressredirect'] = true;
3734 $wgGroupPermissions['bot']['apihighlimits'] = true;
3735 $wgGroupPermissions['bot']['writeapi'] = true;
3736 #$wgGroupPermissions['bot']['editprotected'] = true; // can edit all protected pages without cascade protection enabled
3738 // Most extra permission abilities go to this group
3739 $wgGroupPermissions['sysop']['block'] = true;
3740 $wgGroupPermissions['sysop']['createaccount'] = true;
3741 $wgGroupPermissions['sysop']['delete'] = true;
3742 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
3743 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
3744 $wgGroupPermissions['sysop']['deletedtext'] = true; // can view deleted revision text
3745 $wgGroupPermissions['sysop']['undelete'] = true;
3746 $wgGroupPermissions['sysop']['editinterface'] = true;
3747 $wgGroupPermissions['sysop']['editusercss'] = true;
3748 $wgGroupPermissions['sysop']['edituserjs'] = true;
3749 $wgGroupPermissions['sysop']['import'] = true;
3750 $wgGroupPermissions['sysop']['importupload'] = true;
3751 $wgGroupPermissions['sysop']['move'] = true;
3752 $wgGroupPermissions['sysop']['move-subpages'] = true;
3753 $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
3754 $wgGroupPermissions['sysop']['patrol'] = true;
3755 $wgGroupPermissions['sysop']['autopatrol'] = true;
3756 $wgGroupPermissions['sysop']['protect'] = true;
3757 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
3758 $wgGroupPermissions['sysop']['rollback'] = true;
3759 $wgGroupPermissions['sysop']['upload'] = true;
3760 $wgGroupPermissions['sysop']['reupload'] = true;
3761 $wgGroupPermissions['sysop']['reupload-shared'] = true;
3762 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
3763 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
3764 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
3765 $wgGroupPermissions['sysop']['blockemail'] = true;
3766 $wgGroupPermissions['sysop']['markbotedits'] = true;
3767 $wgGroupPermissions['sysop']['apihighlimits'] = true;
3768 $wgGroupPermissions['sysop']['browsearchive'] = true;
3769 $wgGroupPermissions['sysop']['noratelimit'] = true;
3770 $wgGroupPermissions['sysop']['movefile'] = true;
3771 $wgGroupPermissions['sysop']['unblockself'] = true;
3772 $wgGroupPermissions['sysop']['suppressredirect'] = true;
3773 #$wgGroupPermissions['sysop']['upload_by_url'] = true;
3774 #$wgGroupPermissions['sysop']['mergehistory'] = true;
3776 // Permission to change users' group assignments
3777 $wgGroupPermissions['bureaucrat']['userrights'] = true;
3778 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
3779 // Permission to change users' groups assignments across wikis
3780 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
3781 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
3782 #$wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
3784 #$wgGroupPermissions['sysop']['deleterevision'] = true;
3785 // To hide usernames from users and Sysops
3786 #$wgGroupPermissions['suppress']['hideuser'] = true;
3787 // To hide revisions/log items from users and Sysops
3788 #$wgGroupPermissions['suppress']['suppressrevision'] = true;
3789 // For private suppression log access
3790 #$wgGroupPermissions['suppress']['suppressionlog'] = true;
3793 * The developer group is deprecated, but can be activated if need be
3794 * to use the 'lockdb' and 'unlockdb' special pages. Those require
3795 * that a lock file be defined and creatable/removable by the web
3796 * server.
3798 # $wgGroupPermissions['developer']['siteadmin'] = true;
3800 /** @endcond */
3803 * Permission keys revoked from users in each group.
3805 * This acts the same way as wgGroupPermissions above, except that
3806 * if the user is in a group here, the permission will be removed from them.
3808 * Improperly setting this could mean that your users will be unable to perform
3809 * certain essential tasks, so use at your own risk!
3811 $wgRevokePermissions = array();
3814 * Implicit groups, aren't shown on Special:Listusers or somewhere else
3816 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
3819 * A map of group names that the user is in, to group names that those users
3820 * are allowed to add or revoke.
3822 * Setting the list of groups to add or revoke to true is equivalent to "any
3823 * group".
3825 * @par Example:
3826 * To allow sysops to add themselves to the "bot" group:
3827 * @code
3828 * $wgGroupsAddToSelf = array( 'sysop' => array( 'bot' ) );
3829 * @endcode
3831 * @par Example:
3832 * Implicit groups may be used for the source group, for instance:
3833 * @code
3834 * $wgGroupsRemoveFromSelf = array( '*' => true );
3835 * @endcode
3836 * This allows users in the '*' group (i.e. any user) to remove themselves from
3837 * any group that they happen to be in.
3840 $wgGroupsAddToSelf = array();
3842 /** @see $wgGroupsAddToSelf */
3843 $wgGroupsRemoveFromSelf = array();
3846 * Set of available actions that can be restricted via action=protect
3847 * You probably shouldn't change this.
3848 * Translated through restriction-* messages.
3849 * Title::getRestrictionTypes() will remove restrictions that are not
3850 * applicable to a specific title (create and upload)
3852 $wgRestrictionTypes = array( 'create', 'edit', 'move', 'upload' );
3855 * Rights which can be required for each protection level (via action=protect)
3857 * You can add a new protection level that requires a specific
3858 * permission by manipulating this array. The ordering of elements
3859 * dictates the order on the protection form's lists.
3861 * - '' will be ignored (i.e. unprotected)
3862 * - 'sysop' is quietly rewritten to 'protect' for backwards compatibility
3864 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
3867 * Set the minimum permissions required to edit pages in each
3868 * namespace. If you list more than one permission, a user must
3869 * have all of them to edit pages in that namespace.
3871 * @note NS_MEDIAWIKI is implicitly restricted to 'editinterface'.
3873 $wgNamespaceProtection = array();
3876 * Pages in namespaces in this array can not be used as templates.
3878 * Elements MUST be numeric namespace ids, you can safely use the MediaWiki
3879 * namespaces constants (NS_USER, NS_MAIN...).
3881 * Among other things, this may be useful to enforce read-restrictions
3882 * which may otherwise be bypassed by using the template machanism.
3884 $wgNonincludableNamespaces = array();
3887 * Number of seconds an account is required to age before it's given the
3888 * implicit 'autoconfirm' group membership. This can be used to limit
3889 * privileges of new accounts.
3891 * Accounts created by earlier versions of the software may not have a
3892 * recorded creation date, and will always be considered to pass the age test.
3894 * When left at 0, all registered accounts will pass.
3896 * @par Example:
3897 * Set automatic confirmation to 10 minutes (which is 600 seconds):
3898 * @code
3899 * $wgAutoConfirmAge = 600; // ten minutes
3900 * @endcode
3901 * Set age to one day:
3902 * @code
3903 * $wgAutoConfirmAge = 3600*24; // one day
3904 * @endcode
3906 $wgAutoConfirmAge = 0;
3909 * Number of edits an account requires before it is autoconfirmed.
3910 * Passing both this AND the time requirement is needed. Example:
3912 * @par Example:
3913 * @code
3914 * $wgAutoConfirmCount = 50;
3915 * @endcode
3917 $wgAutoConfirmCount = 0;
3920 * Automatically add a usergroup to any user who matches certain conditions.
3922 * @todo Redocument $wgAutopromote
3924 * The format is
3925 * array( '&' or '|' or '^' or '!', cond1, cond2, ... )
3926 * where cond1, cond2, ... are themselves conditions; *OR*
3927 * APCOND_EMAILCONFIRMED, *OR*
3928 * array( APCOND_EMAILCONFIRMED ), *OR*
3929 * array( APCOND_EDITCOUNT, number of edits ), *OR*
3930 * array( APCOND_AGE, seconds since registration ), *OR*
3931 * array( APCOND_INGROUPS, group1, group2, ... ), *OR*
3932 * array( APCOND_ISIP, ip ), *OR*
3933 * array( APCOND_IPINRANGE, range ), *OR*
3934 * array( APCOND_AGE_FROM_EDIT, seconds since first edit ), *OR*
3935 * array( APCOND_BLOCKED ), *OR*
3936 * array( APCOND_ISBOT ), *OR*
3937 * similar constructs defined by extensions.
3939 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
3940 * user who has provided an e-mail address.
3942 $wgAutopromote = array(
3943 'autoconfirmed' => array( '&',
3944 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ),
3945 array( APCOND_AGE, &$wgAutoConfirmAge ),
3950 * Automatically add a usergroup to any user who matches certain conditions.
3952 * Does not add the user to the group again if it has been removed.
3953 * Also, does not remove the group if the user no longer meets the criteria.
3955 * The format is:
3956 * @code
3957 * array( event => criteria, ... )
3958 * @endcode
3959 * Where event is either:
3960 * - 'onEdit' (when user edits)
3961 * - 'onView' (when user views the wiki)
3963 * Criteria has the same format as $wgAutopromote
3965 * @see $wgAutopromote
3966 * @since 1.18
3968 $wgAutopromoteOnce = array(
3969 'onEdit' => array(),
3970 'onView' => array()
3974 * Put user rights log entries for autopromotion in recent changes?
3975 * @since 1.18
3977 $wgAutopromoteOnceLogInRC = true;
3980 * $wgAddGroups and $wgRemoveGroups can be used to give finer control over who
3981 * can assign which groups at Special:Userrights.
3983 * @par Example:
3984 * Bureaucrats can add any group:
3985 * @code
3986 * $wgAddGroups['bureaucrat'] = true;
3987 * @endcode
3988 * Bureaucrats can only remove bots and sysops:
3989 * @code
3990 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
3991 * @endcode
3992 * Sysops can make bots:
3993 * @code
3994 * $wgAddGroups['sysop'] = array( 'bot' );
3995 * @endcode
3996 * Sysops can disable other sysops in an emergency, and disable bots:
3997 * @code
3998 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
3999 * @endcode
4001 $wgAddGroups = array();
4002 /** @see $wgAddGroups */
4003 $wgRemoveGroups = array();
4006 * A list of available rights, in addition to the ones defined by the core.
4007 * For extensions only.
4009 $wgAvailableRights = array();
4012 * Optional to restrict deletion of pages with higher revision counts
4013 * to users with the 'bigdelete' permission. (Default given to sysops.)
4015 $wgDeleteRevisionsLimit = 0;
4018 * Number of accounts each IP address may create, 0 to disable.
4020 * @warning Requires memcached */
4021 $wgAccountCreationThrottle = 0;
4024 * Edits matching these regular expressions in body text
4025 * will be recognised as spam and rejected automatically.
4027 * There's no administrator override on-wiki, so be careful what you set. :)
4028 * May be an array of regexes or a single string for backwards compatibility.
4030 * @see http://en.wikipedia.org/wiki/Regular_expression
4032 * @note Each regex needs a beginning/end delimiter, eg: # or /
4034 $wgSpamRegex = array();
4036 /** Same as the above except for edit summaries */
4037 $wgSummarySpamRegex = array();
4040 * Whether to use DNS blacklists in $wgDnsBlacklistUrls to check for open
4041 * proxies
4042 * @since 1.16
4044 $wgEnableDnsBlacklist = false;
4047 * @deprecated since 1.17 Use $wgEnableDnsBlacklist instead, only kept for
4048 * backward compatibility.
4050 $wgEnableSorbs = false;
4053 * List of DNS blacklists to use, if $wgEnableDnsBlacklist is true.
4055 * This is an array of either a URL or an array with the URL and a key (should
4056 * the blacklist require a key).
4058 * @par Example:
4059 * @code
4060 * $wgDnsBlacklistUrls = array(
4061 * // String containing URL
4062 * 'http.dnsbl.sorbs.net.',
4063 * // Array with URL and key, for services that require a key
4064 * array( 'dnsbl.httpbl.net.', 'mykey' ),
4065 * // Array with just the URL. While this works, it is recommended that you
4066 * // just use a string as shown above
4067 * array( 'opm.tornevall.org.' )
4068 * );
4069 * @endcode
4071 * @note You should end the domain name with a . to avoid searching your
4072 * eventual domain search suffixes.
4073 * @since 1.16
4075 $wgDnsBlacklistUrls = array( 'http.dnsbl.sorbs.net.' );
4078 * @deprecated since 1.17 Use $wgDnsBlacklistUrls instead, only kept for
4079 * backward compatibility.
4081 $wgSorbsUrl = array();
4084 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite
4085 * what the other methods might say.
4087 $wgProxyWhitelist = array();
4090 * Simple rate limiter options to brake edit floods.
4092 * Maximum number actions allowed in the given number of seconds; after that
4093 * the violating client receives HTTP 500 error pages until the period
4094 * elapses.
4096 * @par Example:
4097 * To set a generic maximum of 4 hits in 60 seconds:
4098 * @code
4099 * $wgRateLimits = array( 4, 60 );
4100 * @endcode
4102 * You could also limit per action and then type of users. See the inline
4103 * code for a template to use.
4105 * This option set is experimental and likely to change.
4107 * @warning Requires memcached.
4109 $wgRateLimits = array(
4110 'edit' => array(
4111 'anon' => null, // for any and all anonymous edits (aggregate)
4112 'user' => null, // for each logged-in user
4113 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
4114 'ip' => null, // for each anon and recent account
4115 'subnet' => null, // ... with final octet removed
4117 'move' => array(
4118 'user' => null,
4119 'newbie' => null,
4120 'ip' => null,
4121 'subnet' => null,
4123 'mailpassword' => array(
4124 'anon' => null,
4126 'emailuser' => array(
4127 'user' => null,
4132 * Set to a filename to log rate limiter hits.
4134 $wgRateLimitLog = null;
4137 * Array of IPs which should be excluded from rate limits.
4138 * This may be useful for whitelisting NAT gateways for conferences, etc.
4140 $wgRateLimitsExcludedIPs = array();
4143 * Log IP addresses in the recentchanges table; can be accessed only by
4144 * extensions (e.g. CheckUser) or a DB admin
4146 $wgPutIPinRC = true;
4149 * Integer defining default number of entries to show on
4150 * special pages which are query-pages such as Special:Whatlinkshere.
4152 $wgQueryPageDefaultLimit = 50;
4155 * Limit password attempts to X attempts per Y seconds per IP per account.
4157 * @warning Requires memcached.
4159 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 );
4161 /** @} */ # end of user rights settings
4163 /************************************************************************//**
4164 * @name Proxy scanner settings
4165 * @{
4169 * If you enable this, every editor's IP address will be scanned for open HTTP
4170 * proxies.
4172 * @warning Don't enable this. Many sysops will report "hostile TCP port scans"
4173 * to your ISP and ask for your server to be shut down.
4174 * You have been warned.
4177 $wgBlockOpenProxies = false;
4178 /** Port we want to scan for a proxy */
4179 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
4180 /** Script used to scan */
4181 $wgProxyScriptPath = "$IP/maintenance/proxy_check.php";
4182 /** */
4183 $wgProxyMemcExpiry = 86400;
4184 /** This should always be customised in LocalSettings.php */
4185 $wgSecretKey = false;
4186 /** big list of banned IP addresses, in the keys not the values */
4187 $wgProxyList = array();
4188 /** deprecated */
4189 $wgProxyKey = false;
4191 /** @} */ # end of proxy scanner settings
4193 /************************************************************************//**
4194 * @name Cookie settings
4195 * @{
4199 * Default cookie expiration time. Setting to 0 makes all cookies session-only.
4201 $wgCookieExpiration = 180*86400;
4204 * Set to set an explicit domain on the login cookies eg, "justthis.domain.org"
4205 * or ".any.subdomain.net"
4207 $wgCookieDomain = '';
4211 * Set this variable if you want to restrict cookies to a certain path within
4212 * the domain specified by $wgCookieDomain.
4214 $wgCookiePath = '/';
4217 * Whether the "secure" flag should be set on the cookie. This can be:
4218 * - true: Set secure flag
4219 * - false: Don't set secure flag
4220 * - "detect": Set the secure flag if $wgServer is set to an HTTPS URL
4222 $wgCookieSecure = 'detect';
4225 * By default, MediaWiki checks if the client supports cookies during the
4226 * login process, so that it can display an informative error message if
4227 * cookies are disabled. Set this to true if you want to disable this cookie
4228 * check.
4230 $wgDisableCookieCheck = false;
4233 * Cookies generated by MediaWiki have names starting with this prefix. Set it
4234 * to a string to use a custom prefix. Setting it to false causes the database
4235 * name to be used as a prefix.
4237 $wgCookiePrefix = false;
4240 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
4241 * in browsers that support this feature. This can mitigates some classes of
4242 * XSS attack.
4244 $wgCookieHttpOnly = true;
4247 * If the requesting browser matches a regex in this blacklist, we won't
4248 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
4250 $wgHttpOnlyBlacklist = array(
4251 // Internet Explorer for Mac; sometimes the cookies work, sometimes
4252 // they don't. It's difficult to predict, as combinations of path
4253 // and expiration options affect its parsing.
4254 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
4257 /** A list of cookies that vary the cache (for use by extensions) */
4258 $wgCacheVaryCookies = array();
4260 /** Override to customise the session name */
4261 $wgSessionName = false;
4263 /** @} */ # end of cookie settings }
4265 /************************************************************************//**
4266 * @name LaTeX (mathematical formulas)
4267 * @{
4271 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
4272 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
4273 * (ImageMagick) installed and available in the PATH.
4274 * Please see math/README for more information.
4276 $wgUseTeX = false;
4278 /* @} */ # end LaTeX }
4280 /************************************************************************//**
4281 * @name Profiling, testing and debugging
4283 * To enable profiling, edit StartProfiler.php
4285 * @{
4289 * Filename for debug logging. See http://www.mediawiki.org/wiki/How_to_debug
4290 * The debug log file should be not be publicly accessible if it is used, as it
4291 * may contain private data.
4293 $wgDebugLogFile = '';
4296 * Prefix for debug log lines
4298 $wgDebugLogPrefix = '';
4301 * If true, instead of redirecting, show a page with a link to the redirect
4302 * destination. This allows for the inspection of PHP error messages, and easy
4303 * resubmission of form data. For developer use only.
4305 $wgDebugRedirects = false;
4308 * If true, log debugging data from action=raw and load.php.
4309 * This is normally false to avoid overlapping debug entries due to gen=css
4310 * and gen=js requests.
4312 $wgDebugRawPage = false;
4315 * Send debug data to an HTML comment in the output.
4317 * This may occasionally be useful when supporting a non-technical end-user.
4318 * It's more secure than exposing the debug log file to the web, since the
4319 * output only contains private data for the current user. But it's not ideal
4320 * for development use since data is lost on fatal errors and redirects.
4322 $wgDebugComments = false;
4325 * Extensive database transaction state debugging
4327 $wgDebugDBTransactions = false;
4330 * Write SQL queries to the debug log
4332 $wgDebugDumpSql = false;
4335 * Set to an array of log group keys to filenames.
4336 * If set, wfDebugLog() output for that group will go to that file instead
4337 * of the regular $wgDebugLogFile. Useful for enabling selective logging
4338 * in production.
4340 $wgDebugLogGroups = array();
4343 * Display debug data at the bottom of the main content area.
4345 * Useful for developers and technical users trying to working on a closed wiki.
4347 $wgShowDebug = false;
4350 * Prefix debug messages with relative timestamp. Very-poor man's profiler.
4351 * Since 1.19 also includes memory usage.
4353 $wgDebugTimestamps = false;
4356 * Print HTTP headers for every request in the debug information.
4358 $wgDebugPrintHttpHeaders = true;
4361 * Show the contents of $wgHooks in Special:Version
4363 $wgSpecialVersionShowHooks = false;
4366 * Whether to show "we're sorry, but there has been a database error" pages.
4367 * Displaying errors aids in debugging, but may display information useful
4368 * to an attacker.
4370 $wgShowSQLErrors = false;
4373 * If set to true, uncaught exceptions will print a complete stack trace
4374 * to output. This should only be used for debugging, as it may reveal
4375 * private information in function parameters due to PHP's backtrace
4376 * formatting.
4378 $wgShowExceptionDetails = false;
4381 * If true, show a backtrace for database errors
4383 $wgShowDBErrorBacktrace = false;
4386 * If true, send the exception backtrace to the error log
4388 $wgLogExceptionBacktrace = true;
4391 * Expose backend server host names through the API and various HTML comments
4393 $wgShowHostnames = false;
4396 * Override server hostname detection with a hardcoded value.
4397 * Should be a string, default false.
4398 * @since 1.20
4400 $wgOverrideHostname = false;
4403 * If set to true MediaWiki will throw notices for some possible error
4404 * conditions and for deprecated functions.
4406 $wgDevelopmentWarnings = false;
4409 * Release limitation to wfDeprecated warnings, if set to a release number
4410 * development warnings will not be generated for deprecations added in releases
4411 * after the limit.
4413 $wgDeprecationReleaseLimit = false;
4415 /** Only record profiling info for pages that took longer than this */
4416 $wgProfileLimit = 0.0;
4418 /** Don't put non-profiling info into log file */
4419 $wgProfileOnly = false;
4422 * Log sums from profiling into "profiling" table in db.
4424 * You have to create a 'profiling' table in your database before using
4425 * this feature, see maintenance/archives/patch-profiling.sql
4427 * To enable profiling, edit StartProfiler.php
4429 $wgProfileToDatabase = false;
4431 /** If true, print a raw call tree instead of per-function report */
4432 $wgProfileCallTree = false;
4434 /** Should application server host be put into profiling table */
4435 $wgProfilePerHost = false;
4438 * Host for UDP profiler.
4440 * The host should be running a daemon which can be obtained from MediaWiki
4441 * Subversion at: http://svn.wikimedia.org/svnroot/mediawiki/trunk/udpprofile
4443 $wgUDPProfilerHost = '127.0.0.1';
4446 * Port for UDP profiler.
4447 * @see $wgUDPProfilerHost
4449 $wgUDPProfilerPort = '3811';
4451 /** Detects non-matching wfProfileIn/wfProfileOut calls */
4452 $wgDebugProfiling = false;
4454 /** Output debug message on every wfProfileIn/wfProfileOut */
4455 $wgDebugFunctionEntry = false;
4458 * Destination for wfIncrStats() data...
4459 * 'cache' to go into the system cache, if enabled (memcached)
4460 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
4461 * false to disable
4463 $wgStatsMethod = 'cache';
4466 * When $wgStatsMethod is 'udp', setting this to a string allows statistics to
4467 * be aggregated over more than one wiki. The string will be used in place of
4468 * the DB name in outgoing UDP packets. If this is set to false, the DB name
4469 * will be used.
4471 $wgAggregateStatsID = false;
4473 /** Whereas to count the number of time an article is viewed.
4474 * Does not work if pages are cached (for example with squid).
4476 $wgDisableCounters = false;
4479 * Set this to an integer to only do synchronous site_stats updates
4480 * one every *this many* updates. The other requests go into pending
4481 * delta values in $wgMemc. Make sure that $wgMemc is a global cache.
4482 * If set to -1, updates *only* go to $wgMemc (useful for daemons).
4484 $wgSiteStatsAsyncFactor = false;
4487 * Parser test suite files to be run by parserTests.php when no specific
4488 * filename is passed to it.
4490 * Extensions may add their own tests to this array, or site-local tests
4491 * may be added via LocalSettings.php
4493 * Use full paths.
4495 $wgParserTestFiles = array(
4496 "$IP/tests/parser/parserTests.txt",
4497 "$IP/tests/parser/extraParserTests.txt"
4501 * If configured, specifies target CodeReview installation to send test
4502 * result data from 'parserTests.php --upload'
4504 * Something like this:
4505 * $wgParserTestRemote = array(
4506 * 'api-url' => 'http://www.mediawiki.org/w/api.php',
4507 * 'repo' => 'MediaWiki',
4508 * 'suite' => 'ParserTests',
4509 * 'path' => '/trunk/phase3', // not used client-side; for reference
4510 * 'secret' => 'qmoicj3mc4mcklmqw', // Shared secret used in HMAC validation
4511 * );
4513 $wgParserTestRemote = false;
4516 * Allow running of javascript test suites via [[Special:JavaScriptTest]] (such as QUnit).
4518 $wgEnableJavaScriptTest = false;
4521 * Configuration for javascript testing.
4523 $wgJavaScriptTestConfig = array(
4524 'qunit' => array(
4525 // Page where documentation can be found relevant to the QUnit test suite being ran.
4526 // Used in the intro paragraph on [[Special:JavaScriptTest/qunit]] for the
4527 // documentation link in the "javascripttest-qunit-intro" message.
4528 'documentation' => '//www.mediawiki.org/wiki/Manual:JavaScript_unit_testing',
4529 // If you are submitting the QUnit test suite to a TestSwarm instance,
4530 // point this to the "inject.js" script of that instance. This is was registers
4531 // the QUnit hooks to extract the test results and push them back up into the
4532 // TestSwarm database.
4533 // @example 'http://localhost/testswarm/js/inject.js'
4534 // @example '//integration.mediawiki.org/testswarm/js/inject.js'
4535 'testswarm-injectjs' => false,
4541 * Overwrite the caching key prefix with custom value.
4542 * @since 1.19
4544 $wgCachePrefix = false;
4547 * Display the new debugging toolbar. This also enables profiling on database
4548 * queries and other useful output.
4549 * Will disable file cache.
4551 * @since 1.19
4553 $wgDebugToolbar = false;
4555 /** @} */ # end of profiling, testing and debugging }
4557 /************************************************************************//**
4558 * @name Search
4559 * @{
4563 * Set this to true to disable the full text search feature.
4565 $wgDisableTextSearch = false;
4568 * Set to true to have nicer highligted text in search results,
4569 * by default off due to execution overhead
4571 $wgAdvancedSearchHighlighting = false;
4574 * Regexp to match word boundaries, defaults for non-CJK languages
4575 * should be empty for CJK since the words are not separate
4577 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
4580 * Set to true to have the search engine count total
4581 * search matches to present in the Special:Search UI.
4582 * Not supported by every search engine shipped with MW.
4584 * This could however be slow on larger wikis, and is pretty flaky
4585 * with the current title vs content split. Recommend avoiding until
4586 * that's been worked out cleanly; but this may aid in testing the
4587 * search UI and API to confirm that the result count works.
4589 $wgCountTotalSearchHits = false;
4592 * Template for OpenSearch suggestions, defaults to API action=opensearch
4594 * Sites with heavy load would tipically have these point to a custom
4595 * PHP wrapper to avoid firing up mediawiki for every keystroke
4597 * Placeholders: {searchTerms}
4600 $wgOpenSearchTemplate = false;
4603 * Enable suggestions while typing in search boxes
4604 * (results are passed around in OpenSearch format)
4605 * Requires $wgEnableOpenSearchSuggest = true;
4607 $wgEnableMWSuggest = false;
4610 * Enable OpenSearch suggestions requested by MediaWiki. Set this to
4611 * false if you've disabled MWSuggest or another suggestion script and
4612 * want reduce load caused by cached scripts pulling suggestions.
4614 $wgEnableOpenSearchSuggest = true;
4617 * Expiry time for search suggestion responses
4619 $wgSearchSuggestCacheExpiry = 1200;
4622 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
4624 * Placeholders: {searchTerms}, {namespaces}, {dbname}
4627 $wgMWSuggestTemplate = false;
4630 * If you've disabled search semi-permanently, this also disables updates to the
4631 * table. If you ever re-enable, be sure to rebuild the search table.
4633 $wgDisableSearchUpdate = false;
4636 * List of namespaces which are searched by default.
4638 * @par Example:
4639 * @code
4640 * $wgNamespacesToBeSearchedDefault[NS_MAIN] = true;
4641 * $wgNamespacesToBeSearchedDefault[NS_PROJECT] = true;
4642 * @endcode
4644 $wgNamespacesToBeSearchedDefault = array(
4645 NS_MAIN => true,
4649 * Namespaces to be searched when user clicks the "Help" tab
4650 * on Special:Search.
4652 * Same format as $wgNamespacesToBeSearchedDefault.
4654 $wgNamespacesToBeSearchedHelp = array(
4655 NS_PROJECT => true,
4656 NS_HELP => true,
4660 * If set to true the 'searcheverything' preference will be effective only for
4661 * logged-in users.
4662 * Useful for big wikis to maintain different search profiles for anonymous and
4663 * logged-in users.
4666 $wgSearchEverythingOnlyLoggedIn = false;
4669 * Disable the internal MySQL-based search, to allow it to be
4670 * implemented by an extension instead.
4672 $wgDisableInternalSearch = false;
4675 * Set this to a URL to forward search requests to some external location.
4676 * If the URL includes '$1', this will be replaced with the URL-encoded
4677 * search term.
4679 * @par Example:
4680 * To forward to Google you'd have something like:
4681 * @code
4682 * $wgSearchForwardUrl =
4683 * 'http://www.google.com/search?q=$1' .
4684 * '&domains=http://example.com' .
4685 * '&sitesearch=http://example.com' .
4686 * '&ie=utf-8&oe=utf-8';
4687 * @endcode
4689 $wgSearchForwardUrl = null;
4692 * Search form behavior.
4693 * - true = use Go & Search buttons
4694 * - false = use Go button & Advanced search link
4696 $wgUseTwoButtonsSearchForm = true;
4699 * Array of namespaces to generate a Google sitemap for when the
4700 * maintenance/generateSitemap.php script is run, or false if one is to be ge-
4701 * nerated for all namespaces.
4703 $wgSitemapNamespaces = false;
4706 * Custom namespace priorities for sitemaps. Setting this will allow you to
4707 * set custom priorities to namsepaces when sitemaps are generated using the
4708 * maintenance/generateSitemap.php script.
4710 * This should be a map of namespace IDs to priority
4711 * @par Example:
4712 * @code
4713 * $wgSitemapNamespacesPriorities = array(
4714 * NS_USER => '0.9',
4715 * NS_HELP => '0.0',
4716 * );
4717 * @endcode
4719 $wgSitemapNamespacesPriorities = false;
4722 * If true, searches for IP addresses will be redirected to that IP's
4723 * contributions page. E.g. searching for "1.2.3.4" will redirect to
4724 * [[Special:Contributions/1.2.3.4]]
4726 $wgEnableSearchContributorsByIP = true;
4728 /** @} */ # end of search settings
4730 /************************************************************************//**
4731 * @name Edit user interface
4732 * @{
4736 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
4737 * fall back to the old behaviour (no merging).
4739 $wgDiff3 = '/usr/bin/diff3';
4742 * Path to the GNU diff utility.
4744 $wgDiff = '/usr/bin/diff';
4747 * Which namespaces have special treatment where they should be preview-on-open
4748 * Internaly only Category: pages apply, but using this extensions (e.g. Semantic MediaWiki)
4749 * can specify namespaces of pages they have special treatment for
4751 $wgPreviewOnOpenNamespaces = array(
4752 NS_CATEGORY => true
4756 * Activate external editor interface for files and pages
4757 * See http://www.mediawiki.org/wiki/Manual:External_editors
4759 $wgUseExternalEditor = true;
4761 /** Go button goes straight to the edit screen if the article doesn't exist. */
4762 $wgGoToEdit = false;
4765 * Enable the UniversalEditButton for browsers that support it
4766 * (currently only Firefox with an extension)
4767 * See http://universaleditbutton.org for more background information
4769 $wgUniversalEditButton = true;
4772 * If user doesn't specify any edit summary when making a an edit, MediaWiki
4773 * will try to automatically create one. This feature can be disabled by set-
4774 * ting this variable false.
4776 $wgUseAutomaticEditSummaries = true;
4778 /** @} */ # end edit UI }
4780 /************************************************************************//**
4781 * @name Maintenance
4782 * See also $wgSiteNotice
4783 * @{
4787 * @cond file_level_code
4788 * Set $wgCommandLineMode if it's not set already, to avoid notices
4790 if( !isset( $wgCommandLineMode ) ) {
4791 $wgCommandLineMode = false;
4793 /** @endcond */
4795 /** For colorized maintenance script output, is your terminal background dark ? */
4796 $wgCommandLineDarkBg = false;
4799 * Array for extensions to register their maintenance scripts with the
4800 * system. The key is the name of the class and the value is the full
4801 * path to the file
4803 $wgMaintenanceScripts = array();
4806 * Set this to a string to put the wiki into read-only mode. The text will be
4807 * used as an explanation to users.
4809 * This prevents most write operations via the web interface. Cache updates may
4810 * still be possible. To prevent database writes completely, use the read_only
4811 * option in MySQL.
4813 $wgReadOnly = null;
4816 * If this lock file exists (size > 0), the wiki will be forced into read-only mode.
4817 * Its contents will be shown to users as part of the read-only warning
4818 * message.
4820 * Will default to "{$wgUploadDirectory}/lock_yBgMBwiR" in Setup.php
4822 $wgReadOnlyFile = false;
4825 * When you run the web-based upgrade utility, it will tell you what to set
4826 * this to in order to authorize the upgrade process. It will subsequently be
4827 * used as a password, to authorize further upgrades.
4829 * For security, do not set this to a guessable string. Use the value supplied
4830 * by the install/upgrade process. To cause the upgrader to generate a new key,
4831 * delete the old key from LocalSettings.php.
4833 $wgUpgradeKey = false;
4836 * Map GIT repository URLs to viewer URLs to provide links in Special:Version
4838 * Key is a pattern passed to preg_match() and preg_replace(),
4839 * without the delimiters (which are #) and must match the whole URL.
4840 * The value is the replacement for the key (it can contain $1, etc.)
4841 * %h will be replaced by the short SHA-1 (7 first chars) and %H by the
4842 * full SHA-1 of the HEAD revision.
4844 $wgGitRepositoryViewers = array(
4845 'https://gerrit.wikimedia.org/r/p/(.*)' => 'https://gerrit.wikimedia.org/r/gitweb?p=$1;h=%H',
4846 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' => 'https://gerrit.wikimedia.org/r/gitweb?p=$1;h=%H',
4849 /** @} */ # End of maintenance }
4851 /************************************************************************//**
4852 * @name Recent changes, new pages, watchlist and history
4853 * @{
4857 * Recentchanges items are periodically purged; entries older than this many
4858 * seconds will go.
4859 * Default: 13 weeks = about three months
4861 $wgRCMaxAge = 13 * 7 * 24 * 3600;
4864 * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers
4865 * higher than what will be stored. Note that this is disabled by default
4866 * because we sometimes do have RC data which is beyond the limit for some
4867 * reason, and some users may use the high numbers to display that data which
4868 * is still there.
4870 $wgRCFilterByAge = false;
4873 * List of Days and Limits options to list in the Special:Recentchanges and
4874 * Special:Recentchangeslinked pages.
4876 $wgRCLinkLimits = array( 50, 100, 250, 500 );
4877 $wgRCLinkDays = array( 1, 3, 7, 14, 30 );
4880 * Send recent changes updates via UDP. The updates will be formatted for IRC.
4881 * Set this to the IP address of the receiver.
4883 $wgRC2UDPAddress = false;
4886 * Port number for RC updates
4888 $wgRC2UDPPort = false;
4891 * Prefix to prepend to each UDP packet.
4892 * This can be used to identify the wiki. A script is available called
4893 * mxircecho.py which listens on a UDP port, and uses a prefix ending in a
4894 * tab to identify the IRC channel to send the log line to.
4896 $wgRC2UDPPrefix = '';
4899 * If this is set to true, $wgLocalInterwiki will be prepended to links in the
4900 * IRC feed. If this is set to a string, that string will be used as the prefix.
4902 $wgRC2UDPInterwikiPrefix = false;
4905 * Set to true to omit "bot" edits (by users with the bot permission) from the
4906 * UDP feed.
4908 $wgRC2UDPOmitBots = false;
4911 * Enable user search in Special:Newpages
4912 * This is really a temporary hack around an index install bug on some Wikipedias.
4913 * Kill it once fixed.
4915 $wgEnableNewpagesUserFilter = true;
4917 /** Use RC Patrolling to check for vandalism */
4918 $wgUseRCPatrol = true;
4920 /** Use new page patrolling to check new pages on Special:Newpages */
4921 $wgUseNPPatrol = true;
4923 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
4924 $wgFeed = true;
4926 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
4927 * eg Recentchanges, Newpages. */
4928 $wgFeedLimit = 50;
4930 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
4931 * A cached version will continue to be served out even if changes
4932 * are made, until this many seconds runs out since the last render.
4934 * If set to 0, feed caching is disabled. Use this for debugging only;
4935 * feed generation can be pretty slow with diffs.
4937 $wgFeedCacheTimeout = 60;
4939 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
4940 * pages larger than this size. */
4941 $wgFeedDiffCutoff = 32768;
4943 /** Override the site's default RSS/ATOM feed for recentchanges that appears on
4944 * every page. Some sites might have a different feed they'd like to promote
4945 * instead of the RC feed (maybe like a "Recent New Articles" or "Breaking news" one).
4946 * Should be a format as key (either 'rss' or 'atom') and an URL to the feed
4947 * as value.
4948 * @par Example:
4949 * Configure the 'atom' feed to http://example.com/somefeed.xml
4950 * @code
4951 * $wgSiteFeed['atom'] = "http://example.com/somefeed.xml";
4952 * @endcode
4954 $wgOverrideSiteFeed = array();
4957 * Available feeds objects.
4958 * Should probably only be defined when a page is syndicated ie when
4959 * $wgOut->isSyndicated() is true.
4961 $wgFeedClasses = array(
4962 'rss' => 'RSSFeed',
4963 'atom' => 'AtomFeed',
4967 * Which feed types should we provide by default? This can include 'rss',
4968 * 'atom', neither, or both.
4970 $wgAdvertisedFeedTypes = array( 'atom' );
4972 /** Show watching users in recent changes, watchlist and page history views */
4973 $wgRCShowWatchingUsers = false; # UPO
4974 /** Show watching users in Page views */
4975 $wgPageShowWatchingUsers = false;
4976 /** Show the amount of changed characters in recent changes */
4977 $wgRCShowChangedSize = true;
4980 * If the difference between the character counts of the text
4981 * before and after the edit is below that value, the value will be
4982 * highlighted on the RC page.
4984 $wgRCChangedSizeThreshold = 500;
4987 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
4988 * view for watched pages with new changes */
4989 $wgShowUpdatedMarker = true;
4992 * Disable links to talk pages of anonymous users (IPs) in listings on special
4993 * pages like page history, Special:Recentchanges, etc.
4995 $wgDisableAnonTalk = false;
4998 * Enable filtering of categories in Recentchanges
5000 $wgAllowCategorizedRecentChanges = false;
5003 * Allow filtering by change tag in recentchanges, history, etc
5004 * Has no effect if no tags are defined in valid_tag.
5006 $wgUseTagFilter = true;
5008 /** @} */ # end RC/watchlist }
5010 /************************************************************************//**
5011 * @name Copyright and credits settings
5012 * @{
5016 * Override for copyright metadata.
5018 * This is the name of the page containing information about the wiki's copyright status,
5019 * which will be added as a link in the footer if it is specified. It overrides
5020 * $wgRightsUrl if both are specified.
5022 $wgRightsPage = null;
5025 * Set this to specify an external URL containing details about the content license used on your wiki.
5026 * If $wgRightsPage is set then this setting is ignored.
5028 $wgRightsUrl = null;
5031 * If either $wgRightsUrl or $wgRightsPage is specified then this variable gives the text for the link.
5032 * If using $wgRightsUrl then this value must be specified. If using $wgRightsPage then the name of the
5033 * page will also be used as the link if this variable is not set.
5035 $wgRightsText = null;
5038 * Override for copyright metadata.
5040 $wgRightsIcon = null;
5043 * Set to an array of metadata terms. Else they will be loaded based on $wgRightsUrl
5045 $wgLicenseTerms = false;
5048 * Set this to some HTML to override the rights icon with an arbitrary logo
5049 * @deprecated since 1.18 Use $wgFooterIcons['copyright']['copyright']
5051 $wgCopyrightIcon = null;
5053 /** Set this to true if you want detailed copyright information forms on Upload. */
5054 $wgUseCopyrightUpload = false;
5057 * Set this to the number of authors that you want to be credited below an
5058 * article text. Set it to zero to hide the attribution block, and a negative
5059 * number (like -1) to show all authors. Note that this will require 2-3 extra
5060 * database hits, which can have a not insignificant impact on performance for
5061 * large wikis.
5063 $wgMaxCredits = 0;
5065 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
5066 * Otherwise, link to a separate credits page. */
5067 $wgShowCreditsIfMax = true;
5069 /** @} */ # end of copyright and credits settings }
5071 /************************************************************************//**
5072 * @name Import / Export
5073 * @{
5077 * List of interwiki prefixes for wikis we'll accept as sources for
5078 * Special:Import (for sysops). Since complete page history can be imported,
5079 * these should be 'trusted'.
5081 * If a user has the 'import' permission but not the 'importupload' permission,
5082 * they will only be able to run imports through this transwiki interface.
5084 $wgImportSources = array();
5087 * Optional default target namespace for interwiki imports.
5088 * Can use this to create an incoming "transwiki"-style queue.
5089 * Set to numeric key, not the name.
5091 * Users may override this in the Special:Import dialog.
5093 $wgImportTargetNamespace = null;
5096 * If set to false, disables the full-history option on Special:Export.
5097 * This is currently poorly optimized for long edit histories, so is
5098 * disabled on Wikimedia's sites.
5100 $wgExportAllowHistory = true;
5103 * If set nonzero, Special:Export requests for history of pages with
5104 * more revisions than this will be rejected. On some big sites things
5105 * could get bogged down by very very long pages.
5107 $wgExportMaxHistory = 0;
5110 * Return distinct author list (when not returning full history)
5112 $wgExportAllowListContributors = false;
5115 * If non-zero, Special:Export accepts a "pagelink-depth" parameter
5116 * up to this specified level, which will cause it to include all
5117 * pages linked to from the pages you specify. Since this number
5118 * can become *insanely large* and could easily break your wiki,
5119 * it's disabled by default for now.
5121 * @warning There's a HARD CODED limit of 5 levels of recursion to prevent a
5122 * crazy-big export from being done by someone setting the depth number too
5123 * high. In other words, last resort safety net.
5125 $wgExportMaxLinkDepth = 0;
5128 * Whether to allow the "export all pages in namespace" option
5130 $wgExportFromNamespaces = false;
5133 * Whether to allow exporting the entire wiki into a single file
5135 $wgExportAllowAll = false;
5137 /** @} */ # end of import/export }
5139 /*************************************************************************//**
5140 * @name Extensions
5141 * @{
5145 * A list of callback functions which are called once MediaWiki is fully
5146 * initialised
5148 $wgExtensionFunctions = array();
5151 * Extension messages files.
5153 * Associative array mapping extension name to the filename where messages can be
5154 * found. The file should contain variable assignments. Any of the variables
5155 * present in languages/messages/MessagesEn.php may be defined, but $messages
5156 * is the most common.
5158 * Variables defined in extensions will override conflicting variables defined
5159 * in the core.
5161 * @par Example:
5162 * @code
5163 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
5164 * @endcode
5166 $wgExtensionMessagesFiles = array();
5169 * Parser output hooks.
5170 * This is an associative array where the key is an extension-defined tag
5171 * (typically the extension name), and the value is a PHP callback.
5172 * These will be called as an OutputPageParserOutput hook, if the relevant
5173 * tag has been registered with the parser output object.
5175 * Registration is done with $pout->addOutputHook( $tag, $data ).
5177 * The callback has the form:
5178 * @code
5179 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
5180 * @endcode
5182 $wgParserOutputHooks = array();
5185 * List of valid skin names.
5186 * The key should be the name in all lower case, the value should be a properly
5187 * cased name for the skin. This value will be prefixed with "Skin" to create the
5188 * class name of the skin to load, and if the skin's class cannot be found through
5189 * the autoloader it will be used to load a .php file by that name in the skins directory.
5190 * The default skins will be added later, by Skin::getSkinNames(). Use
5191 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
5193 $wgValidSkinNames = array();
5196 * Special page list.
5197 * See the top of SpecialPage.php for documentation.
5199 $wgSpecialPages = array();
5202 * Array mapping class names to filenames, for autoloading.
5204 $wgAutoloadClasses = array();
5207 * An array of extension types and inside that their names, versions, authors,
5208 * urls, descriptions and pointers to localized description msgs. Note that
5209 * the version, url, description and descriptionmsg key can be omitted.
5211 * @code
5212 * $wgExtensionCredits[$type][] = array(
5213 * 'name' => 'Example extension',
5214 * 'version' => 1.9,
5215 * 'path' => __FILE__,
5216 * 'author' => 'Foo Barstein',
5217 * 'url' => 'http://wwww.example.com/Example%20Extension/',
5218 * 'description' => 'An example extension',
5219 * 'descriptionmsg' => 'exampleextension-desc',
5220 * );
5221 * @endcode
5223 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
5224 * Where 'descriptionmsg' can be an array with message key and parameters:
5225 * 'descriptionmsg' => array( 'exampleextension-desc', param1, param2, ... ),
5227 $wgExtensionCredits = array();
5230 * Authentication plugin.
5231 * @var $wgAuth AuthPlugin
5233 $wgAuth = null;
5236 * Global list of hooks.
5238 * The key is one of the events made available by MediaWiki, you can find
5239 * a description for most of them in docs/hooks.txt. The array is used
5240 * internally by Hook:run().
5242 * The value can be one of:
5244 * - A function name:
5245 * @code
5246 * $wgHooks['event_name'][] = $function;
5247 * @endcode
5248 * - A function with some data:
5249 * @code
5250 * $wgHooks['event_name'][] = array($function, $data);
5251 * @endcode
5252 * - A an object method:
5253 * @code
5254 * $wgHooks['event_name'][] = array($object, 'method');
5255 * @endcode
5257 * @warning You should always append to an event array or you will end up
5258 * deleting a previous registered hook.
5260 * @todo Does it support PHP closures?
5262 $wgHooks = array();
5265 * Maps jobs to their handling classes; extensions
5266 * can add to this to provide custom jobs
5268 $wgJobClasses = array(
5269 'refreshLinks' => 'RefreshLinksJob',
5270 'refreshLinks2' => 'RefreshLinksJob2',
5271 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
5272 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
5273 'sendMail' => 'EmaillingJob',
5274 'enotifNotify' => 'EnotifNotifyJob',
5275 'fixDoubleRedirect' => 'DoubleRedirectJob',
5276 'uploadFromUrl' => 'UploadFromUrlJob',
5281 * Jobs that must be explicitly requested, i.e. aren't run by job runners unless special flags are set.
5283 * These can be:
5284 * - Very long-running jobs.
5285 * - Jobs that you would never want to run as part of a page rendering request.
5286 * - Jobs that you want to run on specialized machines ( like transcoding, or a particular
5287 * machine on your cluster has 'outside' web access you could restrict uploadFromUrl )
5289 $wgJobTypesExcludedFromDefaultQueue = array();
5292 * Additional functions to be performed with updateSpecialPages.
5293 * Expensive Querypages are already updated.
5295 $wgSpecialPageCacheUpdates = array(
5296 'Statistics' => array( 'SiteStatsUpdate', 'cacheUpdate' )
5300 * Hooks that are used for outputting exceptions. Format is:
5301 * $wgExceptionHooks[] = $funcname
5302 * or:
5303 * $wgExceptionHooks[] = array( $class, $funcname )
5304 * Hooks should return strings or false
5306 $wgExceptionHooks = array();
5309 * Page property link table invalidation lists. When a page property
5310 * changes, this may require other link tables to be updated (eg
5311 * adding __HIDDENCAT__ means the hiddencat tracking category will
5312 * have been added, so the categorylinks table needs to be rebuilt).
5313 * This array can be added to by extensions.
5315 $wgPagePropLinkInvalidations = array(
5316 'hiddencat' => 'categorylinks',
5319 /** @} */ # End extensions }
5321 /*************************************************************************//**
5322 * @name Categories
5323 * @{
5327 * Use experimental, DMOZ-like category browser
5329 $wgUseCategoryBrowser = false;
5332 * On category pages, show thumbnail gallery for images belonging to that
5333 * category instead of listing them as articles.
5335 $wgCategoryMagicGallery = true;
5338 * Paging limit for categories
5340 $wgCategoryPagingLimit = 200;
5343 * Specify how category names should be sorted, when listed on a category page.
5344 * A sorting scheme is also known as a collation.
5346 * Available values are:
5348 * - uppercase: Converts the category name to upper case, and sorts by that.
5350 * - identity: Does no conversion. Sorts by binary value of the string.
5352 * - uca-default: Provides access to the Unicode Collation Algorithm with
5353 * the default element table. This is a compromise collation which sorts
5354 * all languages in a mediocre way. However, it is better than "uppercase".
5356 * To use the uca-default collation, you must have PHP's intl extension
5357 * installed. See http://php.net/manual/en/intl.setup.php . The details of the
5358 * resulting collation will depend on the version of ICU installed on the
5359 * server.
5361 * After you change this, you must run maintenance/updateCollation.php to fix
5362 * the sort keys in the database.
5364 * Extensions can define there own collations by subclassing Collation
5365 * and using the Collation::factory hook.
5367 $wgCategoryCollation = 'uppercase';
5369 /** @} */ # End categories }
5371 /*************************************************************************//**
5372 * @name Logging
5373 * @{
5377 * The logging system has two levels: an event type, which describes the
5378 * general category and can be viewed as a named subset of all logs; and
5379 * an action, which is a specific kind of event that can exist in that
5380 * log type.
5382 $wgLogTypes = array(
5384 'block',
5385 'protect',
5386 'rights',
5387 'delete',
5388 'upload',
5389 'move',
5390 'import',
5391 'patrol',
5392 'merge',
5393 'suppress',
5397 * This restricts log access to those who have a certain right
5398 * Users without this will not see it in the option menu and can not view it
5399 * Restricted logs are not added to recent changes
5400 * Logs should remain non-transcludable
5401 * Format: logtype => permissiontype
5403 $wgLogRestrictions = array(
5404 'suppress' => 'suppressionlog'
5408 * Show/hide links on Special:Log will be shown for these log types.
5410 * This is associative array of log type => boolean "hide by default"
5412 * See $wgLogTypes for a list of available log types.
5414 * @par Example:
5415 * @code
5416 * $wgFilterLogTypes => array(
5417 * 'move' => true,
5418 * 'import' => false,
5419 * );
5420 * @endcode
5422 * Will display show/hide links for the move and import logs. Move logs will be
5423 * hidden by default unless the link is clicked. Import logs will be shown by
5424 * default, and hidden when the link is clicked.
5426 * A message of the form log-show-hide-[type] should be added, and will be used
5427 * for the link text.
5429 $wgFilterLogTypes = array(
5430 'patrol' => true
5434 * Lists the message key string for each log type. The localized messages
5435 * will be listed in the user interface.
5437 * Extensions with custom log types may add to this array.
5439 * @since 1.19, if you follow the naming convention log-name-TYPE,
5440 * where TYPE is your log type, yoy don't need to use this array.
5442 $wgLogNames = array(
5443 '' => 'all-logs-page',
5444 'block' => 'blocklogpage',
5445 'protect' => 'protectlogpage',
5446 'rights' => 'rightslog',
5447 'delete' => 'dellogpage',
5448 'upload' => 'uploadlogpage',
5449 'move' => 'movelogpage',
5450 'import' => 'importlogpage',
5451 'patrol' => 'patrol-log-page',
5452 'merge' => 'mergelog',
5453 'suppress' => 'suppressionlog',
5457 * Lists the message key string for descriptive text to be shown at the
5458 * top of each log type.
5460 * Extensions with custom log types may add to this array.
5462 * @since 1.19, if you follow the naming convention log-description-TYPE,
5463 * where TYPE is your log type, yoy don't need to use this array.
5465 $wgLogHeaders = array(
5466 '' => 'alllogstext',
5467 'block' => 'blocklogtext',
5468 'protect' => 'protectlogtext',
5469 'rights' => 'rightslogtext',
5470 'delete' => 'dellogpagetext',
5471 'upload' => 'uploadlogpagetext',
5472 'move' => 'movelogpagetext',
5473 'import' => 'importlogpagetext',
5474 'patrol' => 'patrol-log-header',
5475 'merge' => 'mergelogpagetext',
5476 'suppress' => 'suppressionlogtext',
5480 * Lists the message key string for formatting individual events of each
5481 * type and action when listed in the logs.
5483 * Extensions with custom log types may add to this array.
5485 $wgLogActions = array(
5486 'block/block' => 'blocklogentry',
5487 'block/unblock' => 'unblocklogentry',
5488 'block/reblock' => 'reblock-logentry',
5489 'protect/protect' => 'protectedarticle',
5490 'protect/modify' => 'modifiedarticleprotection',
5491 'protect/unprotect' => 'unprotectedarticle',
5492 'protect/move_prot' => 'movedarticleprotection',
5493 'rights/rights' => 'rightslogentry',
5494 'rights/autopromote' => 'rightslogentry-autopromote',
5495 'upload/upload' => 'uploadedimage',
5496 'upload/overwrite' => 'overwroteimage',
5497 'upload/revert' => 'uploadedimage',
5498 'import/upload' => 'import-logentry-upload',
5499 'import/interwiki' => 'import-logentry-interwiki',
5500 'merge/merge' => 'pagemerge-logentry',
5501 'suppress/block' => 'blocklogentry',
5502 'suppress/reblock' => 'reblock-logentry',
5506 * The same as above, but here values are names of functions,
5507 * not messages.
5508 * @see LogPage::actionText
5509 * @see LogFormatter
5511 $wgLogActionsHandlers = array(
5512 // move, move_redir
5513 'move/*' => 'MoveLogFormatter',
5514 // delete, restore, revision, event
5515 'delete/*' => 'DeleteLogFormatter',
5516 'suppress/revision' => 'DeleteLogFormatter',
5517 'suppress/event' => 'DeleteLogFormatter',
5518 'suppress/delete' => 'DeleteLogFormatter',
5519 'patrol/patrol' => 'PatrolLogFormatter',
5523 * Maintain a log of newusers at Log/newusers?
5525 $wgNewUserLog = true;
5527 /** @} */ # end logging }
5529 /*************************************************************************//**
5530 * @name Special pages (general and miscellaneous)
5531 * @{
5535 * Allow special page inclusions such as {{Special:Allpages}}
5537 $wgAllowSpecialInclusion = true;
5540 * Set this to an array of special page names to prevent
5541 * maintenance/updateSpecialPages.php from updating those pages.
5543 $wgDisableQueryPageUpdate = false;
5546 * List of special pages, followed by what subtitle they should go under
5547 * at Special:SpecialPages
5549 $wgSpecialPageGroups = array(
5550 'DoubleRedirects' => 'maintenance',
5551 'BrokenRedirects' => 'maintenance',
5552 'Lonelypages' => 'maintenance',
5553 'Uncategorizedpages' => 'maintenance',
5554 'Uncategorizedcategories' => 'maintenance',
5555 'Uncategorizedimages' => 'maintenance',
5556 'Uncategorizedtemplates' => 'maintenance',
5557 'Unusedcategories' => 'maintenance',
5558 'Unusedimages' => 'maintenance',
5559 'Protectedpages' => 'maintenance',
5560 'Protectedtitles' => 'maintenance',
5561 'Unusedtemplates' => 'maintenance',
5562 'Withoutinterwiki' => 'maintenance',
5563 'Longpages' => 'maintenance',
5564 'Shortpages' => 'maintenance',
5565 'Ancientpages' => 'maintenance',
5566 'Deadendpages' => 'maintenance',
5567 'Wantedpages' => 'maintenance',
5568 'Wantedcategories' => 'maintenance',
5569 'Wantedfiles' => 'maintenance',
5570 'Wantedtemplates' => 'maintenance',
5571 'Unwatchedpages' => 'maintenance',
5572 'Fewestrevisions' => 'maintenance',
5574 'Userlogin' => 'login',
5575 'Userlogout' => 'login',
5576 'CreateAccount' => 'login',
5578 'Recentchanges' => 'changes',
5579 'Recentchangeslinked' => 'changes',
5580 'Watchlist' => 'changes',
5581 'Newimages' => 'changes',
5582 'Newpages' => 'changes',
5583 'Log' => 'changes',
5584 'Tags' => 'changes',
5586 'Upload' => 'media',
5587 'Listfiles' => 'media',
5588 'MIMEsearch' => 'media',
5589 'FileDuplicateSearch' => 'media',
5590 'Filepath' => 'media',
5592 'Listusers' => 'users',
5593 'Activeusers' => 'users',
5594 'Listgrouprights' => 'users',
5595 'BlockList' => 'users',
5596 'Contributions' => 'users',
5597 'Emailuser' => 'users',
5598 'Listadmins' => 'users',
5599 'Listbots' => 'users',
5600 'Userrights' => 'users',
5601 'Block' => 'users',
5602 'Unblock' => 'users',
5603 'Preferences' => 'users',
5604 'ChangeEmail' => 'users',
5605 'ChangePassword' => 'users',
5606 'DeletedContributions' => 'users',
5607 'PasswordReset' => 'users',
5609 'Mostlinked' => 'highuse',
5610 'Mostlinkedcategories' => 'highuse',
5611 'Mostlinkedtemplates' => 'highuse',
5612 'Mostcategories' => 'highuse',
5613 'Mostimages' => 'highuse',
5614 'Mostrevisions' => 'highuse',
5616 'Allpages' => 'pages',
5617 'Prefixindex' => 'pages',
5618 'Listredirects' => 'pages',
5619 'Categories' => 'pages',
5620 'Disambiguations' => 'pages',
5622 'Randompage' => 'redirects',
5623 'Randomredirect' => 'redirects',
5624 'Mypage' => 'redirects',
5625 'Mytalk' => 'redirects',
5626 'Mycontributions' => 'redirects',
5627 'Search' => 'redirects',
5628 'LinkSearch' => 'redirects',
5630 'ComparePages' => 'pagetools',
5631 'Movepage' => 'pagetools',
5632 'MergeHistory' => 'pagetools',
5633 'Revisiondelete' => 'pagetools',
5634 'Undelete' => 'pagetools',
5635 'Export' => 'pagetools',
5636 'Import' => 'pagetools',
5637 'Whatlinkshere' => 'pagetools',
5639 'Statistics' => 'wiki',
5640 'Version' => 'wiki',
5641 'Lockdb' => 'wiki',
5642 'Unlockdb' => 'wiki',
5643 'Allmessages' => 'wiki',
5644 'Popularpages' => 'wiki',
5646 'Specialpages' => 'other',
5647 'Blockme' => 'other',
5648 'Booksources' => 'other',
5649 'JavaScriptTest' => 'other',
5652 /** Whether or not to sort special pages in Special:Specialpages */
5654 $wgSortSpecialPages = true;
5657 * On Special:Unusedimages, consider images "used", if they are put
5658 * into a category. Default (false) is not to count those as used.
5660 $wgCountCategorizedImagesAsUsed = false;
5663 * Maximum number of links to a redirect page listed on
5664 * Special:Whatlinkshere/RedirectDestination
5666 $wgMaxRedirectLinksRetrieved = 500;
5668 /** @} */ # end special pages }
5670 /*************************************************************************//**
5671 * @name Actions
5672 * @{
5676 * Array of allowed values for the "title=foo&action=<action>" parameter. Syntax is:
5677 * 'foo' => 'ClassName' Load the specified class which subclasses Action
5678 * 'foo' => true Load the class FooAction which subclasses Action
5679 * If something is specified in the getActionOverrides()
5680 * of the relevant Page object it will be used
5681 * instead of the default class.
5682 * 'foo' => false The action is disabled; show an error message
5683 * Unsetting core actions will probably cause things to complain loudly.
5685 $wgActions = array(
5686 'credits' => true,
5687 'delete' => true,
5688 'edit' => true,
5689 'history' => true,
5690 'info' => true,
5691 'markpatrolled' => true,
5692 'protect' => true,
5693 'purge' => true,
5694 'raw' => true,
5695 'render' => true,
5696 'revert' => true,
5697 'revisiondelete' => true,
5698 'rollback' => true,
5699 'submit' => true,
5700 'unprotect' => true,
5701 'unwatch' => true,
5702 'view' => true,
5703 'watch' => true,
5707 * Array of disabled article actions, e.g. view, edit, delete, etc.
5708 * @deprecated since 1.18; just set $wgActions['action'] = false instead
5710 $wgDisabledActions = array();
5713 * Allow the "info" action, very inefficient at the moment
5715 $wgAllowPageInfo = false;
5717 /** @} */ # end actions }
5719 /*************************************************************************//**
5720 * @name Robot (search engine crawler) policy
5721 * See also $wgNoFollowLinks.
5722 * @{
5726 * Default robot policy. The default policy is to encourage indexing and fol-
5727 * lowing of links. It may be overridden on a per-namespace and/or per-page
5728 * basis.
5730 $wgDefaultRobotPolicy = 'index,follow';
5733 * Robot policies per namespaces. The default policy is given above, the array
5734 * is made of namespace constants as defined in includes/Defines.php. You can-
5735 * not specify a different default policy for NS_SPECIAL: it is always noindex,
5736 * nofollow. This is because a number of special pages (e.g., ListPages) have
5737 * many permutations of options that display the same data under redundant
5738 * URLs, so search engine spiders risk getting lost in a maze of twisty special
5739 * pages, all alike, and never reaching your actual content.
5741 * @par Example:
5742 * @code
5743 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
5744 * @endcode
5746 $wgNamespaceRobotPolicies = array();
5749 * Robot policies per article. These override the per-namespace robot policies.
5750 * Must be in the form of an array where the key part is a properly canonical-
5751 * ised text form title and the value is a robot policy.
5753 * @par Example:
5754 * @code
5755 * $wgArticleRobotPolicies = array(
5756 * 'Main Page' => 'noindex,follow',
5757 * 'User:Bob' => 'index,follow',
5758 * );
5759 * @endcode
5761 * @par Example that DOES NOT WORK because the names are not canonical text
5762 * forms:
5763 * @code
5764 * $wgArticleRobotPolicies = array(
5765 * # Underscore, not space!
5766 * 'Main_Page' => 'noindex,follow',
5767 * # "Project", not the actual project name!
5768 * 'Project:X' => 'index,follow',
5769 * # Needs to be "Abc", not "abc" (unless $wgCapitalLinks is false for that namespace)!
5770 * 'abc' => 'noindex,nofollow'
5771 * );
5772 * @endcode
5774 $wgArticleRobotPolicies = array();
5777 * An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words
5778 * will not function, so users can't decide whether pages in that namespace are
5779 * indexed by search engines. If set to null, default to $wgContentNamespaces.
5781 * @par Example:
5782 * @code
5783 * $wgExemptFromUserRobotsControl = array( NS_MAIN, NS_TALK, NS_PROJECT );
5784 * @endcode
5786 $wgExemptFromUserRobotsControl = null;
5788 /** @} */ # End robot policy }
5790 /************************************************************************//**
5791 * @name AJAX and API
5792 * Note: The AJAX entry point which this section refers to is gradually being
5793 * replaced by the API entry point, api.php. They are essentially equivalent.
5794 * Both of them are used for dynamic client-side features, via XHR.
5795 * @{
5799 * Enable the MediaWiki API for convenient access to
5800 * machine-readable data via api.php
5802 * See http://www.mediawiki.org/wiki/API
5804 $wgEnableAPI = true;
5807 * Allow the API to be used to perform write operations
5808 * (page edits, rollback, etc.) when an authorised user
5809 * accesses it
5811 $wgEnableWriteAPI = true;
5814 * API module extensions.
5815 * Associative array mapping module name to class name.
5816 * Extension modules may override the core modules.
5817 * @todo Describe each of the variables, group them and add examples
5819 $wgAPIModules = array();
5820 $wgAPIMetaModules = array();
5821 $wgAPIPropModules = array();
5822 $wgAPIListModules = array();
5825 * Maximum amount of rows to scan in a DB query in the API
5826 * The default value is generally fine
5828 $wgAPIMaxDBRows = 5000;
5831 * The maximum size (in bytes) of an API result.
5832 * @warning Do not set this lower than $wgMaxArticleSize*1024
5834 $wgAPIMaxResultSize = 8388608;
5837 * The maximum number of uncached diffs that can be retrieved in one API
5838 * request. Set this to 0 to disable API diffs altogether
5840 $wgAPIMaxUncachedDiffs = 1;
5843 * Log file or URL (TCP or UDP) to log API requests to, or false to disable
5844 * API request logging
5846 $wgAPIRequestLog = false;
5849 * Set the timeout for the API help text cache. If set to 0, caching disabled
5851 $wgAPICacheHelpTimeout = 60*60;
5854 * Enable AJAX framework
5856 $wgUseAjax = true;
5859 * List of Ajax-callable functions.
5860 * Extensions acting as Ajax callbacks must register here
5862 $wgAjaxExportList = array();
5865 * Enable watching/unwatching pages using AJAX.
5866 * Requires $wgUseAjax to be true too.
5868 $wgAjaxWatch = true;
5871 * Enable AJAX check for file overwrite, pre-upload
5873 $wgAjaxUploadDestCheck = true;
5876 * Enable previewing licences via AJAX. Also requires $wgEnableAPI to be true.
5878 $wgAjaxLicensePreview = true;
5881 * Settings for incoming cross-site AJAX requests:
5882 * Newer browsers support cross-site AJAX when the target resource allows requests
5883 * from the origin domain by the Access-Control-Allow-Origin header.
5884 * This is currently only used by the API (requests to api.php)
5885 * $wgCrossSiteAJAXdomains can be set using a wildcard syntax:
5887 * - '*' matches any number of characters
5888 * - '?' matches any 1 character
5890 * @par Example:
5891 * @code
5892 * $wgCrossSiteAJAXdomains = array(
5893 * 'www.mediawiki.org',
5894 * '*.wikipedia.org',
5895 * '*.wikimedia.org',
5896 * '*.wiktionary.org',
5897 * );
5898 * @endcode
5900 $wgCrossSiteAJAXdomains = array();
5903 * Domains that should not be allowed to make AJAX requests,
5904 * even if they match one of the domains allowed by $wgCrossSiteAJAXdomains
5905 * Uses the same syntax as $wgCrossSiteAJAXdomains
5908 $wgCrossSiteAJAXdomainExceptions = array();
5910 /** @} */ # End AJAX and API }
5912 /************************************************************************//**
5913 * @name Shell and process control
5914 * @{
5918 * Maximum amount of virtual memory available to shell processes under linux, in KB.
5920 $wgMaxShellMemory = 102400;
5923 * Maximum file size created by shell processes under linux, in KB
5924 * ImageMagick convert for example can be fairly hungry for scratch space
5926 $wgMaxShellFileSize = 102400;
5929 * Maximum CPU time in seconds for shell processes under linux
5931 $wgMaxShellTime = 180;
5934 * Executable path of the PHP cli binary (php/php5). Should be set up on install.
5936 $wgPhpCli = '/usr/bin/php';
5939 * Locale for LC_CTYPE, to work around http://bugs.php.net/bug.php?id=45132
5940 * For Unix-like operating systems, set this to to a locale that has a UTF-8
5941 * character set. Only the character set is relevant.
5943 $wgShellLocale = 'en_US.utf8';
5945 /** @} */ # End shell }
5947 /************************************************************************//**
5948 * @name HTTP client
5949 * @{
5953 * Timeout for HTTP requests done internally
5955 $wgHTTPTimeout = 25;
5958 * Timeout for Asynchronous (background) HTTP requests
5960 $wgAsyncHTTPTimeout = 25;
5963 * Proxy to use for CURL requests.
5965 $wgHTTPProxy = false;
5967 /** @} */ # End HTTP client }
5969 /************************************************************************//**
5970 * @name Job queue
5971 * See also $wgEnotifUseJobQ.
5972 * @{
5976 * Number of jobs to perform per request. May be less than one in which case
5977 * jobs are performed probabalistically. If this is zero, jobs will not be done
5978 * during ordinary apache requests. In this case, maintenance/runJobs.php should
5979 * be run periodically.
5981 $wgJobRunRate = 1;
5984 * Number of rows to update per job
5986 $wgUpdateRowsPerJob = 500;
5989 * Number of rows to update per query
5991 $wgUpdateRowsPerQuery = 100;
5993 /** @} */ # End job queue }
5995 /************************************************************************//**
5996 * @name HipHop compilation
5997 * @{
6001 * The build directory for HipHop compilation.
6002 * Defaults to '$IP/maintenance/hiphop/build'.
6004 $wgHipHopBuildDirectory = false;
6007 * The HipHop build type. Can be either "Debug" or "Release".
6009 $wgHipHopBuildType = 'Debug';
6012 * Number of parallel processes to use during HipHop compilation, or "detect"
6013 * to guess from system properties.
6015 $wgHipHopCompilerProcs = 'detect';
6018 * Filesystem extensions directory. Defaults to $IP/../extensions.
6020 * To compile extensions with HipHop, set $wgExtensionsDirectory correctly,
6021 * and use code like:
6022 * @code
6023 * require( MWInit::extensionSetupPath( 'Extension/Extension.php' ) );
6024 * @endcode
6026 * to include the extension setup file from LocalSettings.php. It is not
6027 * necessary to set this variable unless you use MWInit::extensionSetupPath().
6029 $wgExtensionsDirectory = false;
6032 * A list of files that should be compiled into a HipHop build, in addition to
6033 * those listed in $wgAutoloadClasses. Add to this array in an extension setup
6034 * file in order to add files to the build.
6036 * The files listed here must either be either absolute paths under $IP or
6037 * under $wgExtensionsDirectory, or paths relative to the virtual source root
6038 * "$IP/..", i.e. starting with "phase3" for core files, and "extensions" for
6039 * extension files.
6041 $wgCompiledFiles = array();
6043 /** @} */ # End of HipHop compilation }
6046 /************************************************************************//**
6047 * @name Mobile support
6048 * @{
6052 * Name of the class used for mobile device detection, must be inherited from
6053 * IDeviceDetector.
6055 $wgDeviceDetectionClass = 'DeviceDetection';
6057 /** @} */ # End of Mobile support }
6059 /************************************************************************//**
6060 * @name Miscellaneous
6061 * @{
6064 /** Name of the external diff engine to use */
6065 $wgExternalDiffEngine = false;
6068 * Disable redirects to special pages and interwiki redirects, which use a 302
6069 * and have no "redirected from" link.
6071 * @note This is only for articles with #REDIRECT in them. URL's containing a
6072 * local interwiki prefix (or a non-canonical special page name) are still hard
6073 * redirected regardless of this setting.
6075 $wgDisableHardRedirects = false;
6078 * LinkHolderArray batch size
6079 * For debugging
6081 $wgLinkHolderBatchSize = 1000;
6084 * By default MediaWiki does not register links pointing to same server in
6085 * externallinks dataset, use this value to override:
6087 $wgRegisterInternalExternals = false;
6090 * Maximum number of pages to move at once when moving subpages with a page.
6092 $wgMaximumMovedPages = 100;
6095 * Fix double redirects after a page move.
6096 * Tends to conflict with page move vandalism, use only on a private wiki.
6098 $wgFixDoubleRedirects = false;
6101 * Allow redirection to another page when a user logs in.
6102 * To enable, set to a string like 'Main Page'
6104 $wgRedirectOnLogin = null;
6107 * Configuration for processing pool control, for use in high-traffic wikis.
6108 * An implementation is provided in the PoolCounter extension.
6110 * This configuration array maps pool types to an associative array. The only
6111 * defined key in the associative array is "class", which gives the class name.
6112 * The remaining elements are passed through to the class as constructor
6113 * parameters.
6115 * @par Example:
6116 * @code
6117 * $wgPoolCounterConf = array( 'ArticleView' => array(
6118 * 'class' => 'PoolCounter_Client',
6119 * 'timeout' => 15, // wait timeout in seconds
6120 * 'workers' => 5, // maximum number of active threads in each pool
6121 * 'maxqueue' => 50, // maximum number of total threads in each pool
6122 * ... any extension-specific options...
6123 * );
6124 * @endcode
6126 $wgPoolCounterConf = null;
6129 * To disable file delete/restore temporarily
6131 $wgUploadMaintenance = false;
6134 * Allows running of selenium tests via maintenance/tests/RunSeleniumTests.php
6136 $wgEnableSelenium = false;
6137 $wgSeleniumTestConfigs = array();
6138 $wgSeleniumConfigFile = null;
6139 $wgDBtestuser = ''; //db user that has permission to create and drop the test databases only
6140 $wgDBtestpassword = '';
6143 * For really cool vim folding this needs to be at the end:
6144 * vim: foldmarker=@{,@} foldmethod=marker
6145 * @}