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