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