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