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