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