8 * To customize your installation, edit "LocalSettings.php". If you make
9 * changes here, they will be lost on next upgrade of MediaWiki!
11 * In this file, variables whose default values depend on other
12 * variables are set to false. The actual default value of these variables
13 * will only be set in Setup.php, taking into account any custom settings
14 * performed in LocalSettings.php.
16 * Documentation is in the source and on:
17 * http://www.mediawiki.org/wiki/Manual:Configuration_settings
21 * @cond file_level_code
22 * This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
24 if( !defined( 'MEDIAWIKI' ) ) {
25 echo "This file is part of MediaWiki and is not a valid entry point\n";
29 # Create a site configuration object. Not used for much in a default install.
30 # Note: this (and other things) will break if the autoloader is not enabled.
31 # Please include includes/AutoLoader.php before including this file.
32 $wgConf = new SiteConfiguration
;
35 /** MediaWiki version number */
36 $wgVersion = '1.19alpha';
38 /** Name of the site. It must be changed in LocalSettings.php */
39 $wgSitename = 'MediaWiki';
46 * $wgServer = 'http://example.com';
49 * This is usually detected correctly by MediaWiki. If MediaWiki detects the
50 * wrong server, it will redirect incorrectly after you save a page. In that
51 * case, set this variable to fix it.
53 * If you want to use protocol-relative URLs on your wiki, set this to a
54 * protocol-relative URL like '//example.com' and set $wgCanonicalServer
55 * to a fully qualified URL.
57 $wgServer = WebRequest
::detectServer();
60 * Canonical URL of the server, to use in IRC feeds and notification e-mails.
61 * Must be fully qualified, even if $wgServer is protocol-relative.
63 * Defaults to $wgServer, expanded to a fully qualified http:// URL if needed.
65 $wgCanonicalServer = false;
67 /************************************************************************//**
68 * @name Script path settings
73 * The path we should point to.
74 * It might be a virtual path in case with use apache mod_rewrite for example.
76 * This *needs* to be set correctly.
78 * Other paths will be set to defaults based on it unless they are directly
79 * set in LocalSettings.php
81 $wgScriptPath = '/wiki';
84 * Whether to support URLs like index.php/Page_title These often break when PHP
85 * is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set,
86 * but then again it may not; lighttpd converts incoming path data to lowercase
87 * on systems with case-insensitive filesystems, and there have been reports of
88 * problems on Apache as well.
90 * To be safe we'll continue to keep it off by default.
92 * Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly
93 * incorrect garbage, or to true if it is really correct.
95 * The default $wgArticlePath will be set based on this value at runtime, but if
96 * you have customized it, having this incorrectly set to true can cause
97 * redirect loops when "pretty URLs" are used.
100 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
101 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
102 ( strpos( php_sapi_name(), 'isapi' ) === false );
105 * The extension to append to script names by default. This can either be .php
108 * Some hosting providers use PHP 4 for *.php files, and PHP 5 for *.php5. This
109 * variable is provided to support those providers.
111 $wgScriptExtension = '.php';
114 * The URL path to index.php.
116 * Will default to "{$wgScriptPath}/index{$wgScriptExtension}" in Setup.php
121 * The URL path to redirect.php. This is a script that is used by the Nostalgia
124 * Will default to "{$wgScriptPath}/redirect{$wgScriptExtension}" in Setup.php
126 $wgRedirectScript = false;
129 * The URL path to load.php.
131 * Defaults to "{$wgScriptPath}/load{$wgScriptExtension}".
133 $wgLoadScript = false;
138 /************************************************************************//**
139 * @name URLs and file paths
141 * These various web and file path variables are set to their defaults
142 * in Setup.php if they are not explicitly set from LocalSettings.php.
144 * These will relatively rarely need to be set manually, unless you are
145 * splitting style sheets or images outside the main document root.
147 * In this section, a "path" is usually a host-relative URL, i.e. a URL without
148 * the host part, that starts with a slash. In most cases a full URL is also
149 * acceptable. A "directory" is a local file path.
151 * In both paths and directories, trailing slashes should not be included.
157 * The URL path of the skins directory. Will default to "{$wgScriptPath}/skins" in Setup.php
159 $wgStylePath = false;
160 $wgStyleSheetPath = &$wgStylePath;
163 * The URL path of the skins directory. Should not point to an external domain.
164 * Defaults to "{$wgScriptPath}/skins".
166 $wgLocalStylePath = false;
169 * The URL path of the extensions directory.
170 * Defaults to "{$wgScriptPath}/extensions".
173 $wgExtensionAssetsPath = false;
176 * Filesystem stylesheets directory. Will default to "{$IP}/skins" in Setup.php
178 $wgStyleDirectory = false;
181 * The URL path for primary article page views. This path should contain $1,
182 * which is replaced by the article title.
184 * Will default to "{$wgScript}/$1" or "{$wgScript}?title=$1" in Setup.php,
185 * depending on $wgUsePathInfo.
187 $wgArticlePath = false;
190 * The URL path for the images directory. Will default to "{$wgScriptPath}/images" in Setup.php
192 $wgUploadPath = false;
195 * The maximum age of temporary (incomplete) uploaded files
197 $wgUploadStashMaxAge = 6 * 3600; // 6 hours
200 * The filesystem path of the images directory. Defaults to "{$IP}/images".
202 $wgUploadDirectory = false;
205 * The URL path of the wiki logo. The logo size should be 135x135 pixels.
206 * Will default to "{$wgStylePath}/common/images/wiki.png" in Setup.php
211 * The URL path of the shortcut icon.
213 $wgFavicon = '/favicon.ico';
216 * The URL path of the icon for iPhone and iPod Touch web app bookmarks.
217 * Defaults to no icon.
219 $wgAppleTouchIcon = false;
222 * The local filesystem path to a temporary directory. This is not required to
225 * Will default to "{$wgUploadDirectory}/tmp" in Setup.php
227 $wgTmpDirectory = false;
230 * If set, this URL is added to the start of $wgUploadPath to form a complete
233 $wgUploadBaseUrl = "";
236 * To enable remote on-demand scaling, set this to the thumbnail base URL.
237 * Full thumbnail URL will be like $wgUploadStashScalerBaseUrl/e/e6/Foo.jpg/123px-Foo.jpg
238 * where 'e6' are the first two characters of the MD5 hash of the file name.
239 * If $wgUploadStashScalerBaseUrl is set to false, thumbs are rendered locally as needed.
241 $wgUploadStashScalerBaseUrl = false;
244 * To set 'pretty' URL paths for actions other than
245 * plain page views, add to this array. For instance:
246 * 'edit' => "$wgScriptPath/edit/$1"
248 * There must be an appropriate script or rewrite rule
249 * in place to handle these URLs.
251 $wgActionPaths = array();
255 /************************************************************************//**
256 * @name Files and file uploads
260 /** Uploads have to be specially set up to be secure */
261 $wgEnableUploads = false;
263 /** Allows to move images and other media files */
264 $wgAllowImageMoving = true;
267 * These are additional characters that should be replaced with '-' in file names
269 $wgIllegalFileChars = ":";
272 * @deprecated since 1.17 use $wgDeletedDirectory
274 $wgFileStore = array();
277 * What directory to place deleted uploads in
279 $wgDeletedDirectory = false; // Defaults to $wgUploadDirectory/deleted
282 * Set this to true if you use img_auth and want the user to see details on why access failed.
284 $wgImgAuthDetails = false;
287 * If this is enabled, img_auth.php will not allow image access unless the wiki
288 * is private. This improves security when image uploads are hosted on a
291 $wgImgAuthPublicTest = true;
294 * File repository structures
296 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepos is
297 * an array of such structures. Each repository structure is an associative
298 * array of properties configuring the repository.
300 * Properties required for all repos:
301 * - class The class name for the repository. May come from the core or an extension.
302 * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
304 * - name A unique name for the repository (but $wgLocalFileRepo should be 'local').
306 * For most core repos:
307 * - url Base public URL
308 * - hashLevels The number of directory levels for hash-based division of files
309 * - thumbScriptUrl The URL for thumb.php (optional, not recommended)
310 * - transformVia404 Whether to skip media file transformation on parse and rely on a 404
312 * - initialCapital Equivalent to $wgCapitalLinks (or $wgCapitalLinkOverrides[NS_FILE],
313 * determines whether filenames implicitly start with a capital letter.
314 * The current implementation may give incorrect description page links
315 * when the local $wgCapitalLinks and initialCapital are mismatched.
316 * - pathDisclosureProtection
317 * May be 'paranoid' to remove all parameters from error messages, 'none' to
318 * leave the paths in unchanged, or 'simple' to replace paths with
319 * placeholders. Default for LocalRepo is 'simple'.
320 * - fileMode This allows wikis to set the file mode when uploading/moving files. Default
322 * - directory The local filesystem directory where public files are stored. Not used for
324 * - thumbDir The base thumbnail directory. Defaults to <directory>/thumb.
325 * - thumbUrl The base thumbnail URL. Defaults to <url>/thumb.
328 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
329 * for local repositories:
330 * - descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/File:
331 * - scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
332 * http://en.wikipedia.org/w
333 * - scriptExtension Script extension of the MediaWiki installation, equivalent to
334 * $wgScriptExtension, e.g. .php5 defaults to .php
336 * - articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
337 * - fetchDescription Fetch the text of the remote file description page. Equivalent to
338 * $wgFetchCommonsDescriptions.
341 * - dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
342 * equivalent to the corresponding member of $wgDBservers
343 * - tablePrefix Table prefix, the foreign wiki's $wgDBprefix
344 * - hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
347 * - apibase Use for the foreign API's URL
348 * - apiThumbCacheExpiry How long to locally cache thumbs for
350 * If you leave $wgLocalFileRepo set to false, Setup will fill in appropriate values.
351 * Otherwise, set $wgLocalFileRepo to a repository structure as described above.
352 * If you set $wgUseInstantCommons to true, it will add an entry for Commons.
353 * If you set $wgForeignFileRepos to an array of repostory structures, those will
354 * be searched after the local file repo.
355 * Otherwise, you will only have access to local media files.
357 $wgLocalFileRepo = false;
359 /** @see $wgLocalFileRepo */
360 $wgForeignFileRepos = array();
363 * Use Commons as a remote file repository. Essentially a wrapper, when this
364 * is enabled $wgForeignFileRepos will point at Commons with a set of default
367 $wgUseInstantCommons = false;
370 * File backend structure configuration.
371 * This is an array of file backend configuration arrays.
372 * Each backend configuration has the following parameters:
373 * 'name' : A unique name for the backend
374 * 'class' : The file backend class to use
375 * 'wikiId' : A unique string that identifies the wiki (container prefix)
376 * 'lockManager' : The name of a lock manager (see $wgFileLockManagers)
377 * Additional parameters are specific to the class used.
379 $wgFileBackends = array();
382 * Array of configuration arrays for each lock manager.
383 * Each backend configuration has the following parameters:
384 * 'name' : A unique name for the lock manger
385 * 'class' : The lock manger class to use
386 * Additional parameters are specific to the class used.
388 $wgFileLockManagers = array();
391 * Show EXIF data, on by default if available.
392 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
394 * NOTE FOR WINDOWS USERS:
395 * To enable EXIF functions, add the following lines to the
396 * "Windows extensions" section of php.ini:
398 * extension=extensions/php_mbstring.dll
399 * extension=extensions/php_exif.dll
401 $wgShowEXIF = function_exists( 'exif_read_data' );
404 * If to automatically update the img_metadata field
405 * if the metadata field is outdated but compatible with the current version.
408 $wgUpdateCompatibleMetadata = false;
411 * If you operate multiple wikis, you can define a shared upload path here.
412 * Uploads to this wiki will NOT be put there - they will be put into
413 * $wgUploadDirectory.
414 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
415 * no file of the given name is found in the local repository (for [[File:..]],
416 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
419 * Note that these configuration settings can now be defined on a per-
420 * repository basis for an arbitrary number of file repositories, using the
421 * $wgForeignFileRepos variable.
423 $wgUseSharedUploads = false;
424 /** Full path on the web server where shared uploads can be found */
425 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
426 /** Fetch commons image description pages and display them on the local wiki? */
427 $wgFetchCommonsDescriptions = false;
428 /** Path on the file system where shared uploads can be found. */
429 $wgSharedUploadDirectory = "/var/www/wiki3/images";
430 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
431 $wgSharedUploadDBname = false;
432 /** Optional table prefix used in database. */
433 $wgSharedUploadDBprefix = '';
434 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
435 $wgCacheSharedUploads = true;
437 * Allow for upload to be copied from an URL. Requires Special:Upload?source=web
438 * The timeout for copy uploads is set by $wgHTTPTimeout.
440 $wgAllowCopyUploads = false;
442 * Allow asynchronous copy uploads.
443 * This feature is experimental and broken as of r81612.
445 $wgAllowAsyncCopyUploads = false;
448 * Max size for uploads, in bytes. If not set to an array, applies to all
449 * uploads. If set to an array, per upload type maximums can be set, using the
450 * file and url keys. If the * key is set this value will be used as maximum
451 * for non-specified types.
454 * $wgMaxUploadSize = array(
456 * 'url' => 500 * 1024,
458 * Sets the maximum for all uploads to 250 kB except for upload-by-url, which
459 * will have a maximum of 500 kB.
462 $wgMaxUploadSize = 1024*1024*100; # 100MB
465 * Point the upload navigation link to an external URL
466 * Useful if you want to use a shared repository by default
467 * without disabling local uploads (use $wgEnableUploads = false for that)
468 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
470 $wgUploadNavigationUrl = false;
473 * Point the upload link for missing files to an external URL, as with
474 * $wgUploadNavigationUrl. The URL will get (?|&)wpDestFile=<filename>
475 * appended to it as appropriate.
477 $wgUploadMissingFileUrl = false;
480 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
481 * generating them on render and outputting a static URL. This is necessary if some of your
482 * apache servers don't have read/write access to the thumbnail path.
485 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
487 $wgThumbnailScriptPath = false;
488 $wgSharedThumbnailScriptPath = false;
491 * Set this to false if you do not want MediaWiki to divide your images
492 * directory into many subdirectories, for improved performance.
494 * It's almost always good to leave this enabled. In previous versions of
495 * MediaWiki, some users set this to false to allow images to be added to the
496 * wiki by simply copying them into $wgUploadDirectory and then running
497 * maintenance/rebuildImages.php to register them in the database. This is no
498 * longer recommended, use maintenance/importImages.php instead.
500 * Note that this variable may be ignored if $wgLocalFileRepo is set.
502 $wgHashedUploadDirectory = true;
505 * Set the following to false especially if you have a set of files that need to
506 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
509 $wgHashedSharedUploadDirectory = true;
512 * Base URL for a repository wiki. Leave this blank if uploads are just stored
513 * in a shared directory and not meant to be accessible through a separate wiki.
514 * Otherwise the image description pages on the local wiki will link to the
515 * image description page on this wiki.
517 * Please specify the namespace, as in the example below.
519 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:";
522 * This is the list of preferred extensions for uploading files. Uploading files
523 * with extensions not in this list will trigger a warning.
525 * WARNING: If you add any OpenOffice or Microsoft Office file formats here,
526 * such as odt or doc, and untrusted users are allowed to upload files, then
527 * your wiki will be vulnerable to cross-site request forgery (CSRF).
529 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
531 /** Files with these extensions will never be allowed as uploads. */
532 $wgFileBlacklist = array(
533 # HTML may contain cookie-stealing JavaScript and web bugs
534 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
535 # PHP scripts may execute arbitrary code on the server
536 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
537 # Other types that may be interpreted by some servers
538 'shtml', 'jhtml', 'pl', 'py', 'cgi',
539 # May contain harmful executables for Windows victims
540 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
543 * Files with these mime types will never be allowed as uploads
544 * if $wgVerifyMimeType is enabled.
546 $wgMimeTypeBlacklist = array(
547 # HTML may contain cookie-stealing JavaScript and web bugs
548 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
549 # PHP scripts may execute arbitrary code on the server
550 'application/x-php', 'text/x-php',
551 # Other types that may be interpreted by some servers
552 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
553 # Client-side hazards on Internet Explorer
554 'text/scriptlet', 'application/x-msdownload',
555 # Windows metafile, client-side vulnerability on some systems
556 'application/x-msmetafile',
560 * Allow Java archive uploads.
561 * This is not recommended for public wikis since a maliciously-constructed
562 * applet running on the same domain as the wiki can steal the user's cookies.
564 $wgAllowJavaUploads = false;
567 * This is a flag to determine whether or not to check file extensions on upload.
569 * WARNING: setting this to false is insecure for public wikis.
571 $wgCheckFileExtensions = true;
574 * If this is turned off, users may override the warning for files not covered
575 * by $wgFileExtensions.
577 * WARNING: setting this to false is insecure for public wikis.
579 $wgStrictFileExtensions = true;
582 * Setting this to true will disable the upload system's checks for HTML/JavaScript.
583 * THIS IS VERY DANGEROUS on a publicly editable site, so USE wgGroupPermissions
584 * TO RESTRICT UPLOADING to only those that you trust
586 $wgDisableUploadScriptChecks = false;
588 /** Warn if uploaded files are larger than this (in bytes), or false to disable*/
589 $wgUploadSizeWarning = false;
592 * list of trusted media-types and mime types.
593 * Use the MEDIATYPE_xxx constants to represent media types.
594 * This list is used by File::isSafeFile
596 * Types not listed here will have a warning about unsafe content
597 * displayed on the images description page. It would also be possible
598 * to use this for further restrictions, like disabling direct
599 * [[media:...]] links for non-trusted formats.
601 $wgTrustedMediaFormats = array(
602 MEDIATYPE_BITMAP
, //all bitmap formats
603 MEDIATYPE_AUDIO
, //all audio formats
604 MEDIATYPE_VIDEO
, //all plain video formats
605 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
606 "application/pdf", //PDF files
607 #"application/x-shockwave-flash", //flash/shockwave movie
611 * Plugins for media file type handling.
612 * Each entry in the array maps a MIME type to a class name
614 $wgMediaHandlers = array(
615 'image/jpeg' => 'JpegHandler',
616 'image/png' => 'PNGHandler',
617 'image/gif' => 'GIFHandler',
618 'image/tiff' => 'TiffHandler',
619 'image/x-ms-bmp' => 'BmpHandler',
620 'image/x-bmp' => 'BmpHandler',
621 'image/svg+xml' => 'SvgHandler', // official
622 'image/svg' => 'SvgHandler', // compat
623 'image/vnd.djvu' => 'DjVuHandler', // official
624 'image/x.djvu' => 'DjVuHandler', // compat
625 'image/x-djvu' => 'DjVuHandler', // compat
629 * Resizing can be done using PHP's internal image libraries or using
630 * ImageMagick or another third-party converter, e.g. GraphicMagick.
631 * These support more file formats than PHP, which only supports PNG,
632 * GIF, JPG, XBM and WBMP.
634 * Use Image Magick instead of PHP builtin functions.
636 $wgUseImageMagick = false;
637 /** The convert command shipped with ImageMagick */
638 $wgImageMagickConvertCommand = '/usr/bin/convert';
640 /** Sharpening parameter to ImageMagick */
641 $wgSharpenParameter = '0x0.4';
643 /** Reduction in linear dimensions below which sharpening will be enabled */
644 $wgSharpenReductionThreshold = 0.85;
647 * Temporary directory used for ImageMagick. The directory must exist. Leave
648 * this set to false to let ImageMagick decide for itself.
650 $wgImageMagickTempDir = false;
653 * Use another resizing converter, e.g. GraphicMagick
654 * %s will be replaced with the source path, %d with the destination
655 * %w and %h will be replaced with the width and height.
657 * Example for GraphicMagick:
659 * $wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
662 * Leave as false to skip this.
664 $wgCustomConvertCommand = false;
667 * Some tests and extensions use exiv2 to manipulate the EXIF metadata in some image formats.
669 $wgExiv2Command = '/usr/bin/exiv2';
672 * Scalable Vector Graphics (SVG) may be uploaded as images.
673 * Since SVG support is not yet standard in browsers, it is
674 * necessary to rasterize SVGs to PNG as a fallback format.
676 * An external program is required to perform this conversion.
677 * If set to an array, the first item is a PHP callable and any further items
678 * are passed as parameters after $srcPath, $dstPath, $width, $height
680 $wgSVGConverters = array(
681 'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output',
682 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
683 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
684 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
685 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
686 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
687 'ImagickExt' => array( 'SvgHandler::rasterizeImagickExt' ),
689 /** Pick a converter defined in $wgSVGConverters */
690 $wgSVGConverter = 'ImageMagick';
691 /** If not in the executable PATH, specify the SVG converter path. */
692 $wgSVGConverterPath = '';
693 /** Don't scale a SVG larger than this */
694 $wgSVGMaxSize = 2048;
695 /** Don't read SVG metadata beyond this point.
696 * Default is 1024*256 bytes */
697 $wgSVGMetadataCutoff = 262144;
700 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
701 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
702 * crap files as images. When this directive is on, <title> will be allowed in files with
703 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
704 * and doesn't send appropriate MIME types for SVG images.
706 $wgAllowTitlesInSVG = false;
709 * The maximum number of pixels a source image can have if it is to be scaled
710 * down by a scaler that requires the full source image to be decompressed
711 * and stored in decompressed form, before the thumbnail is generated.
713 * This provides a limit on memory usage for the decompression side of the
714 * image scaler. The limit is used when scaling PNGs with any of the
715 * built-in image scalers, such as ImageMagick or GD. It is ignored for
716 * JPEGs with ImageMagick, and when using the VipsScaler extension.
718 * The default is 50 MB if decompressed to RGBA form, which corresponds to
719 * 12.5 million pixels or 3500x3500.
721 $wgMaxImageArea = 1.25e7
;
723 * Force thumbnailing of animated GIFs above this size to a single
724 * frame instead of an animated thumbnail. As of MW 1.17 this limit
725 * is checked against the total size of all frames in the animation.
726 * It probably makes sense to keep this equal to $wgMaxImageArea.
728 $wgMaxAnimatedGifArea = 1.25e7
;
730 * Browsers don't support TIFF inline generally...
731 * For inline display, we need to convert to PNG or JPEG.
732 * Note scaling should work with ImageMagick, but may not with GD scaling.
736 * // PNG is lossless, but inefficient for photos
737 * $wgTiffThumbnailType = array( 'png', 'image/png' );
738 * // JPEG is good for photos, but has no transparency support. Bad for diagrams.
739 * $wgTiffThumbnailType = array( 'jpg', 'image/jpeg' );
742 $wgTiffThumbnailType = false;
745 * If rendered thumbnail files are older than this timestamp, they
746 * will be rerendered on demand as if the file didn't already exist.
747 * Update if there is some need to force thumbs and SVG rasterizations
748 * to rerender, such as fixes to rendering bugs.
750 $wgThumbnailEpoch = '20030516000000';
753 * If set, inline scaled images will still produce <img> tags ready for
754 * output instead of showing an error message.
756 * This may be useful if errors are transitory, especially if the site
757 * is configured to automatically render thumbnails on request.
759 * On the other hand, it may obscure error conditions from debugging.
760 * Enable the debug log or the 'thumbnail' log group to make sure errors
761 * are logged to a file for review.
763 $wgIgnoreImageErrors = false;
766 * Allow thumbnail rendering on page view. If this is false, a valid
767 * thumbnail URL is still output, but no file will be created at
768 * the target location. This may save some time if you have a
769 * thumb.php or 404 handler set up which is faster than the regular
772 $wgGenerateThumbnailOnParse = true;
775 * Show thumbnails for old images on the image description page
777 $wgShowArchiveThumbnails = true;
779 /** Obsolete, always true, kept for compatibility with extensions */
780 $wgUseImageResize = true;
783 * If set to true, images that contain certain the exif orientation tag will
784 * be rotated accordingly. If set to null, try to auto-detect whether a scaler
785 * is available that can rotate.
787 $wgEnableAutoRotation = null;
790 * Internal name of virus scanner. This servers as a key to the
791 * $wgAntivirusSetup array. Set this to NULL to disable virus scanning. If not
792 * null, every file uploaded will be scanned for viruses.
797 * Configuration for different virus scanners. This an associative array of
798 * associative arrays. It contains one setup array per known scanner type.
799 * The entry is selected by $wgAntivirus, i.e.
800 * valid values for $wgAntivirus are the keys defined in this array.
802 * The configuration array for each scanner contains the following keys:
803 * "command", "codemap", "messagepattern":
805 * "command" is the full command to call the virus scanner - %f will be
806 * replaced with the name of the file to scan. If not present, the filename
807 * will be appended to the command. Note that this must be overwritten if the
808 * scanner is not in the system path; in that case, plase set
809 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full
812 * "codemap" is a mapping of exit code to return codes of the detectVirus
813 * function in SpecialUpload.
814 * - An exit code mapped to AV_SCAN_FAILED causes the function to consider
815 * the scan to be failed. This will pass the file if $wgAntivirusRequired
817 * - An exit code mapped to AV_SCAN_ABORTED causes the function to consider
818 * the file to have an usupported format, which is probably imune to
819 * virusses. This causes the file to pass.
820 * - An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning
821 * no virus was found.
822 * - All other codes (like AV_VIRUS_FOUND) will cause the function to report
824 * - You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
826 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
827 * output. The relevant part should be matched as group one (\1).
828 * If not defined or the pattern does not match, the full message is shown to the user.
830 $wgAntivirusSetup = array(
834 'command' => "clamscan --no-summary ",
837 "0" => AV_NO_VIRUS
, # no virus
838 "1" => AV_VIRUS_FOUND
, # virus found
839 "52" => AV_SCAN_ABORTED
, # unsupported file format (probably imune)
840 "*" => AV_SCAN_FAILED
, # else scan failed
843 'messagepattern' => '/.*?:(.*)/sim',
848 'command' => "f-prot ",
851 "0" => AV_NO_VIRUS
, # no virus
852 "3" => AV_VIRUS_FOUND
, # virus found
853 "6" => AV_VIRUS_FOUND
, # virus found
854 "*" => AV_SCAN_FAILED
, # else scan failed
857 'messagepattern' => '/.*?Infection:(.*)$/m',
862 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected. */
863 $wgAntivirusRequired = true;
865 /** Determines if the mime type of uploaded files should be checked */
866 $wgVerifyMimeType = true;
868 /** Sets the mime type definition file to use by MimeMagic.php. */
869 $wgMimeTypeFile = "includes/mime.types";
870 #$wgMimeTypeFile= "/etc/mime.types";
871 #$wgMimeTypeFile= null; #use built-in defaults only.
873 /** Sets the mime type info file to use by MimeMagic.php. */
874 $wgMimeInfoFile= "includes/mime.info";
875 #$wgMimeInfoFile= null; #use built-in defaults only.
878 * Switch for loading the FileInfo extension by PECL at runtime.
879 * This should be used only if fileinfo is installed as a shared object
880 * or a dynamic library.
882 $wgLoadFileinfoExtension = false;
884 /** Sets an external mime detector program. The command must print only
885 * the mime type to standard output.
886 * The name of the file to process will be appended to the command given here.
887 * If not set or NULL, mime_content_type will be used if available.
890 * #$wgMimeDetectorCommand = "file -bi"; # use external mime detector (Linux)
893 $wgMimeDetectorCommand = null;
896 * Switch for trivial mime detection. Used by thumb.php to disable all fancy
897 * things, because only a few types of images are needed and file extensions
900 $wgTrivialMimeDetection = false;
903 * Additional XML types we can allow via mime-detection.
904 * array = ( 'rootElement' => 'associatedMimeType' )
906 $wgXMLMimeTypes = array(
907 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
908 'svg' => 'image/svg+xml',
909 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
910 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
911 'html' => 'text/html', // application/xhtml+xml?
915 * Limit images on image description pages to a user-selectable limit. In order
916 * to reduce disk usage, limits can only be selected from a list.
917 * The user preference is saved as an array offset in the database, by default
918 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
919 * change it if you alter the array (see bug 8858).
920 * This is the list of settings the user can choose from:
922 $wgImageLimits = array (
928 array(10000,10000) );
931 * Adjust thumbnails on image pages according to a user setting. In order to
932 * reduce disk usage, the values can only be selected from a list. This is the
933 * list of settings the user can choose from:
935 $wgThumbLimits = array(
945 * Default parameters for the <gallery> tag
947 $wgGalleryOptions = array (
948 'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize
949 'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
950 'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
951 'captionLength' => 25, // Length of caption to truncate (in characters)
952 'showBytes' => true, // Show the filesize in bytes in categories
956 * Adjust width of upright images when parameter 'upright' is used
957 * This allows a nicer look for upright images without the need to fix the width
958 * by hardcoded px in wiki sourcecode.
960 $wgThumbUpright = 0.75;
963 * Default value for chmoding of new directories.
965 $wgDirectoryMode = 0777;
969 * Path of the djvudump executable
970 * Enable this and $wgDjvuRenderer to enable djvu rendering
972 # $wgDjvuDump = 'djvudump';
976 * Path of the ddjvu DJVU renderer
977 * Enable this and $wgDjvuDump to enable djvu rendering
979 # $wgDjvuRenderer = 'ddjvu';
980 $wgDjvuRenderer = null;
983 * Path of the djvutxt DJVU text extraction utility
984 * Enable this and $wgDjvuDump to enable text layer extraction from djvu files
986 # $wgDjvuTxt = 'djvutxt';
990 * Path of the djvutoxml executable
991 * This works like djvudump except much, much slower as of version 3.5.
993 * For now I recommend you use djvudump instead. The djvuxml output is
994 * probably more stable, so we'll switch back to it as soon as they fix
995 * the efficiency problem.
996 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
998 # $wgDjvuToXML = 'djvutoxml';
1003 * Shell command for the DJVU post processor
1004 * Default: pnmtopng, since ddjvu generates ppm output
1005 * Set this to false to output the ppm file directly.
1007 $wgDjvuPostProcessor = 'pnmtojpeg';
1009 * File extension for the DJVU post processor output
1011 $wgDjvuOutputExtension = 'jpg';
1013 /** @} */ # end of file uploads }
1015 /************************************************************************//**
1016 * @name Email settings
1020 $serverName = substr( $wgServer, strrpos( $wgServer, '/' ) +
1 );
1023 * Site admin email address.
1025 $wgEmergencyContact = 'wikiadmin@' . $serverName;
1028 * Password reminder email address.
1030 * The address we should use as sender when a user is requesting his password.
1032 $wgPasswordSender = 'apache@' . $serverName;
1034 unset( $serverName ); # Don't leak local variables to global scope
1037 * Password reminder name
1039 $wgPasswordSenderName = 'MediaWiki Mail';
1042 * Dummy address which should be accepted during mail send action.
1043 * It might be necessary to adapt the address or to set it equal
1044 * to the $wgEmergencyContact address.
1046 $wgNoReplyAddress = 'reply@not.possible';
1049 * Set to true to enable the e-mail basic features:
1050 * Password reminders, etc. If sending e-mail on your
1051 * server doesn't work, you might want to disable this.
1053 $wgEnableEmail = true;
1056 * Set to true to enable user-to-user e-mail.
1057 * This can potentially be abused, as it's hard to track.
1059 $wgEnableUserEmail = true;
1062 * Set to true to put the sending user's email in a Reply-To header
1063 * instead of From. ($wgEmergencyContact will be used as From.)
1065 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
1066 * which can cause problems with SPF validation and leak recipient addressses
1067 * when bounces are sent to the sender.
1069 $wgUserEmailUseReplyTo = false;
1072 * Minimum time, in hours, which must elapse between password reminder
1073 * emails for a given account. This is to prevent abuse by mail flooding.
1075 $wgPasswordReminderResendTime = 24;
1078 * The time, in seconds, when an emailed temporary password expires.
1080 $wgNewPasswordExpiry = 3600 * 24 * 7;
1083 * The time, in seconds, when an email confirmation email expires
1085 $wgUserEmailConfirmationTokenExpiry = 7 * 24 * 60 * 60;
1089 * For using a direct (authenticated) SMTP server connection.
1090 * Default to false or fill an array :
1092 * "host" => 'SMTP domain',
1093 * "IDHost" => 'domain for MessageID',
1095 * "auth" => true/false,
1096 * "username" => user,
1097 * "password" => password
1103 * Additional email parameters, will be passed as the last argument to mail() call.
1104 * If using safe_mode this has no effect
1106 $wgAdditionalMailParams = null;
1109 * True: from page editor if s/he opted-in. False: Enotif mails appear to come
1110 * from $wgEmergencyContact
1112 $wgEnotifFromEditor = false;
1114 // TODO move UPO to preferences probably ?
1115 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1116 # If set to false, the corresponding input form on the user preference page is suppressed
1117 # It call this to be a "user-preferences-option (UPO)"
1120 * Require email authentication before sending mail to an email addres. This is
1121 * highly recommended. It prevents MediaWiki from being used as an open spam
1124 $wgEmailAuthentication = true;
1127 * Allow users to enable email notification ("enotif") on watchlist changes.
1129 $wgEnotifWatchlist = false;
1132 * Allow users to enable email notification ("enotif") when someone edits their
1135 $wgEnotifUserTalk = false;
1138 * Set the Reply-to address in notifications to the editor's address, if user
1139 * allowed this in the preferences.
1141 $wgEnotifRevealEditorAddress = false;
1144 * Send notification mails on minor edits to watchlist pages. This is enabled
1145 * by default. Does not affect user talk notifications.
1147 $wgEnotifMinorEdits = true;
1150 * Send a generic mail instead of a personalised mail for each user. This
1151 * always uses UTC as the time zone, and doesn't include the username.
1153 * For pages with many users watching, this can significantly reduce mail load.
1154 * Has no effect when using sendmail rather than SMTP.
1156 $wgEnotifImpersonal = false;
1159 * Maximum number of users to mail at once when using impersonal mail. Should
1160 * match the limit on your mail server.
1162 $wgEnotifMaxRecips = 500;
1165 * Send mails via the job queue. This can be useful to reduce the time it
1166 * takes to save a page that a lot of people are watching.
1168 $wgEnotifUseJobQ = false;
1171 * Use real name instead of username in e-mail "from" field.
1173 $wgEnotifUseRealName = false;
1176 * Array of usernames who will be sent a notification email for every change
1177 * which occurs on a wiki.
1179 $wgUsersNotifiedOnAllChanges = array();
1182 /** @} */ # end of email settings
1184 /************************************************************************//**
1185 * @name Database settings
1188 /** Database host name or IP address */
1189 $wgDBserver = 'localhost';
1190 /** Database port number (for PostgreSQL) */
1192 /** Name of the database */
1193 $wgDBname = 'my_wiki';
1194 /** Database username */
1195 $wgDBuser = 'wikiuser';
1196 /** Database user's password */
1198 /** Database type */
1199 $wgDBtype = 'mysql';
1201 /** Separate username for maintenance tasks. Leave as null to use the default. */
1202 $wgDBadminuser = null;
1203 /** Separate password for maintenance tasks. Leave as null to use the default. */
1204 $wgDBadminpassword = null;
1208 * Leave as null to select the default search engine for the
1209 * selected database type (eg SearchMySQL), or set to a class
1210 * name to override to a custom search engine.
1212 $wgSearchType = null;
1214 /** Table name prefix */
1216 /** MySQL table options to use during installation or update */
1217 $wgDBTableOptions = 'ENGINE=InnoDB';
1220 * SQL Mode - default is turning off all modes, including strict, if set.
1221 * null can be used to skip the setting for performance reasons and assume
1222 * DBA has done his best job.
1223 * String override can be used for some additional fun :-)
1227 /** Mediawiki schema */
1228 $wgDBmwschema = 'mediawiki';
1230 /** To override default SQLite data directory ($docroot/../data) */
1231 $wgSQLiteDataDir = '';
1234 * Make all database connections secretly go to localhost. Fool the load balancer
1235 * thinking there is an arbitrarily large cluster of servers to connect to.
1236 * Useful for debugging.
1238 $wgAllDBsAreLocalhost = false;
1241 * Shared database for multiple wikis. Commonly used for storing a user table
1242 * for single sign-on. The server for this database must be the same as for the
1245 * For backwards compatibility the shared prefix is set to the same as the local
1246 * prefix, and the user table is listed in the default list of shared tables.
1247 * The user_properties table is also added so that users will continue to have their
1248 * preferences shared (preferences were stored in the user table prior to 1.16)
1250 * $wgSharedTables may be customized with a list of tables to share in the shared
1251 * datbase. However it is advised to limit what tables you do share as many of
1252 * MediaWiki's tables may have side effects if you try to share them.
1255 * $wgSharedPrefix is the table prefix for the shared database. It defaults to
1260 /** @see $wgSharedDB */
1261 $wgSharedPrefix = false;
1262 /** @see $wgSharedDB */
1263 $wgSharedTables = array( 'user', 'user_properties' );
1266 * Database load balancer
1267 * This is a two-dimensional array, an array of server info structures
1270 * - dbname: Default database name
1272 * - password: DB password
1273 * - type: "mysql" or "postgres"
1274 * - load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
1275 * - groupLoads: array of load ratios, the key is the query group name. A query may belong
1276 * to several groups, the most specific group defined here is used.
1278 * - flags: bit field
1279 * - DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
1280 * - DBO_DEBUG -- equivalent of $wgDebugDumpSql
1281 * - DBO_TRX -- wrap entire request in a transaction
1282 * - DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
1283 * - DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
1285 * - max lag: (optional) Maximum replication lag before a slave will taken out of rotation
1286 * - max threads: (optional) Maximum number of running threads
1288 * These and any other user-defined properties will be assigned to the mLBInfo member
1289 * variable of the Database object.
1291 * Leave at false to use the single-server variables above. If you set this
1292 * variable, the single-server variables will generally be ignored (except
1293 * perhaps in some command-line scripts).
1295 * The first server listed in this array (with key 0) will be the master. The
1296 * rest of the servers will be slaves. To prevent writes to your slaves due to
1297 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
1298 * slaves in my.cnf. You can set read_only mode at runtime using:
1301 * SET @@read_only=1;
1304 * Since the effect of writing to a slave is so damaging and difficult to clean
1305 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
1306 * our masters, and then set read_only=0 on masters at runtime.
1308 $wgDBservers = false;
1311 * Load balancer factory configuration
1312 * To set up a multi-master wiki farm, set the class here to something that
1313 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
1314 * The class identified here is responsible for reading $wgDBservers,
1315 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
1317 * The LBFactory_Multi class is provided for this purpose, please see
1318 * includes/db/LBFactory_Multi.php for configuration information.
1320 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
1322 /** How long to wait for a slave to catch up to the master */
1323 $wgMasterWaitTimeout = 10;
1325 /** File to log database errors to */
1326 $wgDBerrorLog = false;
1328 /** When to give an error message */
1329 $wgDBClusterTimeout = 10;
1332 * Scale load balancer polling time so that under overload conditions, the database server
1333 * receives a SHOW STATUS query at an average interval of this many microseconds
1335 $wgDBAvgStatusPoll = 2000;
1337 /** Set to true if using InnoDB tables */
1338 $wgDBtransactions = false;
1341 * Set to true to engage MySQL 4.1/5.0 charset-related features;
1342 * for now will just cause sending of 'SET NAMES=utf8' on connect.
1344 * WARNING: THIS IS EXPERIMENTAL!
1346 * May break if you're not using the table defs from mysql5/tables.sql.
1347 * May break if you're upgrading an existing wiki if set differently.
1348 * Broken symptoms likely to include incorrect behavior with page titles,
1349 * usernames, comments etc containing non-ASCII characters.
1350 * Might also cause failures on the object cache and other things.
1352 * Even correct usage may cause failures with Unicode supplementary
1353 * characters (those not in the Basic Multilingual Plane) unless MySQL
1354 * has enhanced their Unicode support.
1356 $wgDBmysql5 = false;
1359 * Other wikis on this site, can be administered from a single developer
1361 * Array numeric key => database name
1363 $wgLocalDatabases = array();
1366 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
1367 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
1368 * show a more obvious warning.
1370 $wgSlaveLagWarning = 10;
1371 /** @see $wgSlaveLagWarning */
1372 $wgSlaveLagCritical = 30;
1375 * Use old names for change_tags indices.
1377 $wgOldChangeTagsIndex = false;
1379 /**@}*/ # End of DB settings }
1382 /************************************************************************//**
1383 * @name Text storage
1388 * We can also compress text stored in the 'text' table. If this is set on, new
1389 * revisions will be compressed on page save if zlib support is available. Any
1390 * compressed revisions will be decompressed on load regardless of this setting
1391 * *but will not be readable at all* if zlib support is not available.
1393 $wgCompressRevisions = false;
1396 * External stores allow including content
1397 * from non database sources following URL links
1399 * Short names of ExternalStore classes may be specified in an array here:
1400 * $wgExternalStores = array("http","file","custom")...
1402 * CAUTION: Access to database might lead to code execution
1404 $wgExternalStores = false;
1407 * An array of external mysql servers, e.g.
1408 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
1409 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to another class.
1411 $wgExternalServers = array();
1414 * The place to put new revisions, false to put them in the local text table.
1415 * Part of a URL, e.g. DB://cluster1
1417 * Can be an array instead of a single string, to enable data distribution. Keys
1418 * must be consecutive integers, starting at zero. Example:
1420 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
1424 $wgDefaultExternalStore = false;
1427 * Revision text may be cached in $wgMemc to reduce load on external storage
1428 * servers and object extraction overhead for frequently-loaded revisions.
1430 * Set to 0 to disable, or number of seconds before cache expiry.
1432 $wgRevisionCacheExpiry = 0;
1434 /** @} */ # end text storage }
1436 /************************************************************************//**
1437 * @name Performance hacks and limits
1440 /** Disable database-intensive features */
1441 $wgMiserMode = false;
1442 /** Disable all query pages if miser mode is on, not just some */
1443 $wgDisableQueryPages = false;
1444 /** Number of rows to cache in 'querycache' table when miser mode is on */
1445 $wgQueryCacheLimit = 1000;
1446 /** Number of links to a page required before it is deemed "wanted" */
1447 $wgWantedPagesThreshold = 1;
1448 /** Enable slow parser functions */
1449 $wgAllowSlowParserFunctions = false;
1450 /** Allow schema updates */
1451 $wgAllowSchemaUpdates = true;
1454 * Do DELETE/INSERT for link updates instead of incremental
1456 $wgUseDumbLinkUpdate = false;
1459 * Anti-lock flags - bitfield
1460 * - ALF_PRELOAD_LINKS:
1461 * Preload links during link update for save
1462 * - ALF_PRELOAD_EXISTENCE:
1463 * Preload cur_id during replaceLinkHolders
1464 * - ALF_NO_LINK_LOCK:
1465 * Don't use locking reads when updating the link table. This is
1466 * necessary for wikis with a high edit rate for performance
1467 * reasons, but may cause link table inconsistency
1468 * - ALF_NO_BLOCK_LOCK:
1469 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1472 $wgAntiLockFlags = 0;
1475 * Maximum article size in kilobytes
1477 $wgMaxArticleSize = 2048;
1480 * The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to
1481 * raise PHP's memory limit if it's below this amount.
1483 $wgMemoryLimit = "50M";
1485 /** @} */ # end performance hacks }
1487 /************************************************************************//**
1488 * @name Cache settings
1493 * Directory for caching data in the local filesystem. Should not be accessible
1494 * from the web. Set this to false to not use any local caches.
1496 * Note: if multiple wikis share the same localisation cache directory, they
1497 * must all have the same set of extensions. You can set a directory just for
1498 * the localisation cache using $wgLocalisationCacheConf['storeDirectory'].
1500 $wgCacheDirectory = false;
1503 * Main cache type. This should be a cache with fast access, but it may have
1504 * limited space. By default, it is disabled, since the database is not fast
1505 * enough to make it worthwhile.
1509 * - CACHE_ANYTHING: Use anything, as long as it works
1510 * - CACHE_NONE: Do not cache
1511 * - CACHE_DB: Store cache objects in the DB
1512 * - CACHE_MEMCACHED: MemCached, must specify servers in $wgMemCachedServers
1513 * - CACHE_ACCEL: APC, XCache or WinCache
1514 * - CACHE_DBA: Use PHP's DBA extension to store in a DBM-style
1515 * database. This is slow, and is not recommended for
1516 * anything other than debugging.
1517 * - (other): A string may be used which identifies a cache
1518 * configuration in $wgObjectCaches.
1520 * @see $wgMessageCacheType, $wgParserCacheType
1522 $wgMainCacheType = CACHE_NONE
;
1525 * The cache type for storing the contents of the MediaWiki namespace. This
1526 * cache is used for a small amount of data which is expensive to regenerate.
1528 * For available types see $wgMainCacheType.
1530 $wgMessageCacheType = CACHE_ANYTHING
;
1533 * The cache type for storing article HTML. This is used to store data which
1534 * is expensive to regenerate, and benefits from having plenty of storage space.
1536 * For available types see $wgMainCacheType.
1538 $wgParserCacheType = CACHE_ANYTHING
;
1541 * Advanced object cache configuration.
1543 * Use this to define the class names and constructor parameters which are used
1544 * for the various cache types. Custom cache types may be defined here and
1545 * referenced from $wgMainCacheType, $wgMessageCacheType or $wgParserCacheType.
1547 * The format is an associative array where the key is a cache identifier, and
1548 * the value is an associative array of parameters. The "class" parameter is the
1549 * class name which will be used. Alternatively, a "factory" parameter may be
1550 * given, giving a callable function which will generate a suitable cache object.
1552 * The other parameters are dependent on the class used.
1553 * - CACHE_DBA uses $wgTmpDirectory by default. The 'dir' parameter let you
1556 $wgObjectCaches = array(
1557 CACHE_NONE
=> array( 'class' => 'EmptyBagOStuff' ),
1558 CACHE_DB
=> array( 'class' => 'SqlBagOStuff', 'table' => 'objectcache' ),
1559 CACHE_DBA
=> array( 'class' => 'DBABagOStuff' ),
1561 CACHE_ANYTHING
=> array( 'factory' => 'ObjectCache::newAnything' ),
1562 CACHE_ACCEL
=> array( 'factory' => 'ObjectCache::newAccelerator' ),
1563 CACHE_MEMCACHED
=> array( 'factory' => 'ObjectCache::newMemcached' ),
1565 'apc' => array( 'class' => 'APCBagOStuff' ),
1566 'xcache' => array( 'class' => 'XCacheBagOStuff' ),
1567 'wincache' => array( 'class' => 'WinCacheBagOStuff' ),
1568 'memcached-php' => array( 'class' => 'MemcachedPhpBagOStuff' ),
1569 'hash' => array( 'class' => 'HashBagOStuff' ),
1573 * The expiry time for the parser cache, in seconds. The default is 86.4k
1574 * seconds, otherwise known as a day.
1576 $wgParserCacheExpireTime = 86400;
1579 * Select which DBA handler <http://www.php.net/manual/en/dba.requirements.php> to use as CACHE_DBA backend
1581 $wgDBAhandler = 'db3';
1584 * Store sessions in MemCached. This can be useful to improve performance, or to
1585 * avoid the locking behaviour of PHP's default session handler, which tends to
1586 * prevent multiple requests for the same user from acting concurrently.
1588 $wgSessionsInMemcached = false;
1591 * This is used for setting php's session.save_handler. In practice, you will
1592 * almost never need to change this ever. Other options might be 'user' or
1593 * 'session_mysql.' Setting to null skips setting this entirely (which might be
1594 * useful if you're doing cross-application sessions, see bug 11381)
1596 $wgSessionHandler = null;
1598 /** If enabled, will send MemCached debugging information to $wgDebugLogFile */
1599 $wgMemCachedDebug = false;
1601 /** The list of MemCached servers and port numbers */
1602 $wgMemCachedServers = array( '127.0.0.1:11000' );
1605 * Use persistent connections to MemCached, which are shared across multiple
1608 $wgMemCachedPersistent = false;
1611 * Read/write timeout for MemCached server communication, in microseconds.
1613 $wgMemCachedTimeout = 100000;
1616 * Set this to true to make a local copy of the message cache, for use in
1617 * addition to memcached. The files will be put in $wgCacheDirectory.
1619 $wgUseLocalMessageCache = false;
1622 * Defines format of local cache
1623 * true - Serialized object
1624 * false - PHP source file (Warning - security risk)
1626 $wgLocalMessageCacheSerialized = true;
1629 * Instead of caching everything, keep track which messages are requested and
1630 * load only most used messages. This only makes sense if there is lots of
1631 * interface messages customised in the wiki (like hundreds in many languages).
1633 $wgAdaptiveMessageCache = false;
1636 * Localisation cache configuration. Associative array with keys:
1637 * class: The class to use. May be overridden by extensions.
1639 * store: The location to store cache data. May be 'files', 'db' or
1640 * 'detect'. If set to "files", data will be in CDB files. If set
1641 * to "db", data will be stored to the database. If set to
1642 * "detect", files will be used if $wgCacheDirectory is set,
1643 * otherwise the database will be used.
1645 * storeClass: The class name for the underlying storage. If set to a class
1646 * name, it overrides the "store" setting.
1648 * storeDirectory: If the store class puts its data in files, this is the
1649 * directory it will use. If this is false, $wgCacheDirectory
1652 * manualRecache: Set this to true to disable cache updates on web requests.
1653 * Use maintenance/rebuildLocalisationCache.php instead.
1655 $wgLocalisationCacheConf = array(
1656 'class' => 'LocalisationCache',
1657 'store' => 'detect',
1658 'storeClass' => false,
1659 'storeDirectory' => false,
1660 'manualRecache' => false,
1663 /** Allow client-side caching of pages */
1664 $wgCachePages = true;
1667 * Set this to current time to invalidate all prior cached pages. Affects both
1668 * client- and server-side caching.
1669 * You can get the current date on your server by using the command:
1670 * date +%Y%m%d%H%M%S
1672 $wgCacheEpoch = '20030516000000';
1675 * Bump this number when changing the global style sheets and JavaScript.
1676 * It should be appended in the query string of static CSS and JS includes,
1677 * to ensure that client-side caches do not keep obsolete copies of global
1680 $wgStyleVersion = '303';
1683 * This will cache static pages for non-logged-in users to reduce
1684 * database traffic on public sites.
1685 * Must set $wgShowIPinHeader = false
1687 $wgUseFileCache = false;
1690 * Directory where the cached page will be saved.
1691 * Will default to "{$wgUploadDirectory}/cache" in Setup.php
1693 $wgFileCacheDirectory = false;
1696 * Depth of the subdirectory hierarchy to be created under
1697 * $wgFileCacheDirectory. The subdirectories will be named based on
1698 * the MD5 hash of the title. A value of 0 means all cache files will
1699 * be put directly into the main file cache directory.
1701 $wgFileCacheDepth = 2;
1704 * Keep parsed pages in a cache (objectcache table or memcached)
1705 * to speed up output of the same page viewed by another user with the
1708 * This can provide a significant speedup for medium to large pages,
1709 * so you probably want to keep it on. Extensions that conflict with the
1710 * parser cache should disable the cache on a per-page basis instead.
1712 $wgEnableParserCache = true;
1715 * Append a configured value to the parser cache and the sitenotice key so
1716 * that they can be kept separate for some class of activity.
1718 $wgRenderHashAppend = '';
1721 * If on, the sidebar navigation links are cached for users with the
1722 * current language set. This can save a touch of load on a busy site
1723 * by shaving off extra message lookups.
1725 * However it is also fragile: changing the site configuration, or
1726 * having a variable $wgArticlePath, can produce broken links that
1727 * don't update as expected.
1729 $wgEnableSidebarCache = false;
1732 * Expiry time for the sidebar cache, in seconds
1734 $wgSidebarCacheExpiry = 86400;
1737 * When using the file cache, we can store the cached HTML gzipped to save disk
1738 * space. Pages will then also be served compressed to clients that support it.
1739 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1740 * the default LocalSettings.php! If you enable this, remove that setting first.
1742 * Requires zlib support enabled in PHP.
1747 * Whether MediaWiki should send an ETag header. Seems to cause
1748 * broken behavior with Squid 2.6, see bug 7098.
1752 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1753 * problems when the user requests two pages within a short period of time. This
1754 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1757 $wgClockSkewFudge = 5;
1760 * Invalidate various caches when LocalSettings.php changes. This is equivalent
1761 * to setting $wgCacheEpoch to the modification time of LocalSettings.php, as
1762 * was previously done in the default LocalSettings.php file.
1764 * On high-traffic wikis, this should be set to false, to avoid the need to
1765 * check the file modification time, and to avoid the performance impact of
1766 * unnecessary cache invalidations.
1768 $wgInvalidateCacheOnLocalSettingsChange = true;
1770 /** @} */ # end of cache settings
1772 /************************************************************************//**
1773 * @name HTTP proxy (Squid) settings
1775 * Many of these settings apply to any HTTP proxy used in front of MediaWiki,
1776 * although they are referred to as Squid settings for historical reasons.
1778 * Achieving a high hit ratio with an HTTP proxy requires special
1779 * configuration. See http://www.mediawiki.org/wiki/Manual:Squid_caching for
1786 * Enable/disable Squid.
1787 * See http://www.mediawiki.org/wiki/Manual:Squid_caching
1789 $wgUseSquid = false;
1791 /** If you run Squid3 with ESI support, enable this (default:false): */
1794 /** Send X-Vary-Options header for better caching (requires patched Squid) */
1797 /** Add X-Forwarded-Proto to the Vary and X-Vary-Options headers for API
1798 * requests and RSS/Atom feeds. Use this if you have an SSL termination setup
1799 * and need to split the cache between HTTP and HTTPS for API requests,
1800 * feed requests and HTTP redirect responses in order to prevent cache
1801 * pollution. This does not affect 'normal' requests to index.php other than
1804 $wgVaryOnXFP = false;
1807 * Internal server name as known to Squid, if different. Example:
1809 * $wgInternalServer = 'http://yourinternal.tld:8000';
1812 $wgInternalServer = false;
1815 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1816 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1817 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1820 $wgSquidMaxage = 18000;
1823 * Default maximum age for raw CSS/JS accesses
1825 $wgForcedRawSMaxage = 300;
1828 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1830 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1831 * headers sent/modified from these proxies when obtaining the remote IP address
1833 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1835 $wgSquidServers = array();
1838 * As above, except these servers aren't purged on page changes; use to set a
1839 * list of trusted proxies, etc.
1841 $wgSquidServersNoPurge = array();
1843 /** Maximum number of titles to purge in any one client operation */
1844 $wgMaxSquidPurgeTitles = 400;
1847 * HTCP multicast address. Set this to a multicast IP address to enable HTCP.
1849 * Note that MediaWiki uses the old non-RFC compliant HTCP format, which was
1850 * present in the earliest Squid implementations of the protocol.
1852 $wgHTCPMulticastAddress = false;
1855 * HTCP multicast port.
1856 * @see $wgHTCPMulticastAddress
1861 * HTCP multicast TTL.
1862 * @see $wgHTCPMulticastAddress
1864 $wgHTCPMulticastTTL = 1;
1866 /** Should forwarded Private IPs be accepted? */
1867 $wgUsePrivateIPs = false;
1869 /** @} */ # end of HTTP proxy settings
1871 /************************************************************************//**
1872 * @name Language, regional and character encoding settings
1876 /** Site language code, should be one of ./languages/Language(.*).php */
1877 $wgLanguageCode = 'en';
1880 * Some languages need different word forms, usually for different cases.
1881 * Used in Language::convertGrammar(). Example:
1884 * $wgGrammarForms['en']['genitive']['car'] = 'car\'s';
1887 $wgGrammarForms = array();
1889 /** Treat language links as magic connectors, not inline links */
1890 $wgInterwikiMagic = true;
1892 /** Hide interlanguage links from the sidebar */
1893 $wgHideInterlanguageLinks = false;
1895 /** List of language names or overrides for default names in Names.php */
1896 $wgExtraLanguageNames = array();
1899 * List of language codes that don't correspond to an actual language.
1900 * These codes are mostly leftoffs from renames, or other legacy things.
1901 * This array makes them not appear as a selectable language on the installer,
1902 * and excludes them when running the transstat.php script.
1904 $wgDummyLanguageCodes = array(
1907 'be-x-old' => 'be-tarask',
1911 'qqq' => 'qqq', # Used for message documentation.
1912 'qqx' => 'qqx', # Used for viewing message keys.
1915 'zh-classical' => 'lzh',
1916 'zh-min-nan' => 'nan',
1921 * Character set for use in the article edit box. Language-specific encodings
1924 * This historic feature is one of the first that was added by former MediaWiki
1925 * team leader Brion Vibber, and is used to support the Esperanto x-system.
1927 $wgEditEncoding = '';
1930 * Set this to true to replace Arabic presentation forms with their standard
1931 * forms in the U+0600-U+06FF block. This only works if $wgLanguageCode is
1934 * Note that pages with titles containing presentation forms will become
1935 * inaccessible, run maintenance/cleanupTitles.php to fix this.
1937 $wgFixArabicUnicode = true;
1940 * Set this to true to replace ZWJ-based chillu sequences in Malayalam text
1941 * with their Unicode 5.1 equivalents. This only works if $wgLanguageCode is
1942 * set to "ml". Note that some clients (even new clients as of 2010) do not
1943 * support these characters.
1945 * If you enable this on an existing wiki, run maintenance/cleanupTitles.php to
1946 * fix any ZWJ sequences in existing page titles.
1948 $wgFixMalayalamUnicode = true;
1951 * Set this to always convert certain Unicode sequences to modern ones
1952 * regardless of the content language. This has a small performance
1955 * See $wgFixArabicUnicode and $wgFixMalayalamUnicode for conversion
1960 $wgAllUnicodeFixes = false;
1963 * Set this to eg 'ISO-8859-1' to perform character set conversion when
1964 * loading old revisions not marked with "utf-8" flag. Use this when
1965 * converting a wiki from MediaWiki 1.4 or earlier to UTF-8 without the
1966 * burdensome mass conversion of old text data.
1968 * NOTE! This DOES NOT touch any fields other than old_text.Titles, comments,
1969 * user names, etc still must be converted en masse in the database before
1970 * continuing as a UTF-8 wiki.
1972 $wgLegacyEncoding = false;
1975 * Browser Blacklist for unicode non compliant browsers. Contains a list of
1976 * regexps : "/regexp/" matching problematic browsers. These browsers will
1977 * be served encoded unicode in the edit box instead of real unicode.
1979 $wgBrowserBlackList = array(
1981 * Netscape 2-4 detection
1982 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
1983 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
1984 * with a negative assertion. The [UIN] identifier specifies the level of security
1985 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
1986 * The language string is unreliable, it is missing on NS4 Mac.
1988 * Reference: http://www.psychedelix.com/agents/index.shtml
1990 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
1991 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
1992 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
1995 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1998 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1999 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2000 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2003 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2004 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2006 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2009 * Google wireless transcoder, seems to eat a lot of chars alive
2010 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2012 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2016 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
2017 * create stub reference rows in the text table instead of copying
2018 * the full text of all current entries from 'cur' to 'text'.
2020 * This will speed up the conversion step for large sites, but
2021 * requires that the cur table be kept around for those revisions
2022 * to remain viewable.
2024 * maintenance/migrateCurStubs.php can be used to complete the
2025 * migration in the background once the wiki is back online.
2027 * This option affects the updaters *only*. Any present cur stub
2028 * revisions will be readable at runtime regardless of this setting.
2030 $wgLegacySchemaConversion = false;
2033 * Enable to allow rewriting dates in page text.
2034 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES.
2036 $wgUseDynamicDates = false;
2038 * Enable dates like 'May 12' instead of '12 May', this only takes effect if
2039 * the interface is set to English.
2041 $wgAmericanDates = false;
2043 * For Hindi and Arabic use local numerals instead of Western style (0-9)
2044 * numerals in interface.
2046 $wgTranslateNumerals = true;
2049 * Translation using MediaWiki: namespace.
2050 * Interface messages will be loaded from the database.
2052 $wgUseDatabaseMessages = true;
2055 * Expiry time for the message cache key
2057 $wgMsgCacheExpiry = 86400;
2060 * Maximum entry size in the message cache, in bytes
2062 $wgMaxMsgCacheEntrySize = 10000;
2064 /** Whether to enable language variant conversion. */
2065 $wgDisableLangConversion = false;
2067 /** Whether to enable language variant conversion for links. */
2068 $wgDisableTitleConversion = false;
2070 /** Whether to enable cononical language links in meta data. */
2071 $wgCanonicalLanguageLinks = true;
2073 /** Default variant code, if false, the default will be the language code */
2074 $wgDefaultLanguageVariant = false;
2077 * Disabled variants array of language variant conversion. Example:
2079 * $wgDisabledVariants[] = 'zh-mo';
2080 * $wgDisabledVariants[] = 'zh-my';
2086 * $wgDisabledVariants = array('zh-mo', 'zh-my');
2089 $wgDisabledVariants = array();
2092 * Like $wgArticlePath, but on multi-variant wikis, this provides a
2093 * path format that describes which parts of the URL contain the
2094 * language variant. For Example:
2096 * $wgLanguageCode = 'sr';
2097 * $wgVariantArticlePath = '/$2/$1';
2098 * $wgArticlePath = '/wiki/$1';
2100 * A link to /wiki/ would be redirected to /sr/Главна_страна
2102 * It is important that $wgArticlePath not overlap with possible values
2103 * of $wgVariantArticlePath.
2105 $wgVariantArticlePath = false;
2108 * Show a bar of language selection links in the user login and user
2109 * registration forms; edit the "loginlanguagelinks" message to
2112 $wgLoginLanguageSelector = false;
2115 * When translating messages with wfMsg(), it is not always clear what should
2116 * be considered UI messages and what should be content messages.
2118 * For example, for the English Wikipedia, there should be only one 'mainpage',
2119 * so when getting the link for 'mainpage', we should treat it as site content
2120 * and call wfMsgForContent(), but for rendering the text of the link, we call
2121 * wfMsg(). The code behaves this way by default. However, sites like the
2122 * Wikimedia Commons do offer different versions of 'mainpage' and the like for
2123 * different languages. This array provides a way to override the default
2124 * behavior. For example, to allow language-specific main page and community
2127 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2129 $wgForceUIMsgAsContentMsg = array();
2132 * Fake out the timezone that the server thinks it's in. This will be used for
2133 * date display and not for what's stored in the DB. Leave to null to retain
2134 * your server's OS-based timezone value.
2136 * This variable is currently used only for signature formatting and for local
2137 * time/date parser variables ({{LOCALTIME}} etc.)
2139 * Timezones can be translated by editing MediaWiki messages of type
2140 * timezone-nameinlowercase like timezone-utc.
2144 * $wgLocaltimezone = 'GMT';
2145 * $wgLocaltimezone = 'PST8PDT';
2146 * $wgLocaltimezone = 'Europe/Sweden';
2147 * $wgLocaltimezone = 'CET';
2150 $wgLocaltimezone = null;
2153 * Set an offset from UTC in minutes to use for the default timezone setting
2154 * for anonymous users and new user accounts.
2156 * This setting is used for most date/time displays in the software, and is
2157 * overrideable in user preferences. It is *not* used for signature timestamps.
2159 * By default, this will be set to match $wgLocaltimezone.
2161 $wgLocalTZoffset = null;
2163 /** @} */ # End of language/charset settings
2165 /*************************************************************************//**
2166 * @name Output format and skin settings
2170 /** The default Content-Type header. */
2171 $wgMimeType = 'text/html';
2174 * The content type used in script tags. This is mostly going to be ignored if
2175 * $wgHtml5 is true, at least for actual HTML output, since HTML5 doesn't
2176 * require a MIME type for JavaScript or CSS (those are the default script and
2179 $wgJsMimeType = 'text/javascript';
2182 * The HTML document type. Ignored if $wgHtml5 is true, since <!DOCTYPE html>
2183 * doesn't actually have a doctype part to put this variable's contents in.
2185 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
2188 * The URL of the document type declaration. Ignored if $wgHtml5 is true,
2189 * since HTML5 has no DTD, and <!DOCTYPE html> doesn't actually have a DTD part
2190 * to put this variable's contents in.
2192 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
2195 * The default xmlns attribute. Ignored if $wgHtml5 is true (or it's supposed
2196 * to be), since we don't currently support XHTML5, and in HTML5 (i.e., served
2197 * as text/html) the attribute has no effect, so why bother?
2199 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
2202 * Should we output an HTML5 doctype? If false, use XHTML 1.0 Transitional
2203 * instead, and disable HTML5 features. This may eventually be removed and set
2204 * to always true. If it's true, a number of other settings will be irrelevant
2205 * and have no effect.
2210 * Defines the value of the version attribute in the <html> tag, if any.
2211 * This is ignored if $wgHtml5 is false. If $wgAllowRdfaAttributes and
2212 * $wgHtml5 are both true, and this evaluates to boolean false (like if it's
2213 * left at the default null value), it will be auto-initialized to the correct
2214 * value for RDFa+HTML5. As such, you should have no reason to ever actually
2215 * set this to anything.
2217 $wgHtml5Version = null;
2220 * Enabled RDFa attributes for use in wikitext.
2221 * NOTE: Interaction with HTML5 is somewhat underspecified.
2223 $wgAllowRdfaAttributes = false;
2226 * Enabled HTML5 microdata attributes for use in wikitext, if $wgHtml5 is also true.
2228 $wgAllowMicrodataAttributes = false;
2231 * Cleanup as much presentational html like valign -> css vertical-align as we can
2233 $wgCleanupPresentationalAttributes = true;
2236 * Should we try to make our HTML output well-formed XML? If set to false,
2237 * output will be a few bytes shorter, and the HTML will arguably be more
2238 * readable. If set to true, life will be much easier for the authors of
2239 * screen-scraping bots, and the HTML will arguably be more readable.
2241 * Setting this to false may omit quotation marks on some attributes, omit
2242 * slashes from some self-closing tags, omit some ending tags, etc., where
2243 * permitted by HTML5. Setting it to true will not guarantee that all pages
2244 * will be well-formed, although non-well-formed pages should be rare and it's
2245 * a bug if you find one. Conversely, setting it to false doesn't mean that
2246 * all XML-y constructs will be omitted, just that they might be.
2248 * Because of compatibility with screen-scraping bots, and because it's
2249 * controversial, this is currently left to true by default.
2251 $wgWellFormedXml = true;
2254 * Permit other namespaces in addition to the w3.org default.
2255 * Use the prefix for the key and the namespace for the value. For
2257 * $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
2258 * Normally we wouldn't have to define this in the root <html>
2259 * element, but IE needs it there in some circumstances.
2261 * This is ignored if $wgHtml5 is true, for the same reason as
2262 * $wgXhtmlDefaultNamespace.
2264 $wgXhtmlNamespaces = array();
2267 * Show IP address, for non-logged in users. It's necessary to switch this off
2268 * for some forms of caching.
2270 $wgShowIPinHeader = true;
2273 * Use a user's real name inside the user interface for display instead of the username
2276 $wgRealNameInInterface = false;
2279 * Site notice shown at the top of each page
2281 * MediaWiki:Sitenotice page, which will override this. You can also
2282 * provide a separate message for logged-out users using the
2283 * MediaWiki:Anonnotice page.
2288 * A subtitle to add to the tagline, for skins that have it/
2290 $wgExtraSubtitle = '';
2293 * If this is set, a "donate" link will appear in the sidebar. Set it to a URL.
2295 $wgSiteSupportPage = '';
2298 * Validate the overall output using tidy and refuse
2299 * to display the page if it's not valid.
2301 $wgValidateAllHtml = false;
2304 * Default skin, for new users and anonymous visitors. Registered users may
2305 * change this to any one of the other available skins in their preferences.
2306 * This has to be completely lowercase; see the "skins" directory for the list
2307 * of available skins.
2309 $wgDefaultSkin = 'vector';
2312 * Specify the name of a skin that should not be presented in the list of
2313 * available skins. Use for blacklisting a skin which you do not want to
2314 * remove from the .../skins/ directory
2317 /** Array for more like $wgSkipSkin. */
2318 $wgSkipSkins = array();
2321 * Optionally, we can specify a stylesheet to use for media="handheld".
2322 * This is recognized by some, but not all, handheld/mobile/PDA browsers.
2323 * If left empty, compliant handheld browsers won't pick up the skin
2324 * stylesheet, which is specified for 'screen' media.
2326 * Can be a complete URL, base-relative path, or $wgStylePath-relative path.
2327 * Try 'chick/main.css' to apply the Chick styles to the MonoBook HTML.
2329 * Will also be switched in when 'handheld=yes' is added to the URL, like
2330 * the 'printable=yes' mode for print media.
2332 $wgHandheldStyle = false;
2335 * If set, 'screen' and 'handheld' media specifiers for stylesheets are
2336 * transformed such that they apply to the iPhone/iPod Touch Mobile Safari,
2337 * which doesn't recognize 'handheld' but does support media queries on its
2340 * Consider only using this if you have a *really good* handheld stylesheet,
2341 * as iPhone users won't have any way to disable it and use the "grown-up"
2344 $wgHandheldForIPhone = false;
2347 * Allow user Javascript page?
2348 * This enables a lot of neat customizations, but may
2349 * increase security risk to users and server load.
2351 $wgAllowUserJs = false;
2354 * Allow user Cascading Style Sheets (CSS)?
2355 * This enables a lot of neat customizations, but may
2356 * increase security risk to users and server load.
2358 $wgAllowUserCss = false;
2361 * Allow user-preferences implemented in CSS?
2362 * This allows users to customise the site appearance to a greater
2363 * degree; disabling it will improve page load times.
2365 $wgAllowUserCssPrefs = true;
2367 /** Use the site's Javascript page? */
2368 $wgUseSiteJs = true;
2370 /** Use the site's Cascading Style Sheets (CSS)? */
2371 $wgUseSiteCss = true;
2374 * Break out of framesets. This can be used to prevent clickjacking attacks,
2375 * or to prevent external sites from framing your site with ads.
2377 $wgBreakFrames = false;
2380 * The X-Frame-Options header to send on pages sensitive to clickjacking
2381 * attacks, such as edit pages. This prevents those pages from being displayed
2382 * in a frame or iframe. The options are:
2384 * - 'DENY': Do not allow framing. This is recommended for most wikis.
2386 * - 'SAMEORIGIN': Allow framing by pages on the same domain. This can be used
2387 * to allow framing within a trusted domain. This is insecure if there
2388 * is a page on the same domain which allows framing of arbitrary URLs.
2390 * - false: Allow all framing. This opens up the wiki to XSS attacks and thus
2391 * full compromise of local user accounts. Private wikis behind a
2392 * corporate firewall are especially vulnerable. This is not
2395 * For extra safety, set $wgBreakFrames = true, to prevent framing on all pages,
2396 * not just edit pages.
2398 $wgEditPageFrameOptions = 'DENY';
2401 * Disable output compression (enabled by default if zlib is available)
2403 $wgDisableOutputCompression = false;
2406 * Should we allow a broader set of characters in id attributes, per HTML5? If
2407 * not, use only HTML 4-compatible IDs. This option is for testing -- when the
2408 * functionality is ready, it will be on by default with no option.
2410 * Currently this appears to work fine in all browsers, but it's disabled by
2411 * default because it normalizes id's a bit too aggressively, breaking preexisting
2412 * content (particularly Cite). See bug 27733, bug 27694, bug 27474.
2414 $wgExperimentalHtmlIds = false;
2417 * Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code
2418 * You can add new icons to the built in copyright or poweredby, or you can create
2419 * a new block. Though note that you may need to add some custom css to get good styling
2420 * of new blocks in monobook. vector and modern should work without any special css.
2422 * $wgFooterIcons itself is a key/value array.
2423 * The key is the name of a block that the icons will be wrapped in. The final id varies
2424 * by skin; Monobook and Vector will turn poweredby into f-poweredbyico while Modern
2425 * turns it into mw_poweredby.
2426 * The value is either key/value array of icons or a string.
2427 * In the key/value array the key may or may not be used by the skin but it can
2428 * be used to find the icon and unset it or change the icon if needed.
2429 * This is useful for disabling icons that are set by extensions.
2430 * The value should be either a string or an array. If it is a string it will be output
2431 * directly as html, however some skins may choose to ignore it. An array is the preferred format
2432 * for the icon, the following keys are used:
2433 * src: An absolute url to the image to use for the icon, this is recommended
2434 * but not required, however some skins will ignore icons without an image
2435 * url: The url to use in the <a> arround the text or icon, if not set an <a> will not be outputted
2436 * alt: This is the text form of the icon, it will be displayed without an image in
2437 * skins like Modern or if src is not set, and will otherwise be used as
2438 * the alt="" for the image. This key is required.
2439 * width and height: If the icon specified by src is not of the standard size
2440 * you can specify the size of image to use with these keys.
2441 * Otherwise they will default to the standard 88x31.
2443 $wgFooterIcons = array(
2444 "copyright" => array(
2445 "copyright" => array(), // placeholder for the built in copyright icon
2447 "poweredby" => array(
2448 "mediawiki" => array(
2449 "src" => null, // Defaults to "$wgStylePath/common/images/poweredby_mediawiki_88x31.png"
2450 "url" => "//www.mediawiki.org/",
2451 "alt" => "Powered by MediaWiki",
2457 * Login / create account link behavior when it's possible for anonymous users to create an account
2458 * true = use a combined login / create account link
2459 * false = split login and create account into two separate links
2461 $wgUseCombinedLoginLink = true;
2464 * Search form behavior for Vector skin only
2465 * true = use an icon search button
2466 * false = use Go & Search buttons
2468 $wgVectorUseSimpleSearch = false;
2471 * Watch and unwatch as an icon rather than a link for Vector skin only
2472 * true = use an icon watch/unwatch button
2473 * false = use watch/unwatch text link
2475 $wgVectorUseIconWatch = false;
2478 * Display user edit counts in various prominent places.
2480 $wgEdititis = false;
2483 * Better directionality support (bug 6100 and related).
2484 * Removed in 1.18, still kept here for LiquidThreads backwards compatibility.
2486 * @deprecated since 1.18
2488 $wgBetterDirectionality = true;
2491 * Some web hosts attempt to rewrite all responses with a 404 (not found)
2492 * status code, mangling or hiding MediaWiki's output. If you are using such a
2493 * host, you should start looking for a better one. While you're doing that,
2494 * set this to false to convert some of MediaWiki's 404 responses to 200 so
2495 * that the generated error pages can be seen.
2497 * In cases where for technical reasons it is more important for MediaWiki to
2498 * send the correct status code than for the body to be transmitted intact,
2499 * this configuration variable is ignored.
2501 $wgSend404Code = true;
2503 /** @} */ # End of output format settings }
2505 /*************************************************************************//**
2506 * @name Resource loader settings
2511 * Client-side resource modules. Extensions should add their module definitions
2515 * $wgResourceModules['ext.myExtension'] = array(
2516 * 'scripts' => 'myExtension.js',
2517 * 'styles' => 'myExtension.css',
2518 * 'dependencies' => array( 'jquery.cookie', 'jquery.tabIndex' ),
2519 * 'localBasePath' => dirname( __FILE__ ),
2520 * 'remoteExtPath' => 'MyExtension',
2523 $wgResourceModules = array();
2526 * Extensions should register foreign module sources here. 'local' is a
2527 * built-in source that is not in this array, but defined by
2528 * ResourceLoader::__construct() so that it cannot be unset.
2531 * $wgResourceLoaderSources['foo'] = array(
2532 * 'loadScript' => 'http://example.org/w/load.php',
2533 * 'apiScript' => 'http://example.org/w/api.php'
2536 $wgResourceLoaderSources = array();
2539 * Default 'remoteBasePath' value for resource loader modules.
2540 * If not set, then $wgScriptPath will be used as a fallback.
2542 $wgResourceBasePath = null;
2545 * Maximum time in seconds to cache resources served by the resource loader
2547 $wgResourceLoaderMaxage = array(
2548 'versioned' => array(
2549 // Squid/Varnish but also any other public proxy cache between the client and MediaWiki
2550 'server' => 30 * 24 * 60 * 60, // 30 days
2551 // On the client side (e.g. in the browser cache).
2552 'client' => 30 * 24 * 60 * 60, // 30 days
2554 'unversioned' => array(
2555 'server' => 5 * 60, // 5 minutes
2556 'client' => 5 * 60, // 5 minutes
2561 * Whether to embed private modules inline with HTML output or to bypass
2562 * caching and check the user parameter against $wgUser to prevent
2563 * unauthorized access to private modules.
2565 $wgResourceLoaderInlinePrivateModules = true;
2568 * The default debug mode (on/off) for of ResourceLoader requests. This will still
2569 * be overridden when the debug URL parameter is used.
2571 $wgResourceLoaderDebug = false;
2574 * Enable embedding of certain resources using Edge Side Includes. This will
2575 * improve performance but only works if there is something in front of the
2576 * web server (e..g a Squid or Varnish server) configured to process the ESI.
2578 $wgResourceLoaderUseESI = false;
2581 * Put each statement on its own line when minifying JavaScript. This makes
2582 * debugging in non-debug mode a bit easier.
2584 $wgResourceLoaderMinifierStatementsOnOwnLine = false;
2587 * Maximum line length when minifying JavaScript. This is not a hard maximum:
2588 * the minifier will try not to produce lines longer than this, but may be
2589 * forced to do so in certain cases.
2591 $wgResourceLoaderMinifierMaxLineLength = 1000;
2594 * Whether to include the mediawiki.legacy JS library (old wikibits.js), and its
2597 $wgIncludeLegacyJavaScript = true;
2600 * Whether or not to assing configuration variables to the global window object.
2601 * If this is set to false, old code using deprecated variables like:
2602 * " if ( window.wgRestrictionEdit ) ..."
2604 * " if ( wgIsArticle ) ..."
2605 * will no longer work and needs to use mw.config instead. For example:
2606 * " if ( mw.config.exists('wgRestrictionEdit') )"
2608 * " if ( mw.config.get('wgIsArticle') )".
2610 $wgLegacyJavaScriptGlobals = true;
2613 * If set to a positive number, ResourceLoader will not generate URLs whose
2614 * query string is more than this many characters long, and will instead use
2615 * multiple requests with shorter query strings. This degrades performance,
2616 * but may be needed if your web server has a low (less than, say 1024)
2617 * query string length limit or a low value for suhosin.get.max_value_length
2618 * that you can't increase.
2620 * If set to a negative number, ResourceLoader will assume there is no query
2621 * string length limit.
2623 $wgResourceLoaderMaxQueryLength = -1;
2626 * If set to true, JavaScript modules loaded from wiki pages will be parsed prior
2627 * to minification to validate it.
2629 * Parse errors will result in a JS exception being thrown during module load,
2630 * which avoids breaking other modules loaded in the same request.
2632 $wgResourceLoaderValidateJS = true;
2635 * If set to true, statically-sourced (file-backed) JavaScript resources will
2636 * be parsed for validity before being bundled up into ResourceLoader modules.
2638 * This can be helpful for development by providing better error messages in
2639 * default (non-debug) mode, but JavaScript parsing is slow and memory hungry
2640 * and may fail on large pre-bundled frameworks.
2642 $wgResourceLoaderValidateStaticJS = false;
2644 /** @} */ # End of resource loader settings }
2647 /*************************************************************************//**
2648 * @name Page title and interwiki link settings
2653 * Name of the project namespace. If left set to false, $wgSitename will be
2656 $wgMetaNamespace = false;
2659 * Name of the project talk namespace.
2661 * Normally you can ignore this and it will be something like
2662 * $wgMetaNamespace . "_talk". In some languages, you may want to set this
2663 * manually for grammatical reasons.
2665 $wgMetaNamespaceTalk = false;
2668 * Additional namespaces. If the namespaces defined in Language.php and
2669 * Namespace.php are insufficient, you can create new ones here, for example,
2670 * to import Help files in other languages. You can also override the namespace
2671 * names of existing namespaces. Extensions developers should use
2672 * $wgCanonicalNamespaceNames.
2674 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2675 * no longer be accessible. If you rename it, then you can access them through
2676 * the new namespace name.
2678 * Custom namespaces should start at 100 to avoid conflicting with standard
2679 * namespaces, and should always follow the even/odd main/talk pattern.
2681 # $wgExtraNamespaces = array(
2683 # 101 => "Hilfe_Diskussion",
2685 # 103 => "Discussion_Aide"
2687 $wgExtraNamespaces = array();
2690 * Same as above, but for namespaces with gender distinction.
2691 * Note: the default form for the namespace should also be set
2692 * using $wgExtraNamespaces for the same index.
2695 $wgExtraGenderNamespaces = array();
2699 * These are alternate names for the primary localised namespace names, which
2700 * are defined by $wgExtraNamespaces and the language file. If a page is
2701 * requested with such a prefix, the request will be redirected to the primary
2704 * Set this to a map from namespace names to IDs.
2706 * $wgNamespaceAliases = array(
2707 * 'Wikipedian' => NS_USER,
2711 $wgNamespaceAliases = array();
2714 * Allowed title characters -- regex character class
2715 * Don't change this unless you know what you're doing
2717 * Problematic punctuation:
2718 * - []{}|# Are needed for link syntax, never enable these
2719 * - <> Causes problems with HTML escaping, don't use
2720 * - % Enabled by default, minor problems with path to query rewrite rules, see below
2721 * - + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
2722 * - ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
2724 * All three of these punctuation problems can be avoided by using an alias, instead of a
2725 * rewrite rule of either variety.
2727 * The problem with % is that when using a path to query rewrite rule, URLs are
2728 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
2729 * %253F, for example, becomes "?". Our code does not double-escape to compensate
2730 * for this, indeed double escaping would break if the double-escaped title was
2731 * passed in the query string rather than the path. This is a minor security issue
2732 * because articles can be created such that they are hard to view or edit.
2734 * In some rare cases you may wish to remove + for compatibility with old links.
2736 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
2737 * this breaks interlanguage links
2739 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
2742 * The interwiki prefix of the current wiki, or false if it doesn't have one.
2744 $wgLocalInterwiki = false;
2747 * Expiry time for cache of interwiki table
2749 $wgInterwikiExpiry = 10800;
2751 /** Interwiki caching settings.
2752 $wgInterwikiCache specifies path to constant database file
2753 This cdb database is generated by dumpInterwiki from maintenance
2754 and has such key formats:
2755 dbname:key - a simple key (e.g. enwiki:meta)
2756 _sitename:key - site-scope key (e.g. wiktionary:meta)
2757 __global:key - global-scope key (e.g. __global:meta)
2758 __sites:dbname - site mapping (e.g. __sites:enwiki)
2759 Sites mapping just specifies site name, other keys provide
2760 "local url" data layout.
2761 $wgInterwikiScopes specify number of domains to check for messages:
2762 1 - Just wiki(db)-level
2763 2 - wiki and global levels
2765 $wgInterwikiFallbackSite - if unable to resolve from cache
2767 $wgInterwikiCache = false;
2768 $wgInterwikiScopes = 3;
2769 $wgInterwikiFallbackSite = 'wiki';
2772 * If local interwikis are set up which allow redirects,
2773 * set this regexp to restrict URLs which will be displayed
2774 * as 'redirected from' links.
2776 * It might look something like this:
2777 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
2779 * Leave at false to avoid displaying any incoming redirect markers.
2780 * This does not affect intra-wiki redirects, which don't change
2783 $wgRedirectSources = false;
2786 * Set this to false to avoid forcing the first letter of links to capitals.
2787 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
2788 * appearing with a capital at the beginning of a sentence will *not* go to the
2789 * same place as links in the middle of a sentence using a lowercase initial.
2791 $wgCapitalLinks = true;
2794 * @since 1.16 - This can now be set per-namespace. Some special namespaces (such
2795 * as Special, see MWNamespace::$alwaysCapitalizedNamespaces for the full list) must be
2796 * true by default (and setting them has no effect), due to various things that
2797 * require them to be so. Also, since Talk namespaces need to directly mirror their
2798 * associated content namespaces, the values for those are ignored in favor of the
2799 * subject namespace's setting. Setting for NS_MEDIA is taken automatically from
2801 * EX: $wgCapitalLinkOverrides[ NS_FILE ] = false;
2803 $wgCapitalLinkOverrides = array();
2805 /** Which namespaces should support subpages?
2806 * See Language.php for a list of namespaces.
2808 $wgNamespacesWithSubpages = array(
2811 NS_USER_TALK
=> true,
2812 NS_PROJECT_TALK
=> true,
2813 NS_FILE_TALK
=> true,
2814 NS_MEDIAWIKI
=> true,
2815 NS_MEDIAWIKI_TALK
=> true,
2816 NS_TEMPLATE_TALK
=> true,
2817 NS_HELP_TALK
=> true,
2818 NS_CATEGORY_TALK
=> true
2822 * Array of namespaces which can be deemed to contain valid "content", as far
2823 * as the site statistics are concerned. Useful if additional namespaces also
2824 * contain "content" which should be considered when generating a count of the
2825 * number of articles in the wiki.
2827 $wgContentNamespaces = array( NS_MAIN
);
2830 * Max number of redirects to follow when resolving redirects.
2831 * 1 means only the first redirect is followed (default behavior).
2832 * 0 or less means no redirects are followed.
2834 $wgMaxRedirects = 1;
2837 * Array of invalid page redirect targets.
2838 * Attempting to create a redirect to any of the pages in this array
2839 * will make the redirect fail.
2840 * Userlogout is hard-coded, so it does not need to be listed here.
2841 * (bug 10569) Disallow Mypage and Mytalk as well.
2843 * As of now, this only checks special pages. Redirects to pages in
2844 * other namespaces cannot be invalidated by this variable.
2846 $wgInvalidRedirectTargets = array( 'Filepath', 'Mypage', 'Mytalk' );
2848 /** @} */ # End of title and interwiki settings }
2850 /************************************************************************//**
2851 * @name Parser settings
2852 * These settings configure the transformation from wikitext to HTML.
2857 * Parser configuration. Associative array with the following members:
2859 * class The class name
2861 * preprocessorClass The preprocessor class. Two classes are currently available:
2862 * Preprocessor_Hash, which uses plain PHP arrays for tempoarary
2863 * storage, and Preprocessor_DOM, which uses the DOM module for
2864 * temporary storage. Preprocessor_DOM generally uses less memory;
2865 * the speed of the two is roughly the same.
2867 * If this parameter is not given, it uses Preprocessor_DOM if the
2868 * DOM module is available, otherwise it uses Preprocessor_Hash.
2870 * The entire associative array will be passed through to the constructor as
2871 * the first parameter. Note that only Setup.php can use this variable --
2872 * the configuration will change at runtime via $wgParser member functions, so
2873 * the contents of this variable will be out-of-date. The variable can only be
2874 * changed during LocalSettings.php, in particular, it can't be changed during
2875 * an extension setup function.
2877 $wgParserConf = array(
2878 'class' => 'Parser',
2879 #'preprocessorClass' => 'Preprocessor_Hash',
2882 /** Maximum indent level of toc. */
2883 $wgMaxTocLevel = 999;
2886 * A complexity limit on template expansion
2888 $wgMaxPPNodeCount = 1000000;
2891 * Maximum recursion depth for templates within templates.
2892 * The current parser adds two levels to the PHP call stack for each template,
2893 * and xdebug limits the call stack to 100 by default. So this should hopefully
2894 * stop the parser before it hits the xdebug limit.
2896 $wgMaxTemplateDepth = 40;
2898 /** @see $wgMaxTemplateDepth */
2899 $wgMaxPPExpandDepth = 40;
2901 /** The external URL protocols */
2902 $wgUrlProtocols = array(
2907 'ircs://', // @bug 28503
2909 'telnet://', // Well if we're going to support the above.. -ævar
2910 'nntp://', // @bug 3808 RFC 1738
2917 '//', // for protocol-relative URLs
2921 * If true, removes (substitutes) templates in "~~~~" signatures.
2923 $wgCleanSignatures = true;
2925 /** Whether to allow inline image pointing to other websites */
2926 $wgAllowExternalImages = false;
2929 * If the above is false, you can specify an exception here. Image URLs
2930 * that start with this string are then rendered, while all others are not.
2931 * You can use this to set up a trusted, simple repository of images.
2932 * You may also specify an array of strings to allow multiple sites
2936 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
2937 * $wgAllowExternalImagesFrom = array( 'http://127.0.0.1/', 'http://example.com' );
2940 $wgAllowExternalImagesFrom = '';
2942 /** If $wgAllowExternalImages is false, you can allow an on-wiki
2943 * whitelist of regular expression fragments to match the image URL
2944 * against. If the image matches one of the regular expression fragments,
2945 * The image will be displayed.
2947 * Set this to true to enable the on-wiki whitelist (MediaWiki:External image whitelist)
2948 * Or false to disable it
2950 $wgEnableImageWhitelist = true;
2953 * A different approach to the above: simply allow the <img> tag to be used.
2954 * This allows you to specify alt text and other attributes, copy-paste HTML to
2955 * your wiki more easily, etc. However, allowing external images in any manner
2956 * will allow anyone with editing rights to snoop on your visitors' IP
2957 * addresses and so forth, if they wanted to, by inserting links to images on
2958 * sites they control.
2960 $wgAllowImageTag = false;
2963 * $wgUseTidy: use tidy to make sure HTML output is sane.
2964 * Tidy is a free tool that fixes broken HTML.
2965 * See http://www.w3.org/People/Raggett/tidy/
2967 * - $wgTidyBin should be set to the path of the binary and
2968 * - $wgTidyConf to the path of the configuration file.
2969 * - $wgTidyOpts can include any number of parameters.
2970 * - $wgTidyInternal controls the use of the PECL extension or the
2971 * libtidy (PHP >= 5) extension to use an in-process tidy library instead
2972 * of spawning a separate program.
2973 * Normally you shouldn't need to override the setting except for
2974 * debugging. To install, use 'pear install tidy' and add a line
2975 * 'extension=tidy.so' to php.ini.
2978 /** @see $wgUseTidy */
2979 $wgAlwaysUseTidy = false;
2980 /** @see $wgUseTidy */
2981 $wgTidyBin = 'tidy';
2982 /** @see $wgUseTidy */
2983 $wgTidyConf = $IP.'/includes/tidy.conf';
2984 /** @see $wgUseTidy */
2986 /** @see $wgUseTidy */
2987 $wgTidyInternal = extension_loaded( 'tidy' );
2990 * Put tidy warnings in HTML comments
2991 * Only works for internal tidy.
2993 $wgDebugTidy = false;
2995 /** Allow raw, unchecked HTML in <html>...</html> sections.
2996 * THIS IS VERY DANGEROUS on a publicly editable site, so USE wgGroupPermissions
2997 * TO RESTRICT EDITING to only those that you trust
3002 * Set a default target for external links, e.g. _blank to pop up a new window
3004 $wgExternalLinkTarget = false;
3007 * If true, external URL links in wiki text will be given the
3008 * rel="nofollow" attribute as a hint to search engines that
3009 * they should not be followed for ranking purposes as they
3010 * are user-supplied and thus subject to spamming.
3012 $wgNoFollowLinks = true;
3015 * Namespaces in which $wgNoFollowLinks doesn't apply.
3016 * See Language.php for a list of namespaces.
3018 $wgNoFollowNsExceptions = array();
3021 * If this is set to an array of domains, external links to these domain names
3022 * (or any subdomains) will not be set to rel="nofollow" regardless of the
3023 * value of $wgNoFollowLinks. For instance:
3025 * $wgNoFollowDomainExceptions = array( 'en.wikipedia.org', 'wiktionary.org' );
3027 * This would add rel="nofollow" to links to de.wikipedia.org, but not
3028 * en.wikipedia.org, wiktionary.org, en.wiktionary.org, us.en.wikipedia.org,
3031 $wgNoFollowDomainExceptions = array();
3034 * Allow DISPLAYTITLE to change title display
3036 $wgAllowDisplayTitle = true;
3039 * For consistency, restrict DISPLAYTITLE to titles that normalize to the same
3042 $wgRestrictDisplayTitle = true;
3045 * Maximum number of calls per parse to expensive parser functions such as
3048 $wgExpensiveParserFunctionLimit = 100;
3051 * Preprocessor caching threshold
3052 * Setting it to 'false' will disable the preprocessor cache.
3054 $wgPreprocessorCacheThreshold = 1000;
3057 * Enable interwiki transcluding. Only when iw_trans=1.
3059 $wgEnableScaryTranscluding = false;
3062 * (see next option $wgGlobalDatabase).
3064 $wgTranscludeCacheExpiry = 3600;
3066 /** @} */ # end of parser settings }
3068 /************************************************************************//**
3074 * Method used to determine if a page in a content namespace should be counted
3075 * as a valid article.
3077 * Redirect pages will never be counted as valid articles.
3079 * This variable can have the following values:
3080 * - 'any': all pages as considered as valid articles
3081 * - 'comma': the page must contain a comma to be considered valid
3082 * - 'link': the page must contain a [[wiki link]] to be considered valid
3083 * - null: the value will be set at run time depending on $wgUseCommaCount:
3084 * if $wgUseCommaCount is false, it will be 'link', if it is true
3085 * it will be 'comma'
3087 * See also See http://www.mediawiki.org/wiki/Manual:Article_count
3089 * Retroactively changing this variable will not affect the existing count,
3090 * to update it, you will need to run the maintenance/updateArticleCount.php
3093 $wgArticleCountMethod = null;
3096 * Backward compatibility setting, will set $wgArticleCountMethod if it is null.
3097 * @deprecated since 1.18; use $wgArticleCountMethod instead
3099 $wgUseCommaCount = false;
3102 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
3103 * values are easier on the database. A value of 1 causes the counters to be
3104 * updated on every hit, any higher value n cause them to update *on average*
3105 * every n hits. Should be set to either 1 or something largish, eg 1000, for
3106 * maximum efficiency.
3108 $wgHitcounterUpdateFreq = 1;
3111 * How many days user must be idle before he is considered inactive. Will affect
3112 * the number shown on Special:Statistics and Special:ActiveUsers special page.
3113 * You might want to leave this as the default value, to provide comparable
3114 * numbers between different wikis.
3116 $wgActiveUserDays = 30;
3118 /** @} */ # End of statistics }
3120 /************************************************************************//**
3121 * @name User accounts, authentication
3125 /** For compatibility with old installations set to false */
3126 $wgPasswordSalt = true;
3129 * Specifies the minimal length of a user password. If set to 0, empty pass-
3130 * words are allowed.
3132 $wgMinimalPasswordLength = 1;
3135 * Whether to allow password resets ("enter some identifying data, and we'll send an email
3136 * with a temporary password you can use to get back into the account") identified by
3137 * various bits of data. Setting all of these to false (or the whole variable to false)
3138 * has the effect of disabling password resets entirely
3140 $wgPasswordResetRoutes = array(
3146 * Maximum number of Unicode characters in signature
3148 $wgMaxSigChars = 255;
3151 * Maximum number of bytes in username. You want to run the maintenance
3152 * script ./maintenance/checkUsernames.php once you have changed this value.
3154 $wgMaxNameChars = 255;
3157 * Array of usernames which may not be registered or logged in from
3158 * Maintenance scripts can still use these
3160 $wgReservedUsernames = array(
3161 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
3162 'Conversion script', // Used for the old Wikipedia software upgrade
3163 'Maintenance script', // Maintenance scripts which perform editing, image import script
3164 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
3165 'msg:double-redirect-fixer', // Automatic double redirect fix
3166 'msg:usermessage-editor', // Default user for leaving user messages
3167 'msg:proxyblocker', // For Special:Blockme
3171 * Settings added to this array will override the default globals for the user
3172 * preferences used by anonymous visitors and newly created accounts.
3173 * For instance, to disable section editing links:
3174 * $wgDefaultUserOptions ['editsection'] = 0;
3177 $wgDefaultUserOptions = array(
3178 'ccmeonemails' => 0,
3180 'date' => 'default',
3183 'disablesuggest' => 0,
3184 'editfont' => 'default',
3185 'editondblclick' => 0,
3187 'editsectiononrightclick' => 0,
3188 'enotifminoredits' => 0,
3189 'enotifrevealaddr' => 0,
3190 'enotifusertalkpages' => 1,
3191 'enotifwatchlistpages' => 0,
3192 'extendwatchlist' => 0,
3193 'externaldiff' => 0,
3194 'externaleditor' => 0,
3196 'forceeditsummary' => 0,
3197 'gender' => 'unknown',
3199 'hidepatrolled' => 0,
3200 'highlightbroken' => 1,
3204 'minordefault' => 0,
3205 'newpageshidepatrolled' => 0,
3207 'noconvertlink' => 0,
3208 'norollbackdiff' => 0,
3209 'numberheadings' => 0,
3210 'previewonfirst' => 0,
3211 'previewontop' => 1,
3215 'rememberpassword' => 0,
3217 'searchlimit' => 20,
3218 'showhiddencats' => 0,
3219 'showjumplinks' => 1,
3220 'shownumberswatching' => 1,
3224 'stubthreshold' => 0,
3227 'uselivepreview' => 0,
3229 'watchcreations' => 0,
3230 'watchdefault' => 0,
3231 'watchdeletion' => 0,
3232 'watchlistdays' => 3.0,
3233 'watchlisthideanons' => 0,
3234 'watchlisthidebots' => 0,
3235 'watchlisthideliu' => 0,
3236 'watchlisthideminor' => 0,
3237 'watchlisthideown' => 0,
3238 'watchlisthidepatrolled' => 0,
3244 * Whether or not to allow and use real name fields.
3245 * @deprecated since 1.16, use $wgHiddenPrefs[] = 'realname' below to disable real
3248 $wgAllowRealName = true;
3250 /** An array of preferences to not show for the user */
3251 $wgHiddenPrefs = array();
3254 * Characters to prevent during new account creations.
3255 * This is used in a regular expression character class during
3256 * registration (regex metacharacters like / are escaped).
3258 $wgInvalidUsernameCharacters = '@';
3261 * Character used as a delimiter when testing for interwiki userrights
3262 * (In Special:UserRights, it is possible to modify users on different
3263 * databases if the delimiter is used, e.g. Someuser@enwiki).
3265 * It is recommended that you have this delimiter in
3266 * $wgInvalidUsernameCharacters above, or you will not be able to
3267 * modify the user rights of those users via Special:UserRights
3269 $wgUserrightsInterwikiDelimiter = '@';
3272 * Use some particular type of external authentication. The specific
3273 * authentication module you use will normally require some extra settings to
3276 * null indicates no external authentication is to be used. Otherwise,
3277 * $wgExternalAuthType must be the name of a non-abstract class that extends
3280 * Core authentication modules can be found in includes/extauth/.
3282 $wgExternalAuthType = null;
3285 * Configuration for the external authentication. This may include arbitrary
3286 * keys that depend on the authentication mechanism. For instance,
3287 * authentication against another web app might require that the database login
3288 * info be provided. Check the file where your auth mechanism is defined for
3289 * info on what to put here.
3291 $wgExternalAuthConf = array();
3294 * When should we automatically create local accounts when external accounts
3295 * already exist, if using ExternalAuth? Can have three values: 'never',
3296 * 'login', 'view'. 'view' requires the external database to support cookies,
3297 * and implies 'login'.
3299 * TODO: Implement 'view' (currently behaves like 'login').
3301 $wgAutocreatePolicy = 'login';
3304 * Policies for how each preference is allowed to be changed, in the presence
3305 * of external authentication. The keys are preference keys, e.g., 'password'
3306 * or 'emailaddress' (see Preferences.php et al.). The value can be one of the
3309 * - local: Allow changes to this pref through the wiki interface but only
3310 * apply them locally (default).
3311 * - semiglobal: Allow changes through the wiki interface and try to apply them
3312 * to the foreign database, but continue on anyway if that fails.
3313 * - global: Allow changes through the wiki interface, but only let them go
3314 * through if they successfully update the foreign database.
3315 * - message: Allow no local changes for linked accounts; replace the change
3316 * form with a message provided by the auth plugin, telling the user how to
3317 * change the setting externally (maybe providing a link, etc.). If the auth
3318 * plugin provides no message for this preference, hide it entirely.
3320 * Accounts that are not linked to an external account are never affected by
3321 * this setting. You may want to look at $wgHiddenPrefs instead.
3322 * $wgHiddenPrefs supersedes this option.
3324 * TODO: Implement message, global.
3326 $wgAllowPrefChange = array();
3329 * This is to let user authenticate using https when they come from http.
3330 * Based on an idea by George Herbert on wikitech-l:
3331 * http://lists.wikimedia.org/pipermail/wikitech-l/2010-October/050065.html
3334 $wgSecureLogin = false;
3336 /** @} */ # end user accounts }
3338 /************************************************************************//**
3339 * @name User rights, access control and monitoring
3344 * Number of seconds before autoblock entries expire. Default 86400 = 1 day.
3346 $wgAutoblockExpiry = 86400;
3349 * Set this to true to allow blocked users to edit their own user talk page.
3351 $wgBlockAllowsUTEdit = false;
3353 /** Allow sysops to ban users from accessing Emailuser */
3354 $wgSysopEmailBans = true;
3357 * Limits on the possible sizes of range blocks.
3359 * CIDR notation is hard to understand, it's easy to mistakenly assume that a
3360 * /1 is a small range and a /31 is a large range. Setting this to half the
3361 * number of bits avoids such errors.
3363 $wgBlockCIDRLimit = array(
3364 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
3365 'IPv6' => 64, # 2^64 = ~1.8x10^19 addresses
3369 * If true, blocked users will not be allowed to login. When using this with
3370 * a public wiki, the effect of logging out blocked users may actually be
3371 * avers: unless the user's address is also blocked (e.g. auto-block),
3372 * logging the user out will again allow reading and editing, just as for
3373 * anonymous visitors.
3375 $wgBlockDisablesLogin = false;
3378 * Pages anonymous user may see as an array, e.g.
3381 * $wgWhitelistRead = array ( "Main Page", "Wikipedia:Help");
3384 * Special:Userlogin and Special:ChangePassword are always whitelisted.
3386 * NOTE: This will only work if $wgGroupPermissions['*']['read'] is false --
3387 * see below. Otherwise, ALL pages are accessible, regardless of this setting.
3389 * Also note that this will only protect _pages in the wiki_. Uploaded files
3390 * will remain readable. You can use img_auth.php to protect uploaded files,
3391 * see http://www.mediawiki.org/wiki/Manual:Image_Authorization
3393 $wgWhitelistRead = false;
3396 * Should editors be required to have a validated e-mail
3397 * address before being allowed to edit?
3399 $wgEmailConfirmToEdit = false;
3402 * Permission keys given to users in each group.
3403 * This is an array where the keys are all groups and each value is an
3404 * array of the format (right => boolean).
3406 * The second format is used to support per-namespace permissions.
3407 * Note that this feature does not fully work for all permission types.
3409 * All users are implicitly in the '*' group including anonymous visitors;
3410 * logged-in users are all implicitly in the 'user' group. These will be
3411 * combined with the permissions of all groups that a given user is listed
3412 * in in the user_groups table.
3414 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
3415 * doing! This will wipe all permissions, and may mean that your users are
3416 * unable to perform certain essential tasks or access new functionality
3417 * when new permissions are introduced and default grants established.
3419 * Functionality to make pages inaccessible has not been extensively tested
3420 * for security. Use at your own risk!
3422 * This replaces $wgWhitelistAccount and $wgWhitelistEdit
3424 $wgGroupPermissions = array();
3426 /** @cond file_level_code */
3427 // Implicit group for all visitors
3428 $wgGroupPermissions['*']['createaccount'] = true;
3429 $wgGroupPermissions['*']['read'] = true;
3430 $wgGroupPermissions['*']['edit'] = true;
3431 $wgGroupPermissions['*']['createpage'] = true;
3432 $wgGroupPermissions['*']['createtalk'] = true;
3433 $wgGroupPermissions['*']['writeapi'] = true;
3434 //$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
3436 // Implicit group for all logged-in accounts
3437 $wgGroupPermissions['user']['move'] = true;
3438 $wgGroupPermissions['user']['move-subpages'] = true;
3439 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
3440 $wgGroupPermissions['user']['movefile'] = true;
3441 $wgGroupPermissions['user']['read'] = true;
3442 $wgGroupPermissions['user']['edit'] = true;
3443 $wgGroupPermissions['user']['createpage'] = true;
3444 $wgGroupPermissions['user']['createtalk'] = true;
3445 $wgGroupPermissions['user']['writeapi'] = true;
3446 $wgGroupPermissions['user']['upload'] = true;
3447 $wgGroupPermissions['user']['reupload'] = true;
3448 $wgGroupPermissions['user']['reupload-shared'] = true;
3449 $wgGroupPermissions['user']['minoredit'] = true;
3450 $wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok"
3451 $wgGroupPermissions['user']['sendemail'] = true;
3453 // Implicit group for accounts that pass $wgAutoConfirmAge
3454 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
3456 // Users with bot privilege can have their edits hidden
3457 // from various log pages by default
3458 $wgGroupPermissions['bot']['bot'] = true;
3459 $wgGroupPermissions['bot']['autoconfirmed'] = true;
3460 $wgGroupPermissions['bot']['nominornewtalk'] = true;
3461 $wgGroupPermissions['bot']['autopatrol'] = true;
3462 $wgGroupPermissions['bot']['suppressredirect'] = true;
3463 $wgGroupPermissions['bot']['apihighlimits'] = true;
3464 $wgGroupPermissions['bot']['writeapi'] = true;
3465 #$wgGroupPermissions['bot']['editprotected'] = true; // can edit all protected pages without cascade protection enabled
3467 // Most extra permission abilities go to this group
3468 $wgGroupPermissions['sysop']['block'] = true;
3469 $wgGroupPermissions['sysop']['createaccount'] = true;
3470 $wgGroupPermissions['sysop']['delete'] = true;
3471 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
3472 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
3473 $wgGroupPermissions['sysop']['deletedtext'] = true; // can view deleted revision text
3474 $wgGroupPermissions['sysop']['undelete'] = true;
3475 $wgGroupPermissions['sysop']['editinterface'] = true;
3476 $wgGroupPermissions['sysop']['editusercss'] = true;
3477 $wgGroupPermissions['sysop']['edituserjs'] = true;
3478 $wgGroupPermissions['sysop']['import'] = true;
3479 $wgGroupPermissions['sysop']['importupload'] = true;
3480 $wgGroupPermissions['sysop']['move'] = true;
3481 $wgGroupPermissions['sysop']['move-subpages'] = true;
3482 $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
3483 $wgGroupPermissions['sysop']['patrol'] = true;
3484 $wgGroupPermissions['sysop']['autopatrol'] = true;
3485 $wgGroupPermissions['sysop']['protect'] = true;
3486 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
3487 $wgGroupPermissions['sysop']['rollback'] = true;
3488 $wgGroupPermissions['sysop']['upload'] = true;
3489 $wgGroupPermissions['sysop']['reupload'] = true;
3490 $wgGroupPermissions['sysop']['reupload-shared'] = true;
3491 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
3492 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
3493 $wgGroupPermissions['sysop']['upload_by_url'] = true;
3494 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
3495 $wgGroupPermissions['sysop']['blockemail'] = true;
3496 $wgGroupPermissions['sysop']['markbotedits'] = true;
3497 $wgGroupPermissions['sysop']['apihighlimits'] = true;
3498 $wgGroupPermissions['sysop']['browsearchive'] = true;
3499 $wgGroupPermissions['sysop']['noratelimit'] = true;
3500 $wgGroupPermissions['sysop']['movefile'] = true;
3501 $wgGroupPermissions['sysop']['unblockself'] = true;
3502 $wgGroupPermissions['sysop']['suppressredirect'] = true;
3503 #$wgGroupPermissions['sysop']['mergehistory'] = true;
3505 // Permission to change users' group assignments
3506 $wgGroupPermissions['bureaucrat']['userrights'] = true;
3507 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
3508 // Permission to change users' groups assignments across wikis
3509 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
3510 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
3511 #$wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
3513 #$wgGroupPermissions['sysop']['deleterevision'] = true;
3514 // To hide usernames from users and Sysops
3515 #$wgGroupPermissions['suppress']['hideuser'] = true;
3516 // To hide revisions/log items from users and Sysops
3517 #$wgGroupPermissions['suppress']['suppressrevision'] = true;
3518 // For private suppression log access
3519 #$wgGroupPermissions['suppress']['suppressionlog'] = true;
3522 * The developer group is deprecated, but can be activated if need be
3523 * to use the 'lockdb' and 'unlockdb' special pages. Those require
3524 * that a lock file be defined and creatable/removable by the web
3527 # $wgGroupPermissions['developer']['siteadmin'] = true;
3532 * Permission keys revoked from users in each group.
3533 * This acts the same way as wgGroupPermissions above, except that
3534 * if the user is in a group here, the permission will be removed from them.
3536 * Improperly setting this could mean that your users will be unable to perform
3537 * certain essential tasks, so use at your own risk!
3539 $wgRevokePermissions = array();
3542 * Implicit groups, aren't shown on Special:Listusers or somewhere else
3544 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
3547 * A map of group names that the user is in, to group names that those users
3548 * are allowed to add or revoke.
3550 * Setting the list of groups to add or revoke to true is equivalent to "any group".
3552 * For example, to allow sysops to add themselves to the "bot" group:
3554 * $wgGroupsAddToSelf = array( 'sysop' => array( 'bot' ) );
3556 * Implicit groups may be used for the source group, for instance:
3558 * $wgGroupsRemoveFromSelf = array( '*' => true );
3560 * This allows users in the '*' group (i.e. any user) to remove themselves from
3561 * any group that they happen to be in.
3564 $wgGroupsAddToSelf = array();
3566 /** @see $wgGroupsAddToSelf */
3567 $wgGroupsRemoveFromSelf = array();
3570 * Set of available actions that can be restricted via action=protect
3571 * You probably shouldn't change this.
3572 * Translated through restriction-* messages.
3573 * Title::getRestrictionTypes() will remove restrictions that are not
3574 * applicable to a specific title (create and upload)
3576 $wgRestrictionTypes = array( 'create', 'edit', 'move', 'upload' );
3579 * Rights which can be required for each protection level (via action=protect)
3581 * You can add a new protection level that requires a specific
3582 * permission by manipulating this array. The ordering of elements
3583 * dictates the order on the protection form's lists.
3585 * - '' will be ignored (i.e. unprotected)
3586 * - 'sysop' is quietly rewritten to 'protect' for backwards compatibility
3588 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
3591 * Set the minimum permissions required to edit pages in each
3592 * namespace. If you list more than one permission, a user must
3593 * have all of them to edit pages in that namespace.
3595 * Note: NS_MEDIAWIKI is implicitly restricted to editinterface.
3597 $wgNamespaceProtection = array();
3600 * Pages in namespaces in this array can not be used as templates.
3601 * Elements must be numeric namespace ids.
3602 * Among other things, this may be useful to enforce read-restrictions
3603 * which may otherwise be bypassed by using the template machanism.
3605 $wgNonincludableNamespaces = array();
3608 * Number of seconds an account is required to age before it's given the
3609 * implicit 'autoconfirm' group membership. This can be used to limit
3610 * privileges of new accounts.
3612 * Accounts created by earlier versions of the software may not have a
3613 * recorded creation date, and will always be considered to pass the age test.
3615 * When left at 0, all registered accounts will pass.
3619 * $wgAutoConfirmAge = 600; // ten minutes
3620 * $wgAutoConfirmAge = 3600*24; // one day
3623 $wgAutoConfirmAge = 0;
3626 * Number of edits an account requires before it is autoconfirmed.
3627 * Passing both this AND the time requirement is needed. Example:
3630 * $wgAutoConfirmCount = 50;
3633 $wgAutoConfirmCount = 0;
3636 * Automatically add a usergroup to any user who matches certain conditions.
3638 * array( '&' or '|' or '^' or '!', cond1, cond2, ... )
3639 * where cond1, cond2, ... are themselves conditions; *OR*
3640 * APCOND_EMAILCONFIRMED, *OR*
3641 * array( APCOND_EMAILCONFIRMED ), *OR*
3642 * array( APCOND_EDITCOUNT, number of edits ), *OR*
3643 * array( APCOND_AGE, seconds since registration ), *OR*
3644 * array( APCOND_INGROUPS, group1, group2, ... ), *OR*
3645 * array( APCOND_ISIP, ip ), *OR*
3646 * array( APCOND_IPINRANGE, range ), *OR*
3647 * array( APCOND_AGE_FROM_EDIT, seconds since first edit ), *OR*
3648 * array( APCOND_BLOCKED ), *OR*
3649 * array( APCOND_ISBOT ), *OR*
3650 * similar constructs defined by extensions.
3652 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
3653 * user who has provided an e-mail address.
3655 $wgAutopromote = array(
3656 'autoconfirmed' => array( '&',
3657 array( APCOND_EDITCOUNT
, &$wgAutoConfirmCount ),
3658 array( APCOND_AGE
, &$wgAutoConfirmAge ),
3663 * Automatically add a usergroup to any user who matches certain conditions.
3664 * Does not add the user to the group again if it has been removed.
3665 * Also, does not remove the group if the user no longer meets the criteria.
3668 * array( event => criteria, ... )
3670 * 'onEdit' (when user edits) or 'onView' (when user views the wiki)
3671 * and criteria has the same format as $wgAutopromote
3673 * @see $wgAutopromote
3676 $wgAutopromoteOnce = array(
3677 'onEdit' => array(),
3682 * Put user rights log entries for autopromotion in recent changes?
3685 $wgAutopromoteOnceLogInRC = true;
3688 * $wgAddGroups and $wgRemoveGroups can be used to give finer control over who
3689 * can assign which groups at Special:Userrights. Example configuration:
3692 * // Bureaucrat can add any group
3693 * $wgAddGroups['bureaucrat'] = true;
3694 * // Bureaucrats can only remove bots and sysops
3695 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
3696 * // Sysops can make bots
3697 * $wgAddGroups['sysop'] = array( 'bot' );
3698 * // Sysops can disable other sysops in an emergency, and disable bots
3699 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
3702 $wgAddGroups = array();
3703 /** @see $wgAddGroups */
3704 $wgRemoveGroups = array();
3707 * A list of available rights, in addition to the ones defined by the core.
3708 * For extensions only.
3710 $wgAvailableRights = array();
3713 * Optional to restrict deletion of pages with higher revision counts
3714 * to users with the 'bigdelete' permission. (Default given to sysops.)
3716 $wgDeleteRevisionsLimit = 0;
3718 /** Number of accounts each IP address may create, 0 to disable.
3719 * Requires memcached */
3720 $wgAccountCreationThrottle = 0;
3723 * Edits matching these regular expressions in body text
3724 * will be recognised as spam and rejected automatically.
3726 * There's no administrator override on-wiki, so be careful what you set. :)
3727 * May be an array of regexes or a single string for backwards compatibility.
3729 * See http://en.wikipedia.org/wiki/Regular_expression
3730 * Note that each regex needs a beginning/end delimiter, eg: # or /
3732 $wgSpamRegex = array();
3734 /** Same as the above except for edit summaries */
3735 $wgSummarySpamRegex = array();
3738 * Similarly you can get a function to do the job. The function will be given
3739 * the following args:
3740 * - a Title object for the article the edit is made on
3741 * - the text submitted in the textarea (wpTextbox1)
3742 * - the section number.
3743 * The return should be boolean indicating whether the edit matched some evilness:
3745 * - false : let it through
3747 * @deprecated since 1.17 Use hooks. See SpamBlacklist extension.
3750 $wgFilterCallback = false;
3753 * Whether to use DNS blacklists in $wgDnsBlacklistUrls to check for open proxies
3756 $wgEnableDnsBlacklist = false;
3759 * @deprecated since 1.17 Use $wgEnableDnsBlacklist instead, only kept for backward
3762 $wgEnableSorbs = false;
3765 * List of DNS blacklists to use, if $wgEnableDnsBlacklist is true. This is an
3766 * array of either a URL or an array with the URL and a key (should the blacklist
3767 * require a key). For example:
3769 * $wgDnsBlacklistUrls = array(
3770 * // String containing URL
3771 * 'http.dnsbl.sorbs.net',
3772 * // Array with URL and key, for services that require a key
3773 * array( 'dnsbl.httpbl.net', 'mykey' ),
3774 * // Array with just the URL. While this works, it is recommended that you
3775 * // just use a string as shown above
3776 * array( 'opm.tornevall.org' )
3781 $wgDnsBlacklistUrls = array( 'http.dnsbl.sorbs.net.' );
3784 * @deprecated since 1.17 Use $wgDnsBlacklistUrls instead, only kept for backward
3787 $wgSorbsUrl = array();
3790 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite
3791 * what the other methods might say.
3793 $wgProxyWhitelist = array();
3796 * Simple rate limiter options to brake edit floods. Maximum number actions
3797 * allowed in the given number of seconds; after that the violating client re-
3798 * ceives HTTP 500 error pages until the period elapses.
3800 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
3802 * This option set is experimental and likely to change. Requires memcached.
3804 $wgRateLimits = array(
3806 'anon' => null, // for any and all anonymous edits (aggregate)
3807 'user' => null, // for each logged-in user
3808 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
3809 'ip' => null, // for each anon and recent account
3810 'subnet' => null, // ... with final octet removed
3818 'mailpassword' => array(
3821 'emailuser' => array(
3827 * Set to a filename to log rate limiter hits.
3829 $wgRateLimitLog = null;
3832 * Array of IPs which should be excluded from rate limits.
3833 * This may be useful for whitelisting NAT gateways for conferences, etc.
3835 $wgRateLimitsExcludedIPs = array();
3838 * Log IP addresses in the recentchanges table; can be accessed only by
3839 * extensions (e.g. CheckUser) or a DB admin
3841 $wgPutIPinRC = true;
3844 * Integer defining default number of entries to show on
3845 * special pages which are query-pages such as Special:Whatlinkshere.
3847 $wgQueryPageDefaultLimit = 50;
3850 * Limit password attempts to X attempts per Y seconds per IP per account.
3851 * Requires memcached.
3853 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 );
3855 /** @} */ # end of user rights settings
3857 /************************************************************************//**
3858 * @name Proxy scanner settings
3863 * If you enable this, every editor's IP address will be scanned for open HTTP
3866 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
3867 * ISP and ask for your server to be shut down.
3869 * You have been warned.
3871 $wgBlockOpenProxies = false;
3872 /** Port we want to scan for a proxy */
3873 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
3874 /** Script used to scan */
3875 $wgProxyScriptPath = "$IP/maintenance/proxy_check.php";
3877 $wgProxyMemcExpiry = 86400;
3878 /** This should always be customised in LocalSettings.php */
3879 $wgSecretKey = false;
3880 /** big list of banned IP addresses, in the keys not the values */
3881 $wgProxyList = array();
3883 $wgProxyKey = false;
3885 /** @} */ # end of proxy scanner settings
3887 /************************************************************************//**
3888 * @name Cookie settings
3893 * Default cookie expiration time. Setting to 0 makes all cookies session-only.
3895 $wgCookieExpiration = 180*86400;
3898 * Set to set an explicit domain on the login cookies eg, "justthis.domain.org"
3899 * or ".any.subdomain.net"
3901 $wgCookieDomain = '';
3905 * Set this variable if you want to restrict cookies to a certain path within
3906 * the domain specified by $wgCookieDomain.
3908 $wgCookiePath = '/';
3911 * Whether the "secure" flag should be set on the cookie. This can be:
3912 * - true: Set secure flag
3913 * - false: Don't set secure flag
3914 * - "detect": Set the secure flag if $wgServer is set to an HTTPS URL
3916 $wgCookieSecure = 'detect';
3919 * By default, MediaWiki checks if the client supports cookies during the
3920 * login process, so that it can display an informative error message if
3921 * cookies are disabled. Set this to true if you want to disable this cookie
3924 $wgDisableCookieCheck = false;
3927 * Cookies generated by MediaWiki have names starting with this prefix. Set it
3928 * to a string to use a custom prefix. Setting it to false causes the database
3929 * name to be used as a prefix.
3931 $wgCookiePrefix = false;
3934 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
3935 * in browsers that support this feature. This can mitigates some classes of
3938 $wgCookieHttpOnly = true;
3941 * If the requesting browser matches a regex in this blacklist, we won't
3942 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
3944 $wgHttpOnlyBlacklist = array(
3945 // Internet Explorer for Mac; sometimes the cookies work, sometimes
3946 // they don't. It's difficult to predict, as combinations of path
3947 // and expiration options affect its parsing.
3948 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
3951 /** A list of cookies that vary the cache (for use by extensions) */
3952 $wgCacheVaryCookies = array();
3954 /** Override to customise the session name */
3955 $wgSessionName = false;
3957 /** @} */ # end of cookie settings }
3959 /************************************************************************//**
3960 * @name LaTeX (mathematical formulas)
3965 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
3966 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
3967 * (ImageMagick) installed and available in the PATH.
3968 * Please see math/README for more information.
3972 /* @} */ # end LaTeX }
3974 /************************************************************************//**
3975 * @name Profiling, testing and debugging
3977 * To enable profiling, edit StartProfiler.php
3983 * Filename for debug logging. See http://www.mediawiki.org/wiki/How_to_debug
3984 * The debug log file should be not be publicly accessible if it is used, as it
3985 * may contain private data.
3987 $wgDebugLogFile = '';
3990 * Prefix for debug log lines
3992 $wgDebugLogPrefix = '';
3995 * If true, instead of redirecting, show a page with a link to the redirect
3996 * destination. This allows for the inspection of PHP error messages, and easy
3997 * resubmission of form data. For developer use only.
3999 $wgDebugRedirects = false;
4002 * If true, log debugging data from action=raw and load.php.
4003 * This is normally false to avoid overlapping debug entries due to gen=css and
4006 $wgDebugRawPage = false;
4009 * Send debug data to an HTML comment in the output.
4011 * This may occasionally be useful when supporting a non-technical end-user. It's
4012 * more secure than exposing the debug log file to the web, since the output only
4013 * contains private data for the current user. But it's not ideal for development
4014 * use since data is lost on fatal errors and redirects.
4016 $wgDebugComments = false;
4019 * Write SQL queries to the debug log
4021 $wgDebugDumpSql = false;
4024 * Set to an array of log group keys to filenames.
4025 * If set, wfDebugLog() output for that group will go to that file instead
4026 * of the regular $wgDebugLogFile. Useful for enabling selective logging
4029 $wgDebugLogGroups = array();
4032 * Display debug data at the bottom of the main content area.
4034 * Useful for developers and technical users trying to working on a closed wiki.
4036 $wgShowDebug = false;
4039 * Prefix debug messages with relative timestamp. Very-poor man's profiler.
4040 * Since 1.19 also includes memory usage.
4042 $wgDebugTimestamps = false;
4045 * Print HTTP headers for every request in the debug information.
4047 $wgDebugPrintHttpHeaders = true;
4050 * Show the contents of $wgHooks in Special:Version
4052 $wgSpecialVersionShowHooks = false;
4055 * Whether to show "we're sorry, but there has been a database error" pages.
4056 * Displaying errors aids in debugging, but may display information useful
4059 $wgShowSQLErrors = false;
4062 * If set to true, uncaught exceptions will print a complete stack trace
4063 * to output. This should only be used for debugging, as it may reveal
4064 * private information in function parameters due to PHP's backtrace
4067 $wgShowExceptionDetails = false;
4070 * If true, show a backtrace for database errors
4072 $wgShowDBErrorBacktrace = false;
4075 * Expose backend server host names through the API and various HTML comments
4077 $wgShowHostnames = false;
4080 * If set to true MediaWiki will throw notices for some possible error
4081 * conditions and for deprecated functions.
4083 $wgDevelopmentWarnings = false;
4086 * $wgDeprecationWarnings['limit']
4087 * Release limitation to wfDeprecated warnings, if set to a release number
4088 * development warnings will not be generated for deprecations added in releases
4091 * $wgDeprecationWarnings['whitelist']
4092 * Function name whitelist for wfDeprecated warnings. You will not be warned
4093 * for usage of deprecated functions in this list.
4095 $wgDeprecationWarnings = array( 'limit' => '1.17', 'whitelist' => array() );
4097 /** Only record profiling info for pages that took longer than this */
4098 $wgProfileLimit = 0.0;
4100 /** Don't put non-profiling info into log file */
4101 $wgProfileOnly = false;
4104 * Log sums from profiling into "profiling" table in db.
4106 * You have to create a 'profiling' table in your database before using
4107 * this feature, see maintenance/archives/patch-profiling.sql
4109 * To enable profiling, edit StartProfiler.php
4111 $wgProfileToDatabase = false;
4113 /** If true, print a raw call tree instead of per-function report */
4114 $wgProfileCallTree = false;
4116 /** Should application server host be put into profiling table */
4117 $wgProfilePerHost = false;
4120 * Host for UDP profiler.
4122 * The host should be running a daemon which can be obtained from MediaWiki
4123 * Subversion at: http://svn.wikimedia.org/svnroot/mediawiki/trunk/udpprofile
4125 $wgUDPProfilerHost = '127.0.0.1';
4128 * Port for UDP profiler.
4129 * @see $wgUDPProfilerHost
4131 $wgUDPProfilerPort = '3811';
4133 /** Detects non-matching wfProfileIn/wfProfileOut calls */
4134 $wgDebugProfiling = false;
4136 /** Output debug message on every wfProfileIn/wfProfileOut */
4137 $wgDebugFunctionEntry = 0;
4140 * Destination for wfIncrStats() data...
4141 * 'cache' to go into the system cache, if enabled (memcached)
4142 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
4145 $wgStatsMethod = 'cache';
4148 * When $wgStatsMethod is 'udp', setting this to a string allows statistics to
4149 * be aggregated over more than one wiki. The string will be used in place of
4150 * the DB name in outgoing UDP packets. If this is set to false, the DB name
4153 $wgAggregateStatsID = false;
4155 /** Whereas to count the number of time an article is viewed.
4156 * Does not work if pages are cached (for example with squid).
4158 $wgDisableCounters = false;
4161 * Parser test suite files to be run by parserTests.php when no specific
4162 * filename is passed to it.
4164 * Extensions may add their own tests to this array, or site-local tests
4165 * may be added via LocalSettings.php
4169 $wgParserTestFiles = array(
4170 "$IP/tests/parser/parserTests.txt",
4171 "$IP/tests/parser/extraParserTests.txt"
4175 * If configured, specifies target CodeReview installation to send test
4176 * result data from 'parserTests.php --upload'
4178 * Something like this:
4179 * $wgParserTestRemote = array(
4180 * 'api-url' => 'http://www.mediawiki.org/w/api.php',
4181 * 'repo' => 'MediaWiki',
4182 * 'suite' => 'ParserTests',
4183 * 'path' => '/trunk/phase3', // not used client-side; for reference
4184 * 'secret' => 'qmoicj3mc4mcklmqw', // Shared secret used in HMAC validation
4187 $wgParserTestRemote = false;
4191 * Overwrite the caching key prefix with custom value.
4194 $wgCachePrefix = false;
4197 * Display the new debugging toolbar. This also enables profiling on database
4198 * queries and other useful output.
4202 $wgDebugToolbar = false;
4204 /** @} */ # end of profiling, testing and debugging }
4206 /************************************************************************//**
4212 * Set this to true to disable the full text search feature.
4214 $wgDisableTextSearch = false;
4217 * Set to true to have nicer highligted text in search results,
4218 * by default off due to execution overhead
4220 $wgAdvancedSearchHighlighting = false;
4223 * Regexp to match word boundaries, defaults for non-CJK languages
4224 * should be empty for CJK since the words are not separate
4226 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
4229 * Set to true to have the search engine count total
4230 * search matches to present in the Special:Search UI.
4231 * Not supported by every search engine shipped with MW.
4233 * This could however be slow on larger wikis, and is pretty flaky
4234 * with the current title vs content split. Recommend avoiding until
4235 * that's been worked out cleanly; but this may aid in testing the
4236 * search UI and API to confirm that the result count works.
4238 $wgCountTotalSearchHits = false;
4241 * Template for OpenSearch suggestions, defaults to API action=opensearch
4243 * Sites with heavy load would tipically have these point to a custom
4244 * PHP wrapper to avoid firing up mediawiki for every keystroke
4246 * Placeholders: {searchTerms}
4249 $wgOpenSearchTemplate = false;
4252 * Enable suggestions while typing in search boxes
4253 * (results are passed around in OpenSearch format)
4254 * Requires $wgEnableOpenSearchSuggest = true;
4256 $wgEnableMWSuggest = false;
4259 * Enable OpenSearch suggestions requested by MediaWiki. Set this to
4260 * false if you've disabled MWSuggest or another suggestion script and
4261 * want reduce load caused by cached scripts pulling suggestions.
4263 $wgEnableOpenSearchSuggest = true;
4266 * Expiry time for search suggestion responses
4268 $wgSearchSuggestCacheExpiry = 1200;
4271 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
4273 * Placeholders: {searchTerms}, {namespaces}, {dbname}
4276 $wgMWSuggestTemplate = false;
4279 * If you've disabled search semi-permanently, this also disables updates to the
4280 * table. If you ever re-enable, be sure to rebuild the search table.
4282 $wgDisableSearchUpdate = false;
4285 * List of namespaces which are searched by default. Example:
4288 * $wgNamespacesToBeSearchedDefault[NS_MAIN] = true;
4289 * $wgNamespacesToBeSearchedDefault[NS_PROJECT] = true;
4292 $wgNamespacesToBeSearchedDefault = array(
4297 * Namespaces to be searched when user clicks the "Help" tab
4300 * Same format as $wgNamespacesToBeSearchedDefault
4302 $wgNamespacesToBeSearchedHelp = array(
4308 * If set to true the 'searcheverything' preference will be effective only for logged-in users.
4309 * Useful for big wikis to maintain different search profiles for anonymous and logged-in users.
4312 $wgSearchEverythingOnlyLoggedIn = false;
4315 * Disable the internal MySQL-based search, to allow it to be
4316 * implemented by an extension instead.
4318 $wgDisableInternalSearch = false;
4321 * Set this to a URL to forward search requests to some external location.
4322 * If the URL includes '$1', this will be replaced with the URL-encoded
4325 * For example, to forward to Google you'd have something like:
4326 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
4327 * '&domains=http://example.com' .
4328 * '&sitesearch=http://example.com' .
4329 * '&ie=utf-8&oe=utf-8';
4331 $wgSearchForwardUrl = null;
4334 * Search form behavior
4335 * true = use Go & Search buttons
4336 * false = use Go button & Advanced search link
4338 $wgUseTwoButtonsSearchForm = true;
4341 * Array of namespaces to generate a Google sitemap for when the
4342 * maintenance/generateSitemap.php script is run, or false if one is to be ge-
4343 * nerated for all namespaces.
4345 $wgSitemapNamespaces = false;
4348 * Custom namespace priorities for sitemaps. Setting this will allow you to
4349 * set custom priorities to namsepaces when sitemaps are generated using the
4350 * maintenance/generateSitemap.php script.
4352 * This should be a map of namespace IDs to priority
4354 * $wgSitemapNamespacesPriorities = array(
4359 $wgSitemapNamespacesPriorities = false;
4362 * If true, searches for IP addresses will be redirected to that IP's
4363 * contributions page. E.g. searching for "1.2.3.4" will redirect to
4364 * [[Special:Contributions/1.2.3.4]]
4366 $wgEnableSearchContributorsByIP = true;
4368 /** @} */ # end of search settings
4370 /************************************************************************//**
4371 * @name Edit user interface
4376 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
4377 * fall back to the old behaviour (no merging).
4379 $wgDiff3 = '/usr/bin/diff3';
4382 * Path to the GNU diff utility.
4384 $wgDiff = '/usr/bin/diff';
4387 * Which namespaces have special treatment where they should be preview-on-open
4388 * Internaly only Category: pages apply, but using this extensions (e.g. Semantic MediaWiki)
4389 * can specify namespaces of pages they have special treatment for
4391 $wgPreviewOnOpenNamespaces = array(
4396 * Activate external editor interface for files and pages
4397 * See http://www.mediawiki.org/wiki/Manual:External_editors
4399 $wgUseExternalEditor = true;
4401 /** Go button goes straight to the edit screen if the article doesn't exist. */
4402 $wgGoToEdit = false;
4405 * Enable the UniversalEditButton for browsers that support it
4406 * (currently only Firefox with an extension)
4407 * See http://universaleditbutton.org for more background information
4409 $wgUniversalEditButton = true;
4412 * If user doesn't specify any edit summary when making a an edit, MediaWiki
4413 * will try to automatically create one. This feature can be disabled by set-
4414 * ting this variable false.
4416 $wgUseAutomaticEditSummaries = true;
4418 /** @} */ # end edit UI }
4420 /************************************************************************//**
4422 * See also $wgSiteNotice
4427 * @cond file_level_code
4428 * Set $wgCommandLineMode if it's not set already, to avoid notices
4430 if( !isset( $wgCommandLineMode ) ) {
4431 $wgCommandLineMode = false;
4435 /** For colorized maintenance script output, is your terminal background dark ? */
4436 $wgCommandLineDarkBg = false;
4439 * Array for extensions to register their maintenance scripts with the
4440 * system. The key is the name of the class and the value is the full
4443 $wgMaintenanceScripts = array();
4446 * Set this to a string to put the wiki into read-only mode. The text will be
4447 * used as an explanation to users.
4449 * This prevents most write operations via the web interface. Cache updates may
4450 * still be possible. To prevent database writes completely, use the read_only
4456 * If this lock file exists (size > 0), the wiki will be forced into read-only mode.
4457 * Its contents will be shown to users as part of the read-only warning
4460 * Will default to "{$wgUploadDirectory}/lock_yBgMBwiR" in Setup.php
4462 $wgReadOnlyFile = false;
4465 * When you run the web-based upgrade utility, it will tell you what to set
4466 * this to in order to authorize the upgrade process. It will subsequently be
4467 * used as a password, to authorize further upgrades.
4469 * For security, do not set this to a guessable string. Use the value supplied
4470 * by the install/upgrade process. To cause the upgrader to generate a new key,
4471 * delete the old key from LocalSettings.php.
4473 $wgUpgradeKey = false;
4475 /** @} */ # End of maintenance }
4477 /************************************************************************//**
4478 * @name Recent changes, new pages, watchlist and history
4483 * Recentchanges items are periodically purged; entries older than this many
4485 * Default: 13 weeks = about three months
4487 $wgRCMaxAge = 13 * 7 * 24 * 3600;
4490 * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers
4491 * higher than what will be stored. Note that this is disabled by default
4492 * because we sometimes do have RC data which is beyond the limit for some
4493 * reason, and some users may use the high numbers to display that data which
4496 $wgRCFilterByAge = false;
4499 * List of Days and Limits options to list in the Special:Recentchanges and
4500 * Special:Recentchangeslinked pages.
4502 $wgRCLinkLimits = array( 50, 100, 250, 500 );
4503 $wgRCLinkDays = array( 1, 3, 7, 14, 30 );
4506 * Send recent changes updates via UDP. The updates will be formatted for IRC.
4507 * Set this to the IP address of the receiver.
4509 $wgRC2UDPAddress = false;
4512 * Port number for RC updates
4514 $wgRC2UDPPort = false;
4517 * Prefix to prepend to each UDP packet.
4518 * This can be used to identify the wiki. A script is available called
4519 * mxircecho.py which listens on a UDP port, and uses a prefix ending in a
4520 * tab to identify the IRC channel to send the log line to.
4522 $wgRC2UDPPrefix = '';
4525 * If this is set to true, $wgLocalInterwiki will be prepended to links in the
4526 * IRC feed. If this is set to a string, that string will be used as the prefix.
4528 $wgRC2UDPInterwikiPrefix = false;
4531 * Set to true to omit "bot" edits (by users with the bot permission) from the
4534 $wgRC2UDPOmitBots = false;
4537 * Enable user search in Special:Newpages
4538 * This is really a temporary hack around an index install bug on some Wikipedias.
4539 * Kill it once fixed.
4541 $wgEnableNewpagesUserFilter = true;
4543 /** Use RC Patrolling to check for vandalism */
4544 $wgUseRCPatrol = true;
4546 /** Use new page patrolling to check new pages on Special:Newpages */
4547 $wgUseNPPatrol = true;
4549 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
4552 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
4553 * eg Recentchanges, Newpages. */
4556 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
4557 * A cached version will continue to be served out even if changes
4558 * are made, until this many seconds runs out since the last render.
4560 * If set to 0, feed caching is disabled. Use this for debugging only;
4561 * feed generation can be pretty slow with diffs.
4563 $wgFeedCacheTimeout = 60;
4565 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
4566 * pages larger than this size. */
4567 $wgFeedDiffCutoff = 32768;
4569 /** Override the site's default RSS/ATOM feed for recentchanges that appears on
4570 * every page. Some sites might have a different feed they'd like to promote
4571 * instead of the RC feed (maybe like a "Recent New Articles" or "Breaking news" one).
4572 * Ex: $wgSiteFeed['format'] = "http://example.com/somefeed.xml"; Format can be one
4573 * of either 'rss' or 'atom'.
4575 $wgOverrideSiteFeed = array();
4578 * Available feeds objects
4579 * Should probably only be defined when a page is syndicated ie when
4580 * $wgOut->isSyndicated() is true
4582 $wgFeedClasses = array(
4584 'atom' => 'AtomFeed',
4588 * Which feed types should we provide by default? This can include 'rss',
4589 * 'atom', neither, or both.
4591 $wgAdvertisedFeedTypes = array( 'atom' );
4593 /** Show watching users in recent changes, watchlist and page history views */
4594 $wgRCShowWatchingUsers = false; # UPO
4595 /** Show watching users in Page views */
4596 $wgPageShowWatchingUsers = false;
4597 /** Show the amount of changed characters in recent changes */
4598 $wgRCShowChangedSize = true;
4601 * If the difference between the character counts of the text
4602 * before and after the edit is below that value, the value will be
4603 * highlighted on the RC page.
4605 $wgRCChangedSizeThreshold = 500;
4608 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
4609 * view for watched pages with new changes */
4610 $wgShowUpdatedMarker = true;
4613 * Disable links to talk pages of anonymous users (IPs) in listings on special
4614 * pages like page history, Special:Recentchanges, etc.
4616 $wgDisableAnonTalk = false;
4619 * Enable filtering of categories in Recentchanges
4621 $wgAllowCategorizedRecentChanges = false;
4624 * Allow filtering by change tag in recentchanges, history, etc
4625 * Has no effect if no tags are defined in valid_tag.
4627 $wgUseTagFilter = true;
4629 /** @} */ # end RC/watchlist }
4631 /************************************************************************//**
4632 * @name Copyright and credits settings
4637 * Override for copyright metadata.
4639 * This is the name of the page containing information about the wiki's copyright status,
4640 * which will be added as a link in the footer if it is specified. It overrides
4641 * $wgRightsUrl if both are specified.
4643 $wgRightsPage = null;
4646 * Set this to specify an external URL containing details about the content license used on your wiki.
4647 * If $wgRightsPage is set then this setting is ignored.
4649 $wgRightsUrl = null;
4652 * If either $wgRightsUrl or $wgRightsPage is specified then this variable gives the text for the link.
4653 * If using $wgRightsUrl then this value must be specified. If using $wgRightsPage then the name of the
4654 * page will also be used as the link if this variable is not set.
4656 $wgRightsText = null;
4659 * Override for copyright metadata.
4661 $wgRightsIcon = null;
4664 * Set to an array of metadata terms. Else they will be loaded based on $wgRightsUrl
4666 $wgLicenseTerms = false;
4669 * Set this to some HTML to override the rights icon with an arbitrary logo
4670 * @deprecated since 1.18 Use $wgFooterIcons['copyright']['copyright']
4672 $wgCopyrightIcon = null;
4674 /** Set this to true if you want detailed copyright information forms on Upload. */
4675 $wgUseCopyrightUpload = false;
4678 * Set this to the number of authors that you want to be credited below an
4679 * article text. Set it to zero to hide the attribution block, and a negative
4680 * number (like -1) to show all authors. Note that this will require 2-3 extra
4681 * database hits, which can have a not insignificant impact on performance for
4686 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
4687 * Otherwise, link to a separate credits page. */
4688 $wgShowCreditsIfMax = true;
4690 /** @} */ # end of copyright and credits settings }
4692 /************************************************************************//**
4693 * @name Import / Export
4698 * List of interwiki prefixes for wikis we'll accept as sources for
4699 * Special:Import (for sysops). Since complete page history can be imported,
4700 * these should be 'trusted'.
4702 * If a user has the 'import' permission but not the 'importupload' permission,
4703 * they will only be able to run imports through this transwiki interface.
4705 $wgImportSources = array();
4708 * Optional default target namespace for interwiki imports.
4709 * Can use this to create an incoming "transwiki"-style queue.
4710 * Set to numeric key, not the name.
4712 * Users may override this in the Special:Import dialog.
4714 $wgImportTargetNamespace = null;
4717 * If set to false, disables the full-history option on Special:Export.
4718 * This is currently poorly optimized for long edit histories, so is
4719 * disabled on Wikimedia's sites.
4721 $wgExportAllowHistory = true;
4724 * If set nonzero, Special:Export requests for history of pages with
4725 * more revisions than this will be rejected. On some big sites things
4726 * could get bogged down by very very long pages.
4728 $wgExportMaxHistory = 0;
4731 * Return distinct author list (when not returning full history)
4733 $wgExportAllowListContributors = false ;
4736 * If non-zero, Special:Export accepts a "pagelink-depth" parameter
4737 * up to this specified level, which will cause it to include all
4738 * pages linked to from the pages you specify. Since this number
4739 * can become *insanely large* and could easily break your wiki,
4740 * it's disabled by default for now.
4742 * There's a HARD CODED limit of 5 levels of recursion to prevent a
4743 * crazy-big export from being done by someone setting the depth
4744 * number too high. In other words, last resort safety net.
4746 $wgExportMaxLinkDepth = 0;
4749 * Whether to allow the "export all pages in namespace" option
4751 $wgExportFromNamespaces = false;
4753 /** @} */ # end of import/export }
4755 /*************************************************************************//**
4761 * A list of callback functions which are called once MediaWiki is fully initialised
4763 $wgExtensionFunctions = array();
4766 * Extension messages files.
4768 * Associative array mapping extension name to the filename where messages can be
4769 * found. The file should contain variable assignments. Any of the variables
4770 * present in languages/messages/MessagesEn.php may be defined, but $messages
4771 * is the most common.
4773 * Variables defined in extensions will override conflicting variables defined
4777 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
4780 $wgExtensionMessagesFiles = array();
4783 * Aliases for special pages provided by extensions.
4784 * @deprecated since 1.16 Use $specialPageAliases in a file referred to by $wgExtensionMessagesFiles
4786 $wgExtensionAliasesFiles = array();
4789 * Parser output hooks.
4790 * This is an associative array where the key is an extension-defined tag
4791 * (typically the extension name), and the value is a PHP callback.
4792 * These will be called as an OutputPageParserOutput hook, if the relevant
4793 * tag has been registered with the parser output object.
4795 * Registration is done with $pout->addOutputHook( $tag, $data ).
4797 * The callback has the form:
4798 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
4800 $wgParserOutputHooks = array();
4803 * List of valid skin names.
4804 * The key should be the name in all lower case, the value should be a properly
4805 * cased name for the skin. This value will be prefixed with "Skin" to create the
4806 * class name of the skin to load, and if the skin's class cannot be found through
4807 * the autoloader it will be used to load a .php file by that name in the skins directory.
4808 * The default skins will be added later, by Skin::getSkinNames(). Use
4809 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
4811 $wgValidSkinNames = array();
4814 * Special page list.
4815 * See the top of SpecialPage.php for documentation.
4817 $wgSpecialPages = array();
4820 * Array mapping class names to filenames, for autoloading.
4822 $wgAutoloadClasses = array();
4825 * An array of extension types and inside that their names, versions, authors,
4826 * urls, descriptions and pointers to localized description msgs. Note that
4827 * the version, url, description and descriptionmsg key can be omitted.
4830 * $wgExtensionCredits[$type][] = array(
4831 * 'name' => 'Example extension',
4833 * 'path' => __FILE__,
4834 * 'author' => 'Foo Barstein',
4835 * 'url' => 'http://wwww.example.com/Example%20Extension/',
4836 * 'description' => 'An example extension',
4837 * 'descriptionmsg' => 'exampleextension-desc',
4841 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
4842 * Where 'descriptionmsg' can be an array with message key and parameters:
4843 * 'descriptionmsg' => array( 'exampleextension-desc', param1, param2, ... ),
4845 $wgExtensionCredits = array();
4848 * Authentication plugin.
4849 * @var $wgAuth AuthPlugin
4854 * Global list of hooks.
4855 * Add a hook by doing:
4856 * $wgHooks['event_name'][] = $function;
4858 * $wgHooks['event_name'][] = array($function, $data);
4860 * $wgHooks['event_name'][] = array($object, 'method');
4865 * Maps jobs to their handling classes; extensions
4866 * can add to this to provide custom jobs
4868 $wgJobClasses = array(
4869 'refreshLinks' => 'RefreshLinksJob',
4870 'refreshLinks2' => 'RefreshLinksJob2',
4871 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
4872 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
4873 'sendMail' => 'EmaillingJob',
4874 'enotifNotify' => 'EnotifNotifyJob',
4875 'fixDoubleRedirect' => 'DoubleRedirectJob',
4876 'uploadFromUrl' => 'UploadFromUrlJob',
4881 * Jobs that must be explicitly requested, i.e. aren't run by job runners unless special flags are set.
4884 * - Very long-running jobs.
4885 * - Jobs that you would never want to run as part of a page rendering request.
4886 * - Jobs that you want to run on specialized machines ( like transcoding, or a particular
4887 * machine on your cluster has 'outside' web access you could restrict uploadFromUrl )
4889 $wgJobTypesExcludedFromDefaultQueue = array();
4892 * Additional functions to be performed with updateSpecialPages.
4893 * Expensive Querypages are already updated.
4895 $wgSpecialPageCacheUpdates = array(
4896 'Statistics' => array('SiteStatsUpdate','cacheUpdate')
4900 * Hooks that are used for outputting exceptions. Format is:
4901 * $wgExceptionHooks[] = $funcname
4903 * $wgExceptionHooks[] = array( $class, $funcname )
4904 * Hooks should return strings or false
4906 $wgExceptionHooks = array();
4910 * Page property link table invalidation lists. When a page property
4911 * changes, this may require other link tables to be updated (eg
4912 * adding __HIDDENCAT__ means the hiddencat tracking category will
4913 * have been added, so the categorylinks table needs to be rebuilt).
4914 * This array can be added to by extensions.
4916 $wgPagePropLinkInvalidations = array(
4917 'hiddencat' => 'categorylinks',
4920 /** @} */ # End extensions }
4922 /*************************************************************************//**
4928 * Use experimental, DMOZ-like category browser
4930 $wgUseCategoryBrowser = false;
4933 * On category pages, show thumbnail gallery for images belonging to that
4934 * category instead of listing them as articles.
4936 $wgCategoryMagicGallery = true;
4939 * Paging limit for categories
4941 $wgCategoryPagingLimit = 200;
4944 * Specify how category names should be sorted, when listed on a category page.
4945 * A sorting scheme is also known as a collation.
4947 * Available values are:
4949 * - uppercase: Converts the category name to upper case, and sorts by that.
4951 * - identity: Does no conversion. Sorts by binary value of the string.
4953 * - uca-default: Provides access to the Unicode Collation Algorithm with
4954 * the default element table. This is a compromise collation which sorts
4955 * all languages in a mediocre way. However, it is better than "uppercase".
4957 * To use the uca-default collation, you must have PHP's intl extension
4958 * installed. See http://php.net/manual/en/intl.setup.php . The details of the
4959 * resulting collation will depend on the version of ICU installed on the
4962 * After you change this, you must run maintenance/updateCollation.php to fix
4963 * the sort keys in the database.
4965 * Extensions can define there own collations by subclassing Collation
4966 * and using the Collation::factory hook.
4968 $wgCategoryCollation = 'uppercase';
4970 /** @} */ # End categories }
4972 /*************************************************************************//**
4978 * The logging system has two levels: an event type, which describes the
4979 * general category and can be viewed as a named subset of all logs; and
4980 * an action, which is a specific kind of event that can exist in that
4983 $wgLogTypes = array(
4998 * This restricts log access to those who have a certain right
4999 * Users without this will not see it in the option menu and can not view it
5000 * Restricted logs are not added to recent changes
5001 * Logs should remain non-transcludable
5002 * Format: logtype => permissiontype
5004 $wgLogRestrictions = array(
5005 'suppress' => 'suppressionlog'
5009 * Show/hide links on Special:Log will be shown for these log types.
5011 * This is associative array of log type => boolean "hide by default"
5013 * See $wgLogTypes for a list of available log types.
5016 * $wgFilterLogTypes => array(
5018 * 'import' => false,
5021 * Will display show/hide links for the move and import logs. Move logs will be
5022 * hidden by default unless the link is clicked. Import logs will be shown by
5023 * default, and hidden when the link is clicked.
5025 * A message of the form log-show-hide-<type> should be added, and will be used
5026 * for the link text.
5028 $wgFilterLogTypes = array(
5033 * Lists the message key string for each log type. The localized messages
5034 * will be listed in the user interface.
5036 * Extensions with custom log types may add to this array.
5038 * Since 1.19, if you follow the naming convention log-name-TYPE,
5039 * where TYPE is your log type, yoy don't need to use this array.
5041 $wgLogNames = array(
5042 '' => 'all-logs-page',
5043 'block' => 'blocklogpage',
5044 'protect' => 'protectlogpage',
5045 'rights' => 'rightslog',
5046 'delete' => 'dellogpage',
5047 'upload' => 'uploadlogpage',
5048 'move' => 'movelogpage',
5049 'import' => 'importlogpage',
5050 'patrol' => 'patrol-log-page',
5051 'merge' => 'mergelog',
5052 'suppress' => 'suppressionlog',
5056 * Lists the message key string for descriptive text to be shown at the
5057 * top of each log type.
5059 * Extensions with custom log types may add to this array.
5061 * Since 1.19, if you follow the naming convention log-description-TYPE,
5062 * where TYPE is your log type, yoy don't need to use this array.
5064 $wgLogHeaders = array(
5065 '' => 'alllogstext',
5066 'block' => 'blocklogtext',
5067 'protect' => 'protectlogtext',
5068 'rights' => 'rightslogtext',
5069 'delete' => 'dellogpagetext',
5070 'upload' => 'uploadlogpagetext',
5071 'move' => 'movelogpagetext',
5072 'import' => 'importlogpagetext',
5073 'patrol' => 'patrol-log-header',
5074 'merge' => 'mergelogpagetext',
5075 'suppress' => 'suppressionlogtext',
5079 * Lists the message key string for formatting individual events of each
5080 * type and action when listed in the logs.
5082 * Extensions with custom log types may add to this array.
5084 $wgLogActions = array(
5085 'block/block' => 'blocklogentry',
5086 'block/unblock' => 'unblocklogentry',
5087 'block/reblock' => 'reblock-logentry',
5088 'protect/protect' => 'protectedarticle',
5089 'protect/modify' => 'modifiedarticleprotection',
5090 'protect/unprotect' => 'unprotectedarticle',
5091 'protect/move_prot' => 'movedarticleprotection',
5092 'rights/rights' => 'rightslogentry',
5093 'rights/autopromote' => 'rightslogentry-autopromote',
5094 'upload/upload' => 'uploadedimage',
5095 'upload/overwrite' => 'overwroteimage',
5096 'upload/revert' => 'uploadedimage',
5097 'import/upload' => 'import-logentry-upload',
5098 'import/interwiki' => 'import-logentry-interwiki',
5099 'merge/merge' => 'pagemerge-logentry',
5100 'suppress/block' => 'blocklogentry',
5101 'suppress/reblock' => 'reblock-logentry',
5105 * The same as above, but here values are names of functions,
5107 * @see LogPage::actionText
5110 $wgLogActionsHandlers = array(
5112 'move/*' => 'MoveLogFormatter',
5113 // delete, restore, revision, event
5114 'delete/*' => 'DeleteLogFormatter',
5115 'suppress/revision' => 'DeleteLogFormatter',
5116 'suppress/event' => 'DeleteLogFormatter',
5117 'suppress/delete' => 'DeleteLogFormatter',
5118 'patrol/patrol' => 'PatrolLogFormatter',
5122 * Maintain a log of newusers at Log/newusers?
5124 $wgNewUserLog = true;
5126 /** @} */ # end logging }
5128 /*************************************************************************//**
5129 * @name Special pages (general and miscellaneous)
5134 * Allow special page inclusions such as {{Special:Allpages}}
5136 $wgAllowSpecialInclusion = true;
5139 * Set this to an array of special page names to prevent
5140 * maintenance/updateSpecialPages.php from updating those pages.
5142 $wgDisableQueryPageUpdate = false;
5145 * List of special pages, followed by what subtitle they should go under
5146 * at Special:SpecialPages
5148 $wgSpecialPageGroups = array(
5149 'DoubleRedirects' => 'maintenance',
5150 'BrokenRedirects' => 'maintenance',
5151 'Lonelypages' => 'maintenance',
5152 'Uncategorizedpages' => 'maintenance',
5153 'Uncategorizedcategories' => 'maintenance',
5154 'Uncategorizedimages' => 'maintenance',
5155 'Uncategorizedtemplates' => 'maintenance',
5156 'Unusedcategories' => 'maintenance',
5157 'Unusedimages' => 'maintenance',
5158 'Protectedpages' => 'maintenance',
5159 'Protectedtitles' => 'maintenance',
5160 'Unusedtemplates' => 'maintenance',
5161 'Withoutinterwiki' => 'maintenance',
5162 'Longpages' => 'maintenance',
5163 'Shortpages' => 'maintenance',
5164 'Ancientpages' => 'maintenance',
5165 'Deadendpages' => 'maintenance',
5166 'Wantedpages' => 'maintenance',
5167 'Wantedcategories' => 'maintenance',
5168 'Wantedfiles' => 'maintenance',
5169 'Wantedtemplates' => 'maintenance',
5170 'Unwatchedpages' => 'maintenance',
5171 'Fewestrevisions' => 'maintenance',
5173 'Userlogin' => 'login',
5174 'Userlogout' => 'login',
5175 'CreateAccount' => 'login',
5177 'Recentchanges' => 'changes',
5178 'Recentchangeslinked' => 'changes',
5179 'Watchlist' => 'changes',
5180 'Newimages' => 'changes',
5181 'Newpages' => 'changes',
5183 'Tags' => 'changes',
5185 'Upload' => 'media',
5186 'Listfiles' => 'media',
5187 'MIMEsearch' => 'media',
5188 'FileDuplicateSearch' => 'media',
5189 'Filepath' => 'media',
5191 'Listusers' => 'users',
5192 'Activeusers' => 'users',
5193 'Listgrouprights' => 'users',
5194 'BlockList' => 'users',
5195 'Contributions' => 'users',
5196 'Emailuser' => 'users',
5197 'Listadmins' => 'users',
5198 'Listbots' => 'users',
5199 'Userrights' => 'users',
5201 'Unblock' => 'users',
5202 'Preferences' => 'users',
5203 'ChangeEmail' => 'users',
5204 'ChangePassword' => 'users',
5205 'DeletedContributions' => 'users',
5206 'PasswordReset' => 'users',
5208 'Mostlinked' => 'highuse',
5209 'Mostlinkedcategories' => 'highuse',
5210 'Mostlinkedtemplates' => 'highuse',
5211 'Mostcategories' => 'highuse',
5212 'Mostimages' => 'highuse',
5213 'Mostrevisions' => 'highuse',
5215 'Allpages' => 'pages',
5216 'Prefixindex' => 'pages',
5217 'Listredirects' => 'pages',
5218 'Categories' => 'pages',
5219 'Disambiguations' => 'pages',
5221 'Randompage' => 'redirects',
5222 'Randomredirect' => 'redirects',
5223 'Mypage' => 'redirects',
5224 'Mytalk' => 'redirects',
5225 'Mycontributions' => 'redirects',
5226 'Search' => 'redirects',
5227 'LinkSearch' => 'redirects',
5229 'ComparePages' => 'pagetools',
5230 'Movepage' => 'pagetools',
5231 'MergeHistory' => 'pagetools',
5232 'Revisiondelete' => 'pagetools',
5233 'Undelete' => 'pagetools',
5234 'Export' => 'pagetools',
5235 'Import' => 'pagetools',
5236 'Whatlinkshere' => 'pagetools',
5238 'Statistics' => 'wiki',
5239 'Version' => 'wiki',
5241 'Unlockdb' => 'wiki',
5242 'Allmessages' => 'wiki',
5243 'Popularpages' => 'wiki',
5245 'Specialpages' => 'other',
5246 'Blockme' => 'other',
5247 'Booksources' => 'other',
5250 /** Whether or not to sort special pages in Special:Specialpages */
5252 $wgSortSpecialPages = true;
5255 * On Special:Unusedimages, consider images "used", if they are put
5256 * into a category. Default (false) is not to count those as used.
5258 $wgCountCategorizedImagesAsUsed = false;
5261 * Maximum number of links to a redirect page listed on
5262 * Special:Whatlinkshere/RedirectDestination
5264 $wgMaxRedirectLinksRetrieved = 500;
5266 /** @} */ # end special pages }
5268 /*************************************************************************//**
5274 * Array of allowed values for the title=foo&action=<action> parameter. Syntax is:
5275 * 'foo' => 'ClassName' Load the specified class which subclasses Action
5276 * 'foo' => true Load the class FooAction which subclasses Action
5277 * If something is specified in the getActionOverrides()
5278 * of the relevant Page object it will be used
5279 * instead of the default class.
5280 * 'foo' => false The action is disabled; show an error message
5281 * Unsetting core actions will probably cause things to complain loudly.
5287 'markpatrolled' => true,
5291 'revisiondelete' => true,
5298 * Array of disabled article actions, e.g. view, edit, delete, etc.
5299 * @deprecated since 1.18; just set $wgActions['action'] = false instead
5301 $wgDisabledActions = array();
5304 * Allow the "info" action, very inefficient at the moment
5306 $wgAllowPageInfo = false;
5308 /** @} */ # end actions }
5310 /*************************************************************************//**
5311 * @name Robot (search engine crawler) policy
5312 * See also $wgNoFollowLinks.
5317 * Default robot policy. The default policy is to encourage indexing and fol-
5318 * lowing of links. It may be overridden on a per-namespace and/or per-page
5321 $wgDefaultRobotPolicy = 'index,follow';
5324 * Robot policies per namespaces. The default policy is given above, the array
5325 * is made of namespace constants as defined in includes/Defines.php. You can-
5326 * not specify a different default policy for NS_SPECIAL: it is always noindex,
5327 * nofollow. This is because a number of special pages (e.g., ListPages) have
5328 * many permutations of options that display the same data under redundant
5329 * URLs, so search engine spiders risk getting lost in a maze of twisty special
5330 * pages, all alike, and never reaching your actual content.
5333 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
5335 $wgNamespaceRobotPolicies = array();
5338 * Robot policies per article. These override the per-namespace robot policies.
5339 * Must be in the form of an array where the key part is a properly canonical-
5340 * ised text form title and the value is a robot policy.
5342 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex,follow',
5343 * 'User:Bob' => 'index,follow' );
5344 * Example that DOES NOT WORK because the names are not canonical text forms:
5345 * $wgArticleRobotPolicies = array(
5346 * # Underscore, not space!
5347 * 'Main_Page' => 'noindex,follow',
5348 * # "Project", not the actual project name!
5349 * 'Project:X' => 'index,follow',
5350 * # Needs to be "Abc", not "abc" (unless $wgCapitalLinks is false for that namespace)!
5351 * 'abc' => 'noindex,nofollow'
5354 $wgArticleRobotPolicies = array();
5357 * An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words
5358 * will not function, so users can't decide whether pages in that namespace are
5359 * indexed by search engines. If set to null, default to $wgContentNamespaces.
5361 * $wgExemptFromUserRobotsControl = array( NS_MAIN, NS_TALK, NS_PROJECT );
5363 $wgExemptFromUserRobotsControl = null;
5365 /** @} */ # End robot policy }
5367 /************************************************************************//**
5368 * @name AJAX and API
5369 * Note: The AJAX entry point which this section refers to is gradually being
5370 * replaced by the API entry point, api.php. They are essentially equivalent.
5371 * Both of them are used for dynamic client-side features, via XHR.
5376 * Enable the MediaWiki API for convenient access to
5377 * machine-readable data via api.php
5379 * See http://www.mediawiki.org/wiki/API
5381 $wgEnableAPI = true;
5384 * Allow the API to be used to perform write operations
5385 * (page edits, rollback, etc.) when an authorised user
5388 $wgEnableWriteAPI = true;
5391 * API module extensions
5392 * Associative array mapping module name to class name.
5393 * Extension modules may override the core modules.
5395 $wgAPIModules = array();
5396 $wgAPIMetaModules = array();
5397 $wgAPIPropModules = array();
5398 $wgAPIListModules = array();
5401 * Maximum amount of rows to scan in a DB query in the API
5402 * The default value is generally fine
5404 $wgAPIMaxDBRows = 5000;
5407 * The maximum size (in bytes) of an API result.
5408 * Don't set this lower than $wgMaxArticleSize*1024
5410 $wgAPIMaxResultSize = 8388608;
5413 * The maximum number of uncached diffs that can be retrieved in one API
5414 * request. Set this to 0 to disable API diffs altogether
5416 $wgAPIMaxUncachedDiffs = 1;
5419 * Log file or URL (TCP or UDP) to log API requests to, or false to disable
5420 * API request logging
5422 $wgAPIRequestLog = false;
5425 * Set the timeout for the API help text cache. If set to 0, caching disabled
5427 $wgAPICacheHelpTimeout = 60*60;
5430 * Enable AJAX framework
5435 * List of Ajax-callable functions.
5436 * Extensions acting as Ajax callbacks must register here
5438 $wgAjaxExportList = array();
5441 * Enable watching/unwatching pages using AJAX.
5442 * Requires $wgUseAjax to be true too.
5444 $wgAjaxWatch = true;
5447 * Enable AJAX check for file overwrite, pre-upload
5449 $wgAjaxUploadDestCheck = true;
5452 * Enable previewing licences via AJAX. Also requires $wgEnableAPI to be true.
5454 $wgAjaxLicensePreview = true;
5457 * Settings for incoming cross-site AJAX requests:
5458 * Newer browsers support cross-site AJAX when the target resource allows requests
5459 * from the origin domain by the Access-Control-Allow-Origin header.
5460 * This is currently only used by the API (requests to api.php)
5461 * $wgCrossSiteAJAXdomains can be set using a wildcard syntax:
5463 * '*' matches any number of characters
5464 * '?' matches any 1 character
5467 $wgCrossSiteAJAXdomains = array(
5468 'www.mediawiki.org',
5475 $wgCrossSiteAJAXdomains = array();
5478 * Domains that should not be allowed to make AJAX requests,
5479 * even if they match one of the domains allowed by $wgCrossSiteAJAXdomains
5480 * Uses the same syntax as $wgCrossSiteAJAXdomains
5483 $wgCrossSiteAJAXdomainExceptions = array();
5485 /** @} */ # End AJAX and API }
5487 /************************************************************************//**
5488 * @name Shell and process control
5493 * Maximum amount of virtual memory available to shell processes under linux, in KB.
5495 $wgMaxShellMemory = 102400;
5498 * Maximum file size created by shell processes under linux, in KB
5499 * ImageMagick convert for example can be fairly hungry for scratch space
5501 $wgMaxShellFileSize = 102400;
5504 * Maximum CPU time in seconds for shell processes under linux
5506 $wgMaxShellTime = 180;
5509 * Executable path of the PHP cli binary (php/php5). Should be set up on install.
5511 $wgPhpCli = '/usr/bin/php';
5514 * Locale for LC_CTYPE, to work around http://bugs.php.net/bug.php?id=45132
5515 * For Unix-like operating systems, set this to to a locale that has a UTF-8
5516 * character set. Only the character set is relevant.
5518 $wgShellLocale = 'en_US.utf8';
5520 /** @} */ # End shell }
5522 /************************************************************************//**
5528 * Timeout for HTTP requests done internally
5530 $wgHTTPTimeout = 25;
5533 * Timeout for Asynchronous (background) HTTP requests
5535 $wgAsyncHTTPTimeout = 25;
5538 * Proxy to use for CURL requests.
5540 $wgHTTPProxy = false;
5542 /** @} */ # End HTTP client }
5544 /************************************************************************//**
5546 * See also $wgEnotifUseJobQ.
5551 * Number of jobs to perform per request. May be less than one in which case
5552 * jobs are performed probabalistically. If this is zero, jobs will not be done
5553 * during ordinary apache requests. In this case, maintenance/runJobs.php should
5554 * be run periodically.
5559 * Number of rows to update per job
5561 $wgUpdateRowsPerJob = 500;
5564 * Number of rows to update per query
5566 $wgUpdateRowsPerQuery = 100;
5568 /** @} */ # End job queue }
5570 /************************************************************************//**
5571 * @name HipHop compilation
5576 * The build directory for HipHop compilation.
5577 * Defaults to $IP/maintenance/hiphop/build.
5579 $wgHipHopBuildDirectory = false;
5582 * The HipHop build type. Can be either "Debug" or "Release".
5584 $wgHipHopBuildType = 'Debug';
5587 * Number of parallel processes to use during HipHop compilation, or "detect"
5588 * to guess from system properties.
5590 $wgHipHopCompilerProcs = 'detect';
5593 * Filesystem extensions directory. Defaults to $IP/../extensions.
5595 * To compile extensions with HipHop, set $wgExtensionsDirectory correctly,
5596 * and use code like:
5598 * require( MWInit::extensionSetupPath( 'Extension/Extension.php' ) );
5600 * to include the extension setup file from LocalSettings.php. It is not
5601 * necessary to set this variable unless you use MWInit::extensionSetupPath().
5603 $wgExtensionsDirectory = false;
5606 * A list of files that should be compiled into a HipHop build, in addition to
5607 * those listed in $wgAutoloadClasses. Add to this array in an extension setup
5608 * file in order to add files to the build.
5610 * The files listed here must either be either absolute paths under $IP or
5611 * under $wgExtensionsDirectory, or paths relative to the virtual source root
5612 * "$IP/..", i.e. starting with "phase3" for core files, and "extensions" for
5615 $wgCompiledFiles = array();
5617 /** @} */ # End of HipHop compilation }
5620 /************************************************************************//**
5621 * @name Miscellaneous
5625 /** Name of the external diff engine to use */
5626 $wgExternalDiffEngine = false;
5629 * Disable redirects to special pages and interwiki redirects, which use a 302
5630 * and have no "redirected from" link. Note this is only for articles with #Redirect
5631 * in them. URL's containing a local interwiki prefix (or a non-canonical special
5632 * page name) are still hard redirected regardless of this setting.
5634 $wgDisableHardRedirects = false;
5637 * LinkHolderArray batch size
5640 $wgLinkHolderBatchSize = 1000;
5643 * By default MediaWiki does not register links pointing to same server in externallinks dataset,
5644 * use this value to override:
5646 $wgRegisterInternalExternals = false;
5649 * Maximum number of pages to move at once when moving subpages with a page.
5651 $wgMaximumMovedPages = 100;
5654 * Fix double redirects after a page move.
5655 * Tends to conflict with page move vandalism, use only on a private wiki.
5657 $wgFixDoubleRedirects = false;
5660 * Allow redirection to another page when a user logs in.
5661 * To enable, set to a string like 'Main Page'
5663 $wgRedirectOnLogin = null;
5666 * Configuration for processing pool control, for use in high-traffic wikis.
5667 * An implementation is provided in the PoolCounter extension.
5669 * This configuration array maps pool types to an associative array. The only
5670 * defined key in the associative array is "class", which gives the class name.
5671 * The remaining elements are passed through to the class as constructor
5672 * parameters. Example:
5674 * $wgPoolCounterConf = array( 'ArticleView' => array(
5675 * 'class' => 'PoolCounter_Client',
5676 * 'timeout' => 15, // wait timeout in seconds
5677 * 'workers' => 5, // maximum number of active threads in each pool
5678 * 'maxqueue' => 50, // maximum number of total threads in each pool
5679 * ... any extension-specific options...
5682 $wgPoolCounterConf = null;
5685 * To disable file delete/restore temporarily
5687 $wgUploadMaintenance = false;
5690 * Allows running of selenium tests via maintenance/tests/RunSeleniumTests.php
5692 $wgEnableSelenium = false;
5693 $wgSeleniumTestConfigs = array();
5694 $wgSeleniumConfigFile = null;
5695 $wgDBtestuser = ''; //db user that has permission to create and drop the test databases only
5696 $wgDBtestpassword = '';
5699 * For really cool vim folding this needs to be at the end:
5700 * vim: foldmarker=@{,@} foldmethod=marker