MediaWiki  1.29.1
DefaultSettings.php
Go to the documentation of this file.
1 <?php
50 if ( !defined( 'MEDIAWIKI' ) ) {
51  echo "This file is part of MediaWiki and is not a valid entry point\n";
52  die( 1 );
53 }
54 
63 
71  'main' => 'GlobalVarConfig::newInstance'
72 ];
73 
78 $wgVersion = '1.29.1';
79 
83 $wgSitename = 'MediaWiki';
84 
92 
110 
119 
126 
127 /************************************************************************/
141 $wgScriptPath = '/wiki';
142 
160 $wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
161  ( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
162  ( strpos( PHP_SAPI, 'isapi' ) === false );
163 
176 
179 /************************************************************************/
202 $wgScript = false;
203 
211 
217 $wgStylePath = false;
219 
226 
233 
239 $wgExtensionDirectory = "{$IP}/extensions";
240 
246 $wgStyleDirectory = "{$IP}/skins";
247 
256 
262 
267 
273 
278 $wgLogo = false;
279 
295 $wgLogoHD = false;
296 
301 $wgFavicon = '/favicon.ico';
302 
309 
319 
335 
342 
351 
367 
370 /************************************************************************/
379 
383 $wgUploadStashMaxAge = 6 * 3600; // 6 hours
384 
389 
399 
407 $wgIllegalFileChars = ":\\/\\\\";
408 
414 
419 
435 
518 
523 
530 
541 
552  // Fields to make available in the dialog. `true` means that this field is visible, `false` means
553  // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
554  // matching replacement to the 'filepage' format key below to make use of these.
555  'fields' => [
556  'description' => true,
557  'date' => false,
558  'categories' => false,
559  ],
560  // Suffix of localisation messages used to describe the license under which the uploaded file will
561  // be released. The same value may be set for both 'local' and 'foreign' uploads.
562  'licensemessages' => [
563  // The 'local' messages are used for local uploads on this wiki:
564  // * upload-form-label-own-work-message-generic-local
565  // * upload-form-label-not-own-work-message-generic-local
566  // * upload-form-label-not-own-work-local-generic-local
567  'local' => 'generic-local',
568  // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
569  // * upload-form-label-own-work-message-generic-foreign
570  // * upload-form-label-not-own-work-message-generic-foreign
571  // * upload-form-label-not-own-work-local-generic-foreign
572  'foreign' => 'generic-foreign',
573  ],
574  // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
575  // string value, in which case it is used for both kinds of uploads. Available replacements:
576  // * $HOST - domain name from which a cross-wiki upload originates
577  // * $PAGENAME - wiki page name from which an upload originates
578  'comment' => [
579  'local' => '',
580  'foreign' => '',
581  ],
582  // Format of the file page wikitext to be generated from the fields input by the user.
583  'format' => [
584  // Wrapper for the whole page. Available replacements:
585  // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
586  // enabled), wrapped as defined below in the 'description' key
587  // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
588  // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
589  // * $AUTHOR - linked user name, may be extended in the future
590  // * $LICENSE - as defined below in the 'license' key, may be extended in the future
591  // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
592  // field is enabled), or if no input, as defined below in the 'uncategorized' key
593  'filepage' => '$DESCRIPTION',
594  // Wrapped for file description. Available replacements:
595  // * $LANGUAGE - source wiki's content language
596  // * $TEXT - input by the user
597  'description' => '$TEXT',
598  'ownwork' => '',
599  'license' => '',
600  'uncategorized' => '',
601  ],
602 ];
603 
641 
657 
669 $wgShowEXIF = function_exists( 'exif_read_data' );
670 
677 
692 
697 
702 
707 
713 
718 
724 
731 
738 
745 
751 
761 
778 $wgMaxUploadSize = 1024 * 1024 * 100; # 100MB
779 
787 
799 
806 
819 
824 
839 
846 
855 $wgRepositoryBaseUrl = "https://commons.wikimedia.org/wiki/File:";
856 
865 $wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
866 
873  # HTML may contain cookie-stealing JavaScript and web bugs
874  'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
875  # PHP scripts may execute arbitrary code on the server
876  'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
877  # Other types that may be interpreted by some servers
878  'shtml', 'jhtml', 'pl', 'py', 'cgi',
879  # May contain harmful executables for Windows victims
880  'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ];
881 
887  # HTML may contain cookie-stealing JavaScript and web bugs
888  'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
889  # PHP scripts may execute arbitrary code on the server
890  'application/x-php', 'text/x-php',
891  # Other types that may be interpreted by some servers
892  'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
893  # Client-side hazards on Internet Explorer
894  'text/scriptlet', 'application/x-msdownload',
895  # Windows metafile, client-side vulnerability on some systems
896  'application/x-msmetafile',
897 ];
898 
905 
912 
920 
928 
933 
945  MEDIATYPE_BITMAP, // all bitmap formats
946  MEDIATYPE_AUDIO, // all audio formats
947  MEDIATYPE_VIDEO, // all plain video formats
948  "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
949  "application/pdf", // PDF files
950  # "application/x-shockwave-flash", //flash/shockwave movie
951 ];
952 
961 
970  // the usual case
971  CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler',
972  // dumb version, no syntax highlighting
973  CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler',
974  // simple implementation, for use by extensions, etc.
975  CONTENT_MODEL_JSON => 'JsonContentHandler',
976  // dumb version, no syntax highlighting
977  CONTENT_MODEL_CSS => 'CssContentHandler',
978  // plain text, for use by extensions, etc.
979  CONTENT_MODEL_TEXT => 'TextContentHandler',
980 ];
981 
988 
998 
1002 $wgImageMagickConvertCommand = '/usr/bin/convert';
1003 
1009 
1014 
1019 
1025 
1039 
1045 $wgJpegTran = '/usr/bin/jpegtran';
1046 
1067 
1072 $wgExiv2Command = '/usr/bin/exiv2';
1073 
1079 $wgExiftool = '/usr/bin/exiftool';
1080 
1091  'ImageMagick' =>
1092  '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1093  'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1094  'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1095  'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1096  . '$output $input',
1097  'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1098  'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1099  'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1100 ];
1101 
1105 $wgSVGConverter = 'ImageMagick';
1106 
1111 
1116 
1122 
1135 
1150 
1158 
1173 
1180 $wgThumbnailEpoch = '20030516000000';
1181 
1189 
1202 
1211 
1216 
1223 
1230 
1266 
1267  # setup for clamav
1268  'clamav' => [
1269  'command' => 'clamscan --no-summary ',
1270  'codemap' => [
1271  "0" => AV_NO_VIRUS, # no virus
1272  "1" => AV_VIRUS_FOUND, # virus found
1273  "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1274  "*" => AV_SCAN_FAILED, # else scan failed
1275  ],
1276  'messagepattern' => '/.*?:(.*)/sim',
1277  ],
1278 ];
1279 
1284 
1289 
1295 $wgMimeTypeFile = 'includes/mime.types';
1296 
1301 $wgMimeInfoFile = 'includes/mime.info';
1302 
1315 
1322 
1328  'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1329  'svg' => 'image/svg+xml',
1330  'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1331  'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1332  'html' => 'text/html', // application/xhtml+xml?
1333 ];
1334 
1344  [ 320, 240 ],
1345  [ 640, 480 ],
1346  [ 800, 600 ],
1347  [ 1024, 768 ],
1348  [ 1280, 1024 ]
1349 ];
1350 
1357  120,
1358  150,
1359  180,
1360  200,
1361  250,
1362  300
1363 ];
1364 
1375 
1392 
1404 
1417 
1424 
1432 
1440 
1445  // Default number of images per-row in the gallery. 0 -> Adapt to screensize
1446  'imagesPerRow' => 0,
1447  // Width of the cells containing images in galleries (in "px")
1448  'imageWidth' => 120,
1449  // Height of the cells containing images in galleries (in "px")
1450  'imageHeight' => 120,
1451  // Length to truncate filename to in caption when using "showfilename".
1452  // A value of 'true' will truncate the filename to one line using CSS
1453  // and will be the behaviour after deprecation.
1454  // @deprecated since 1.28
1455  'captionLength' => true,
1456  // Show the filesize in bytes in categories
1457  'showBytes' => true,
1458  'mode' => 'traditional',
1459 ];
1460 
1467 
1472 
1484 
1496 
1503 
1509 $wgDjvuTxt = null;
1510 
1526 
1532 $wgDjvuPostProcessor = 'pnmtojpeg';
1533 
1538  # end of DJvu }
1540  # end of file uploads }
1542 
1543 /************************************************************************/
1554 
1563 
1569 $wgPasswordSenderName = 'MediaWiki Mail';
1570 
1577 
1584 
1590 
1601 
1607 
1611 $wgNewPasswordExpiry = 3600 * 24 * 7;
1612 
1617 
1623 
1628 $wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1629 
1647 $wgSMTP = false;
1648 
1653 
1659 
1665 
1666 // TODO move UPO to preferences probably ?
1667 # If set to true, users get a corresponding option in their preferences and can choose to
1668 # enable or disable at their discretion
1669 # If set to false, the corresponding input form on the user preference page is suppressed
1670 # It call this to be a "user-preferences-option (UPO)"
1671 
1678 
1683 
1692 
1698 
1713 
1722 
1728 
1733 
1739  # end of email settings
1741 
1742 /************************************************************************/
1750 $wgDBserver = 'localhost';
1751 
1755 $wgDBport = 5432;
1756 
1760 $wgDBname = 'my_wiki';
1761 
1765 $wgDBuser = 'wikiuser';
1766 
1771 
1775 $wgDBtype = 'mysql';
1776 
1785 $wgDBssl = false;
1786 
1796 
1801 
1806 
1814 
1823 
1828 
1832 $wgDBTableOptions = 'ENGINE=InnoDB';
1833 
1841 
1846 
1851 
1878 
1883 
1887 $wgSharedTables = [ 'user', 'user_properties' ];
1888 
1894 
1950 
1961 $wgLBFactoryConf = [ 'class' => 'LBFactorySimple' ];
1962 
1970 
1975 
1995 
2012 $wgDBmysql5 = false;
2013 
2041 
2048 
2055 
2060 
2065  # End of DB settings }
2067 
2068 /************************************************************************/
2080 
2093 
2109 
2125 
2133  # end text storage }
2135 
2136 /************************************************************************/
2145 
2150 
2155 
2160 
2165 
2170 
2175 
2181 
2189  # end performance hacks }
2191 
2192 /************************************************************************/
2206 
2225 
2233 
2241 
2248 
2258 
2273  CACHE_NONE => [ 'class' => 'EmptyBagOStuff', 'reportDupes' => false ],
2274  CACHE_DB => [ 'class' => 'SqlBagOStuff', 'loggroup' => 'SQLBagOStuff' ],
2275 
2276  CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2277  CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2278  CACHE_MEMCACHED => [ 'class' => 'MemcachedPhpBagOStuff', 'loggroup' => 'memcached' ],
2279 
2280  'db-replicated' => [
2281  'class' => 'ReplicatedBagOStuff',
2282  'readFactory' => [
2283  'class' => 'SqlBagOStuff',
2284  'args' => [ [ 'slaveOnly' => true ] ]
2285  ],
2286  'writeFactory' => [
2287  'class' => 'SqlBagOStuff',
2288  'args' => [ [ 'slaveOnly' => false ] ]
2289  ],
2290  'loggroup' => 'SQLBagOStuff',
2291  'reportDupes' => false
2292  ],
2293 
2294  'apc' => [ 'class' => 'APCBagOStuff', 'reportDupes' => false ],
2295  'apcu' => [ 'class' => 'APCUBagOStuff', 'reportDupes' => false ],
2296  'xcache' => [ 'class' => 'XCacheBagOStuff', 'reportDupes' => false ],
2297  'wincache' => [ 'class' => 'WinCacheBagOStuff', 'reportDupes' => false ],
2298  'memcached-php' => [ 'class' => 'MemcachedPhpBagOStuff', 'loggroup' => 'memcached' ],
2299  'memcached-pecl' => [ 'class' => 'MemcachedPeclBagOStuff', 'loggroup' => 'memcached' ],
2300  'hash' => [ 'class' => 'HashBagOStuff', 'reportDupes' => false ],
2301 ];
2302 
2319 
2336  CACHE_NONE => [
2337  'class' => 'WANObjectCache',
2338  'cacheId' => CACHE_NONE,
2339  'channels' => []
2340  ]
2341  /* Example of a simple single data-center cache:
2342  'memcached-php' => [
2343  'class' => 'WANObjectCache',
2344  'cacheId' => 'memcached-php',
2345  'channels' => [ 'purge' => 'wancache-main-memcached-purge' ]
2346  ]
2347  */
2348 ];
2349 
2362 
2377 $wgMainStash = 'db-replicated';
2378 
2384 
2389 
2394 
2399 
2417 
2424 
2429 
2433 $wgMemCachedServers = [ '127.0.0.1:11211' ];
2434 
2440 
2445 
2458 
2466 
2490  'class' => 'LocalisationCache',
2491  'store' => 'detect',
2492  'storeClass' => false,
2493  'storeDirectory' => false,
2494  'manualRecache' => false,
2495 ];
2496 
2501 
2510 $wgCacheEpoch = '20030516000000';
2511 
2517 
2526 
2533 
2541 
2547 
2553 
2564 
2569 
2576 $wgUseGzip = false;
2577 
2585 
2596 
2613  # end of cache settings
2615 
2616 /************************************************************************/
2633 $wgUseSquid = false;
2634 
2638 $wgUseESI = false;
2639 
2646 
2656 
2666 
2675 
2682 
2698 
2705 
2712 
2722 
2730 
2751 
2804 
2810 
2815  # end of HTTP proxy settings
2817 
2818 /************************************************************************/
2840 
2846 
2857 
2862 
2867 
2882 
2887 
2902  'bh' => 'bho', // Bihari language family
2903  'no' => 'nb', // Norwegian language family
2904  'simple' => 'en', // Simple English
2905 ];
2906 
2914 
2924 
2935 
2947 
2959 
2965 $wgBrowserBlackList = [
2976  '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2977  '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2978  '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2979 
2993  '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2994 
2999  '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
3000 ];
3001 
3014 $wgLegacySchemaConversion = false;
3015 
3020 $wgAmericanDates = false;
3021 
3026 $wgTranslateNumerals = true;
3027 
3032 $wgUseDatabaseMessages = true;
3033 
3037 $wgMsgCacheExpiry = 86400;
3038 
3042 $wgMaxMsgCacheEntrySize = 10000;
3043 
3047 $wgDisableLangConversion = false;
3048 
3052 $wgDisableTitleConversion = false;
3053 
3057 $wgDefaultLanguageVariant = false;
3058 
3068 $wgDisabledVariants = [];
3069 
3087 $wgVariantArticlePath = false;
3088 
3094 $wgLoginLanguageSelector = false;
3095 
3115 $wgForceUIMsgAsContentMsg = [];
3116 
3140 $wgLocaltimezone = null;
3141 
3151 $wgLocalTZoffset = null;
3152  # End of language/charset settings
3154 
3155 /*************************************************************************/
3163 $wgMimeType = 'text/html';
3164 
3172 $wgJsMimeType = null;
3173 
3182 
3190 $wgHtml5 = true;
3191 
3200 $wgHtml5Version = null;
3201 
3209 $wgHTMLFormAllowTableFormat = true;
3210 
3217 $wgUseMediaWikiUIEverywhere = false;
3218 
3225 $wgOOUIEditPage = true;
3226 
3234 $wgEditSubmitButtonLabelPublish = false;
3235 
3250 $wgXhtmlNamespaces = [];
3251 
3259 $wgSiteNotice = '';
3260 
3264 $wgSiteSupportPage = '';
3265 
3270 $wgValidateAllHtml = false;
3271 
3276 $wgDefaultSkin = 'vector';
3277 
3283 $wgFallbackSkin = 'fallback';
3284 
3290 $wgSkipSkins = [];
3291 
3295 $wgSkipSkin = '';
3296 
3302 $wgAllowUserJs = false;
3303 
3309 $wgAllowUserCss = false;
3310 
3316 $wgAllowUserCssPrefs = true;
3317 
3321 $wgUseSiteJs = true;
3322 
3326 $wgUseSiteCss = true;
3327 
3332 $wgBreakFrames = false;
3333 
3353 $wgEditPageFrameOptions = 'DENY';
3354 
3365 $wgApiFrameOptions = 'DENY';
3366 
3370 $wgDisableOutputCompression = false;
3371 
3381 $wgExperimentalHtmlIds = false;
3382 
3413 $wgFooterIcons = [
3414  "copyright" => [
3415  "copyright" => [], // placeholder for the built in copyright icon
3416  ],
3417  "poweredby" => [
3418  "mediawiki" => [
3419  // Defaults to point at
3420  // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
3421  // plus srcset for 1.5x, 2x resolution variants.
3422  "src" => null,
3423  "url" => "//www.mediawiki.org/",
3424  "alt" => "Powered by MediaWiki",
3425  ]
3426  ],
3427 ];
3428 
3435 $wgUseCombinedLoginLink = false;
3436 
3440 $wgEdititis = false;
3441 
3453 $wgSend404Code = true;
3454 
3464 $wgShowRollbackEditCount = 10;
3465 
3472 $wgEnableCanonicalServerLink = false;
3473 
3482 $wgMangleFlashPolicy = true;
3483  # End of output format settings }
3485 
3486 /*************************************************************************/
3508 $wgResourceModules = [];
3509 
3598 $wgResourceModuleSkinStyles = [];
3599 
3610 $wgResourceLoaderSources = [];
3611 
3616 $wgResourceBasePath = null;
3617 
3634 $wgResourceLoaderMaxage = [
3635  'versioned' => [
3636  'server' => 30 * 24 * 60 * 60, // 30 days
3637  'client' => 30 * 24 * 60 * 60, // 30 days
3638  ],
3639  'unversioned' => [
3640  'server' => 5 * 60, // 5 minutes
3641  'client' => 5 * 60, // 5 minutes
3642  ],
3643 ];
3644 
3650 $wgResourceLoaderDebug = false;
3651 
3658 $wgResourceLoaderMinifierStatementsOnOwnLine = false;
3659 
3667 $wgResourceLoaderMinifierMaxLineLength = 1000;
3668 
3674 $wgIncludeLegacyJavaScript = false;
3675 
3684 $wgUsejQueryThree = false;
3685 
3711 $wgLegacyJavaScriptGlobals = true;
3712 
3726 $wgResourceLoaderMaxQueryLength = false;
3727 
3735 $wgResourceLoaderValidateJS = true;
3736 
3745 $wgResourceLoaderValidateStaticJS = false;
3746 
3770 $wgResourceLoaderLESSVars = [
3777  'deviceWidthTablet' => '720px',
3778 ];
3779 
3793 $wgResourceLoaderLESSImportPaths = [
3794  "$IP/resources/src/mediawiki.less/",
3795 ];
3796 
3801 $wgResourceLoaderStorageEnabled = true;
3802 
3809 $wgResourceLoaderStorageVersion = 1;
3810 
3822 $wgAllowSiteCSSOnRestrictedPages = false;
3823  # End of ResourceLoader settings }
3825 
3826 /*************************************************************************/
3835 $wgMetaNamespace = false;
3836 
3844 $wgMetaNamespaceTalk = false;
3845 
3872 $wgExtraNamespaces = [];
3873 
3880 $wgExtraGenderNamespaces = [];
3881 
3900 $wgNamespaceAliases = [];
3901 
3929 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
3930 
3936 $wgLocalInterwiki = false;
3937 
3946 $wgLocalInterwikis = [];
3947 
3951 $wgInterwikiExpiry = 10800;
3952 
3976 $wgInterwikiCache = false;
3977 
3984 $wgInterwikiScopes = 3;
3985 
3989 $wgInterwikiFallbackSite = 'wiki';
3990  # end of Interwiki caching settings.
3992 
4001 $wgSitesCacheFile = false;
4002  # end of SiteStore caching settings.
4004 
4020 $wgRedirectSources = false;
4021 
4029 $wgCapitalLinks = true;
4030 
4045 $wgCapitalLinkOverrides = [];
4046 
4051 $wgNamespacesWithSubpages = [
4052  NS_TALK => true,
4053  NS_USER => true,
4054  NS_USER_TALK => true,
4055  NS_PROJECT => true,
4056  NS_PROJECT_TALK => true,
4057  NS_FILE_TALK => true,
4058  NS_MEDIAWIKI => true,
4059  NS_MEDIAWIKI_TALK => true,
4060  NS_TEMPLATE => true,
4061  NS_TEMPLATE_TALK => true,
4062  NS_HELP => true,
4063  NS_HELP_TALK => true,
4065 ];
4066 
4082 $wgTrackingCategories = [];
4083 
4090 $wgContentNamespaces = [ NS_MAIN ];
4091 
4099 $wgExtraSignatureNamespaces = [];
4100 
4106 $wgMaxRedirects = 1;
4107 
4118 $wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4119  # End of title and interwiki settings }
4121 
4122 /************************************************************************/
4149 $wgParserConf = [
4150  'class' => 'Parser',
4151  # 'preprocessorClass' => 'Preprocessor_Hash',
4152 ];
4153 
4157 $wgMaxTocLevel = 999;
4158 
4163 $wgMaxPPNodeCount = 1000000;
4164 
4174 $wgMaxGeneratedPPNodeCount = 1000000;
4175 
4182 $wgMaxTemplateDepth = 40;
4183 
4187 $wgMaxPPExpandDepth = 40;
4188 
4199 $wgUrlProtocols = [
4200  'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4201  'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'mms://', 'news:',
4202  'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:', 'ssh://',
4203  'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:', '//'
4204 ];
4205 
4209 $wgCleanSignatures = true;
4210 
4214 $wgAllowExternalImages = false;
4215 
4228 $wgAllowExternalImagesFrom = '';
4229 
4239 $wgEnableImageWhitelist = true;
4240 
4249 $wgAllowImageTag = false;
4250 
4275 $wgTidyConfig = null;
4276 
4281 $wgUseTidy = false;
4282 
4287 $wgTidyBin = 'tidy';
4288 
4293 $wgTidyConf = $IP . '/includes/tidy/tidy.conf';
4294 
4299 $wgTidyOpts = '';
4300 
4305 $wgTidyInternal = extension_loaded( 'tidy' );
4306 
4311 $wgDebugTidy = false;
4312 
4318 $wgRawHtml = false;
4319 
4329 $wgExternalLinkTarget = false;
4330 
4337 $wgNoFollowLinks = true;
4338 
4343 $wgNoFollowNsExceptions = [];
4344 
4358 $wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
4359 
4363 $wgAllowDisplayTitle = true;
4364 
4370 $wgRestrictDisplayTitle = true;
4371 
4376 $wgExpensiveParserFunctionLimit = 100;
4377 
4382 $wgPreprocessorCacheThreshold = 1000;
4383 
4387 $wgEnableScaryTranscluding = false;
4388 
4393 $wgTranscludeCacheExpiry = 3600;
4394 
4401 $wgEnableMagicLinks = [
4402  'ISBN' => false,
4403  'PMID' => false,
4404  'RFC' => false
4405 ];
4406  # end of parser settings }
4408 
4409 /************************************************************************/
4431 $wgArticleCountMethod = 'link';
4432 
4440 $wgActiveUserDays = 30;
4441  # End of statistics }
4443 
4444 /************************************************************************/
4454 $wgCentralIdLookupProviders = [
4455  'local' => [ 'class' => 'LocalIdLookup' ],
4456 ];
4457 
4462 $wgCentralIdLookupProvider = 'local';
4463 
4487 $wgPasswordPolicy = [
4488  'policies' => [
4489  'bureaucrat' => [
4490  'MinimalPasswordLength' => 8,
4491  'MinimumPasswordLengthToLogin' => 1,
4492  'PasswordCannotMatchUsername' => true,
4493  'PasswordCannotBePopular' => 25,
4494  ],
4495  'sysop' => [
4496  'MinimalPasswordLength' => 8,
4497  'MinimumPasswordLengthToLogin' => 1,
4498  'PasswordCannotMatchUsername' => true,
4499  'PasswordCannotBePopular' => 25,
4500  ],
4501  'bot' => [
4502  'MinimalPasswordLength' => 8,
4503  'MinimumPasswordLengthToLogin' => 1,
4504  'PasswordCannotMatchUsername' => true,
4505  ],
4506  'default' => [
4507  'MinimalPasswordLength' => 1,
4508  'PasswordCannotMatchUsername' => true,
4509  'PasswordCannotMatchBlacklist' => true,
4510  'MaximalPasswordLength' => 4096,
4511  ],
4512  ],
4513  'checks' => [
4514  'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
4515  'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
4516  'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
4517  'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
4518  'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
4519  'PasswordCannotBePopular' => 'PasswordPolicyChecks::checkPopularPasswordBlacklist'
4520  ],
4521 ];
4522 
4542 $wgAuthManagerConfig = null;
4543 
4548 $wgAuthManagerAutoConfig = [
4549  'preauth' => [
4552  'sort' => 0,
4553  ],
4556  'sort' => 0,
4557  ],
4558  ],
4559  'primaryauth' => [
4560  // TemporaryPasswordPrimaryAuthenticationProvider should come before
4561  // any other PasswordAuthenticationRequest-based
4562  // PrimaryAuthenticationProvider (or at least any that might return
4563  // FAIL rather than ABSTAIN for a wrong password), or password reset
4564  // won't work right. Do not remove this (or change the key) or
4565  // auto-configuration of other such providers in extensions will
4566  // probably auto-insert themselves in the wrong place.
4569  'args' => [ [
4570  // Fall through to LocalPasswordPrimaryAuthenticationProvider
4571  'authoritative' => false,
4572  ] ],
4573  'sort' => 0,
4574  ],
4577  'args' => [ [
4578  // Last one should be authoritative, or else the user will get
4579  // a less-than-helpful error message (something like "supplied
4580  // authentication info not supported" rather than "wrong
4581  // password") if it too fails.
4582  'authoritative' => true,
4583  ] ],
4584  'sort' => 100,
4585  ],
4586  ],
4587  'secondaryauth' => [
4590  'sort' => 0,
4591  ],
4594  'sort' => 100,
4595  ],
4596  // Linking during login is experimental, enable at your own risk - T134952
4597  // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
4598  // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
4599  // 'sort' => 100,
4600  // ],
4603  'sort' => 200,
4604  ],
4605  ],
4606 ];
4607 
4646 $wgReauthenticateTime = [
4647  'default' => 300,
4648 ];
4649 
4665 $wgAllowSecuritySensitiveOperationIfCannotReauthenticate = [
4666  'default' => true,
4667 ];
4668 
4678 $wgChangeCredentialsBlacklist = [
4680 ];
4681 
4691 $wgRemoveCredentialsBlacklist = [
4693 ];
4694 
4699 $wgPasswordSalt = true;
4700 
4706 $wgMinimalPasswordLength = false;
4707 
4719 $wgMaximalPasswordLength = false;
4720 
4726 $wgInvalidPasswordReset = true;
4727 
4733 $wgPasswordDefault = 'pbkdf2';
4734 
4754 $wgPasswordConfig = [
4755  'A' => [
4756  'class' => 'MWOldPassword',
4757  ],
4758  'B' => [
4759  'class' => 'MWSaltedPassword',
4760  ],
4761  'pbkdf2-legacyA' => [
4762  'class' => 'LayeredParameterizedPassword',
4763  'types' => [
4764  'A',
4765  'pbkdf2',
4766  ],
4767  ],
4768  'pbkdf2-legacyB' => [
4769  'class' => 'LayeredParameterizedPassword',
4770  'types' => [
4771  'B',
4772  'pbkdf2',
4773  ],
4774  ],
4775  'bcrypt' => [
4776  'class' => 'BcryptPassword',
4777  'cost' => 9,
4778  ],
4779  'pbkdf2' => [
4780  'class' => 'Pbkdf2Password',
4781  'algo' => 'sha512',
4782  'cost' => '30000',
4783  'length' => '64',
4784  ],
4785 ];
4786 
4793 $wgPasswordResetRoutes = [
4794  'username' => true,
4795  'email' => true,
4796 ];
4797 
4801 $wgMaxSigChars = 255;
4802 
4807 $wgMaxNameChars = 255;
4808 
4813 $wgReservedUsernames = [
4814  'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
4815  'Conversion script', // Used for the old Wikipedia software upgrade
4816  'Maintenance script', // Maintenance scripts which perform editing, image import script
4817  'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
4818  'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
4819  'Unknown user', // Used in WikiImporter when importing revisions with no author
4820  'msg:double-redirect-fixer', // Automatic double redirect fix
4821  'msg:usermessage-editor', // Default user for leaving user messages
4822  'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
4823  'msg:spambot_username', // Used by cleanupSpam.php
4824  'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
4825 ];
4826 
4834  'ccmeonemails' => 0,
4835  'cols' => 80, // @deprecated since 1.29 No longer used in core
4836  'date' => 'default',
4837  'diffonly' => 0,
4838  'disablemail' => 0,
4839  'editfont' => 'default',
4840  'editondblclick' => 0,
4841  'editsectiononrightclick' => 0,
4842  'enotifminoredits' => 0,
4843  'enotifrevealaddr' => 0,
4844  'enotifusertalkpages' => 1,
4845  'enotifwatchlistpages' => 1,
4846  'extendwatchlist' => 1,
4847  'fancysig' => 0,
4848  'forceeditsummary' => 0,
4849  'gender' => 'unknown',
4850  'hideminor' => 0,
4851  'hidepatrolled' => 0,
4852  'hidecategorization' => 1,
4853  'imagesize' => 2,
4854  'math' => 1,
4855  'minordefault' => 0,
4856  'newpageshidepatrolled' => 0,
4857  'nickname' => '',
4858  'norollbackdiff' => 0,
4859  'numberheadings' => 0,
4860  'previewonfirst' => 0,
4861  'previewontop' => 1,
4862  'rcdays' => 7,
4863  'rcenhancedfilters' => 0,
4864  'rclimit' => 50,
4865  'rows' => 25, // @deprecated since 1.29 No longer used in core
4866  'showhiddencats' => 0,
4867  'shownumberswatching' => 1,
4868  'showtoolbar' => 1,
4869  'skin' => false,
4870  'stubthreshold' => 0,
4871  'thumbsize' => 5,
4872  'underline' => 2,
4873  'uselivepreview' => 0,
4874  'usenewrc' => 1,
4875  'watchcreations' => 1,
4876  'watchdefault' => 1,
4877  'watchdeletion' => 0,
4878  'watchuploads' => 1,
4879  'watchlistdays' => 3.0,
4880  'watchlisthideanons' => 0,
4881  'watchlisthidebots' => 0,
4882  'watchlisthideliu' => 0,
4883  'watchlisthideminor' => 0,
4884  'watchlisthideown' => 0,
4885  'watchlisthidepatrolled' => 0,
4886  'watchlisthidecategorization' => 1,
4887  'watchlistreloadautomatically' => 0,
4888  'watchmoves' => 0,
4889  'watchrollback' => 0,
4890  'wllimit' => 250,
4891  'useeditwarning' => 1,
4892  'prefershttps' => 1,
4893 ];
4894 
4898 $wgHiddenPrefs = [];
4899 
4905 $wgInvalidUsernameCharacters = '@:';
4906 
4916 $wgUserrightsInterwikiDelimiter = '@';
4917 
4924 $wgSecureLogin = false;
4925 
4936 $wgAuthenticationTokenVersion = null;
4937 
4946 $wgSessionProviders = [
4949  'args' => [ [
4950  'priority' => 30,
4951  'callUserSetCookiesHook' => true,
4952  ] ],
4953  ],
4956  'args' => [ [
4957  'priority' => 75,
4958  ] ],
4959  ],
4960 ];
4961  # end user accounts }
4963 
4964 /************************************************************************/
4972 $wgAutoblockExpiry = 86400;
4973 
4977 $wgBlockAllowsUTEdit = true;
4978 
4982 $wgSysopEmailBans = true;
4983 
4998 $wgBlockCIDRLimit = [
4999  'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
5000  'IPv6' => 19,
5001 ];
5002 
5010 $wgBlockDisablesLogin = false;
5011 
5029 $wgWhitelistRead = false;
5030 
5057 $wgWhitelistReadRegexp = false;
5058 
5063 $wgEmailConfirmToEdit = false;
5064 
5069 $wgHideIdentifiableRedirects = true;
5070 
5095 $wgGroupPermissions = [];
5096 
5098 // Implicit group for all visitors
5099 $wgGroupPermissions['*']['createaccount'] = true;
5100 $wgGroupPermissions['*']['read'] = true;
5101 $wgGroupPermissions['*']['edit'] = true;
5102 $wgGroupPermissions['*']['createpage'] = true;
5103 $wgGroupPermissions['*']['createtalk'] = true;
5104 $wgGroupPermissions['*']['writeapi'] = true;
5105 $wgGroupPermissions['*']['editmyusercss'] = true;
5106 $wgGroupPermissions['*']['editmyuserjs'] = true;
5107 $wgGroupPermissions['*']['viewmywatchlist'] = true;
5108 $wgGroupPermissions['*']['editmywatchlist'] = true;
5109 $wgGroupPermissions['*']['viewmyprivateinfo'] = true;
5110 $wgGroupPermissions['*']['editmyprivateinfo'] = true;
5111 $wgGroupPermissions['*']['editmyoptions'] = true;
5112 # $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
5113 
5114 // Implicit group for all logged-in accounts
5115 $wgGroupPermissions['user']['move'] = true;
5116 $wgGroupPermissions['user']['move-subpages'] = true;
5117 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
5118 $wgGroupPermissions['user']['move-categorypages'] = true;
5119 $wgGroupPermissions['user']['movefile'] = true;
5120 $wgGroupPermissions['user']['read'] = true;
5121 $wgGroupPermissions['user']['edit'] = true;
5122 $wgGroupPermissions['user']['createpage'] = true;
5123 $wgGroupPermissions['user']['createtalk'] = true;
5124 $wgGroupPermissions['user']['writeapi'] = true;
5125 $wgGroupPermissions['user']['upload'] = true;
5126 $wgGroupPermissions['user']['reupload'] = true;
5127 $wgGroupPermissions['user']['reupload-shared'] = true;
5128 $wgGroupPermissions['user']['minoredit'] = true;
5129 $wgGroupPermissions['user']['purge'] = true;
5130 $wgGroupPermissions['user']['sendemail'] = true;
5131 $wgGroupPermissions['user']['applychangetags'] = true;
5132 $wgGroupPermissions['user']['changetags'] = true;
5133 $wgGroupPermissions['user']['editcontentmodel'] = true;
5134 
5135 // Implicit group for accounts that pass $wgAutoConfirmAge
5136 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
5137 $wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
5138 
5139 // Users with bot privilege can have their edits hidden
5140 // from various log pages by default
5141 $wgGroupPermissions['bot']['bot'] = true;
5142 $wgGroupPermissions['bot']['autoconfirmed'] = true;
5143 $wgGroupPermissions['bot']['editsemiprotected'] = true;
5144 $wgGroupPermissions['bot']['nominornewtalk'] = true;
5145 $wgGroupPermissions['bot']['autopatrol'] = true;
5146 $wgGroupPermissions['bot']['suppressredirect'] = true;
5147 $wgGroupPermissions['bot']['apihighlimits'] = true;
5148 $wgGroupPermissions['bot']['writeapi'] = true;
5149 
5150 // Most extra permission abilities go to this group
5151 $wgGroupPermissions['sysop']['block'] = true;
5152 $wgGroupPermissions['sysop']['createaccount'] = true;
5153 $wgGroupPermissions['sysop']['delete'] = true;
5154 // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
5155 $wgGroupPermissions['sysop']['bigdelete'] = true;
5156 // can view deleted history entries, but not see or restore the text
5157 $wgGroupPermissions['sysop']['deletedhistory'] = true;
5158 // can view deleted revision text
5159 $wgGroupPermissions['sysop']['deletedtext'] = true;
5160 $wgGroupPermissions['sysop']['undelete'] = true;
5161 $wgGroupPermissions['sysop']['editinterface'] = true;
5162 $wgGroupPermissions['sysop']['editusercss'] = true;
5163 $wgGroupPermissions['sysop']['edituserjs'] = true;
5164 $wgGroupPermissions['sysop']['import'] = true;
5165 $wgGroupPermissions['sysop']['importupload'] = true;
5166 $wgGroupPermissions['sysop']['move'] = true;
5167 $wgGroupPermissions['sysop']['move-subpages'] = true;
5168 $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
5169 $wgGroupPermissions['sysop']['move-categorypages'] = true;
5170 $wgGroupPermissions['sysop']['patrol'] = true;
5171 $wgGroupPermissions['sysop']['autopatrol'] = true;
5172 $wgGroupPermissions['sysop']['protect'] = true;
5173 $wgGroupPermissions['sysop']['editprotected'] = true;
5174 $wgGroupPermissions['sysop']['rollback'] = true;
5175 $wgGroupPermissions['sysop']['upload'] = true;
5176 $wgGroupPermissions['sysop']['reupload'] = true;
5177 $wgGroupPermissions['sysop']['reupload-shared'] = true;
5178 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
5179 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
5180 $wgGroupPermissions['sysop']['editsemiprotected'] = true;
5181 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
5182 $wgGroupPermissions['sysop']['blockemail'] = true;
5183 $wgGroupPermissions['sysop']['markbotedits'] = true;
5184 $wgGroupPermissions['sysop']['apihighlimits'] = true;
5185 $wgGroupPermissions['sysop']['browsearchive'] = true;
5186 $wgGroupPermissions['sysop']['noratelimit'] = true;
5187 $wgGroupPermissions['sysop']['movefile'] = true;
5188 $wgGroupPermissions['sysop']['unblockself'] = true;
5189 $wgGroupPermissions['sysop']['suppressredirect'] = true;
5190 # $wgGroupPermissions['sysop']['pagelang'] = true;
5191 # $wgGroupPermissions['sysop']['upload_by_url'] = true;
5192 $wgGroupPermissions['sysop']['mergehistory'] = true;
5193 $wgGroupPermissions['sysop']['managechangetags'] = true;
5194 $wgGroupPermissions['sysop']['deletechangetags'] = true;
5195 
5196 // Permission to change users' group assignments
5197 $wgGroupPermissions['bureaucrat']['userrights'] = true;
5198 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
5199 // Permission to change users' groups assignments across wikis
5200 # $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
5201 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
5202 # $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
5203 
5204 # $wgGroupPermissions['sysop']['deletelogentry'] = true;
5205 # $wgGroupPermissions['sysop']['deleterevision'] = true;
5206 // To hide usernames from users and Sysops
5207 # $wgGroupPermissions['suppress']['hideuser'] = true;
5208 // To hide revisions/log items from users and Sysops
5209 # $wgGroupPermissions['suppress']['suppressrevision'] = true;
5210 // To view revisions/log items hidden from users and Sysops
5211 # $wgGroupPermissions['suppress']['viewsuppressed'] = true;
5212 // For private suppression log access
5213 # $wgGroupPermissions['suppress']['suppressionlog'] = true;
5214 
5221 # $wgGroupPermissions['developer']['siteadmin'] = true;
5222 
5234 $wgRevokePermissions = [];
5235 
5239 $wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
5240 
5262 $wgGroupsAddToSelf = [];
5263 
5267 $wgGroupsRemoveFromSelf = [];
5268 
5276 $wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
5277 
5289 $wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
5290 
5300 $wgCascadingRestrictionLevels = [ 'sysop' ];
5301 
5314 $wgSemiprotectedRestrictionLevels = [ 'autoconfirmed' ];
5315 
5324 
5334 $wgNonincludableNamespaces = [];
5335 
5356 $wgAutoConfirmAge = 0;
5357 
5367 $wgAutoConfirmCount = 0;
5368 
5426 $wgAutopromote = [
5427  'autoconfirmed' => [ '&',
5428  [ APCOND_EDITCOUNT, &$wgAutoConfirmCount ],
5429  [ APCOND_AGE, &$wgAutoConfirmAge ],
5430  ],
5431 ];
5432 
5451 $wgAutopromoteOnce = [
5452  'onEdit' => [],
5453 ];
5454 
5459 $wgAutopromoteOnceLogInRC = true;
5460 
5483 $wgAddGroups = [];
5484 
5488 $wgRemoveGroups = [];
5489 
5494 $wgAvailableRights = [];
5495 
5500 $wgDeleteRevisionsLimit = 0;
5501 
5509 $wgHideUserContribLimit = 1000;
5510 
5532 $wgAccountCreationThrottle = [ [
5533  'count' => 0,
5534  'seconds' => 86400,
5535 ] ];
5536 
5548 $wgSpamRegex = [];
5549 
5553 $wgSummarySpamRegex = [];
5554 
5560 $wgEnableDnsBlacklist = false;
5561 
5585 $wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
5586 
5591 $wgProxyWhitelist = [];
5592 
5600 $wgSoftBlockRanges = [];
5601 
5607 $wgApplyIpBlocksToXff = false;
5608 
5644 $wgRateLimits = [
5645  // Page edits
5646  'edit' => [
5647  'ip' => [ 8, 60 ],
5648  'newbie' => [ 8, 60 ],
5649  ],
5650  // Page moves
5651  'move' => [
5652  'newbie' => [ 2, 120 ],
5653  'user' => [ 8, 60 ],
5654  ],
5655  // File uploads
5656  'upload' => [
5657  'ip' => [ 8, 60 ],
5658  'newbie' => [ 8, 60 ],
5659  ],
5660  // Page rollbacks
5661  'rollback' => [
5662  'user' => [ 10, 60 ],
5663  'newbie' => [ 5, 120 ]
5664  ],
5665  // Triggering password resets emails
5666  'mailpassword' => [
5667  'ip' => [ 5, 3600 ],
5668  ],
5669  // Emailing other users using MediaWiki
5670  'emailuser' => [
5671  'ip' => [ 5, 86400 ],
5672  'newbie' => [ 5, 86400 ],
5673  'user' => [ 20, 86400 ],
5674  ],
5675  // Purging pages
5676  'purge' => [
5677  'ip' => [ 30, 60 ],
5678  'user' => [ 30, 60 ],
5679  ],
5680  // Purges of link tables
5681  'linkpurge' => [
5682  'ip' => [ 30, 60 ],
5683  'user' => [ 30, 60 ],
5684  ],
5685  // Files rendered via thumb.php or thumb_handler.php
5686  'renderfile' => [
5687  'ip' => [ 700, 30 ],
5688  'user' => [ 700, 30 ],
5689  ],
5690  // Same as above but for non-standard thumbnails
5691  'renderfile-nonstandard' => [
5692  'ip' => [ 70, 30 ],
5693  'user' => [ 70, 30 ],
5694  ],
5695  // Stashing edits into cache before save
5696  'stashedit' => [
5697  'ip' => [ 30, 60 ],
5698  'newbie' => [ 30, 60 ],
5699  ],
5700  // Adding or removing change tags
5701  'changetag' => [
5702  'ip' => [ 8, 60 ],
5703  'newbie' => [ 8, 60 ],
5704  ],
5705  // Changing the content model of a page
5706  'editcontentmodel' => [
5707  'newbie' => [ 2, 120 ],
5708  'user' => [ 8, 60 ],
5709  ],
5710 ];
5711 
5716 $wgRateLimitsExcludedIPs = [];
5717 
5723 $wgPutIPinRC = true;
5724 
5729 $wgQueryPageDefaultLimit = 50;
5730 
5743 $wgPasswordAttemptThrottle = [
5744  // Short term limit
5745  [ 'count' => 5, 'seconds' => 300 ],
5746  // Long term limit. We need to balance the risk
5747  // of somebody using this as a DoS attack to lock someone
5748  // out of their account, and someone doing a brute force attack.
5749  [ 'count' => 150, 'seconds' => 60*60*48 ],
5750 ];
5751 
5762 $wgGrantPermissions = [];
5763 
5764 // @TODO: clean up grants
5765 // @TODO: auto-include read/editsemiprotected rights?
5766 
5767 $wgGrantPermissions['basic']['autoconfirmed'] = true;
5768 $wgGrantPermissions['basic']['autopatrol'] = true;
5769 $wgGrantPermissions['basic']['editsemiprotected'] = true;
5770 $wgGrantPermissions['basic']['ipblock-exempt'] = true;
5771 $wgGrantPermissions['basic']['nominornewtalk'] = true;
5772 $wgGrantPermissions['basic']['patrolmarks'] = true;
5773 $wgGrantPermissions['basic']['purge'] = true;
5774 $wgGrantPermissions['basic']['read'] = true;
5775 $wgGrantPermissions['basic']['skipcaptcha'] = true;
5776 $wgGrantPermissions['basic']['writeapi'] = true;
5777 
5778 $wgGrantPermissions['highvolume']['bot'] = true;
5779 $wgGrantPermissions['highvolume']['apihighlimits'] = true;
5780 $wgGrantPermissions['highvolume']['noratelimit'] = true;
5781 $wgGrantPermissions['highvolume']['markbotedits'] = true;
5782 
5783 $wgGrantPermissions['editpage']['edit'] = true;
5784 $wgGrantPermissions['editpage']['minoredit'] = true;
5785 $wgGrantPermissions['editpage']['applychangetags'] = true;
5786 $wgGrantPermissions['editpage']['changetags'] = true;
5787 
5788 $wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
5789 $wgGrantPermissions['editprotected']['editprotected'] = true;
5790 
5791 $wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
5792 $wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
5793 $wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
5794 
5795 $wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
5796 
5797 $wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
5798 $wgGrantPermissions['editinterface']['editinterface'] = true;
5799 $wgGrantPermissions['editinterface']['editusercss'] = true;
5800 $wgGrantPermissions['editinterface']['edituserjs'] = true;
5801 
5802 $wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
5803 $wgGrantPermissions['createeditmovepage']['createpage'] = true;
5804 $wgGrantPermissions['createeditmovepage']['createtalk'] = true;
5805 $wgGrantPermissions['createeditmovepage']['move'] = true;
5806 $wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
5807 $wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
5808 $wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
5809 
5810 $wgGrantPermissions['uploadfile']['upload'] = true;
5811 $wgGrantPermissions['uploadfile']['reupload-own'] = true;
5812 
5813 $wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
5814 $wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
5815 $wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
5816 $wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
5817 $wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
5818 $wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
5819 
5820 $wgGrantPermissions['patrol']['patrol'] = true;
5821 
5822 $wgGrantPermissions['rollback']['rollback'] = true;
5823 
5824 $wgGrantPermissions['blockusers']['block'] = true;
5825 $wgGrantPermissions['blockusers']['blockemail'] = true;
5826 
5827 $wgGrantPermissions['viewdeleted']['browsearchive'] = true;
5828 $wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
5829 $wgGrantPermissions['viewdeleted']['deletedtext'] = true;
5830 
5831 $wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true;
5832 
5833 $wgGrantPermissions['delete'] = $wgGrantPermissions['editpage'] +
5834  $wgGrantPermissions['viewdeleted'];
5835 $wgGrantPermissions['delete']['delete'] = true;
5836 $wgGrantPermissions['delete']['bigdelete'] = true;
5837 $wgGrantPermissions['delete']['deletelogentry'] = true;
5838 $wgGrantPermissions['delete']['deleterevision'] = true;
5839 $wgGrantPermissions['delete']['undelete'] = true;
5840 
5841 $wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
5842 $wgGrantPermissions['protect']['protect'] = true;
5843 
5844 $wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
5845 
5846 $wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
5847 
5848 $wgGrantPermissions['sendemail']['sendemail'] = true;
5849 
5850 $wgGrantPermissions['createaccount']['createaccount'] = true;
5851 
5852 $wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true;
5853 
5858 $wgGrantPermissionGroups = [
5859  // Hidden grants are implicitly present
5860  'basic' => 'hidden',
5861 
5862  'editpage' => 'page-interaction',
5863  'createeditmovepage' => 'page-interaction',
5864  'editprotected' => 'page-interaction',
5865  'patrol' => 'page-interaction',
5866 
5867  'uploadfile' => 'file-interaction',
5868  'uploadeditmovefile' => 'file-interaction',
5869 
5870  'sendemail' => 'email',
5871 
5872  'viewmywatchlist' => 'watchlist-interaction',
5873  'editviewmywatchlist' => 'watchlist-interaction',
5874 
5875  'editmycssjs' => 'customization',
5876  'editmyoptions' => 'customization',
5877 
5878  'editinterface' => 'administration',
5879  'rollback' => 'administration',
5880  'blockusers' => 'administration',
5881  'delete' => 'administration',
5882  'viewdeleted' => 'administration',
5883  'viewrestrictedlogs' => 'administration',
5884  'protect' => 'administration',
5885  'createaccount' => 'administration',
5886 
5887  'highvolume' => 'high-volume',
5888 
5889  'privateinfo' => 'private-information',
5890 ];
5891 
5896 $wgEnableBotPasswords = true;
5897 
5903 $wgBotPasswordsCluster = false;
5904 
5913 $wgBotPasswordsDatabase = false;
5914  # end of user rights settings
5916 
5917 /************************************************************************/
5925 $wgSecretKey = false;
5926 
5936 $wgProxyList = [];
5937  # end of proxy scanner settings
5939 
5940 /************************************************************************/
5948 $wgCookieExpiration = 30 * 86400;
5949 
5956 $wgExtendedLoginCookieExpiration = 180 * 86400;
5957 
5962 $wgCookieDomain = '';
5963 
5968 $wgCookiePath = '/';
5969 
5976 $wgCookieSecure = 'detect';
5977 
5984 $wgDisableCookieCheck = false;
5985 
5991 $wgCookiePrefix = false;
5992 
5998 $wgCookieHttpOnly = true;
5999 
6003 $wgCacheVaryCookies = [];
6004 
6008 $wgSessionName = false;
6009 
6017 $wgCookieSetOnAutoblock = false;
6018  # end of cookie settings }
6020 
6021 /************************************************************************/
6032 $wgUseTeX = false;
6033  # end LaTeX }
6035 
6036 /************************************************************************/
6049 $wgDebugLogFile = '';
6050 
6054 $wgDebugLogPrefix = '';
6055 
6061 $wgDebugRedirects = false;
6062 
6068 $wgDebugRawPage = false;
6069 
6078 $wgDebugComments = false;
6079 
6088 $wgDebugDumpSql = false;
6089 
6095 $wgTrxProfilerLimits = [
6096  // HTTP GET/HEAD requests.
6097  // Master queries should not happen on GET requests
6098  'GET' => [
6099  'masterConns' => 0,
6100  'writes' => 0,
6101  'readQueryTime' => 5
6102  ],
6103  // HTTP POST requests.
6104  // Master reads and writes will happen for a subset of these.
6105  'POST' => [
6106  'readQueryTime' => 5,
6107  'writeQueryTime' => 1,
6108  'maxAffected' => 1000
6109  ],
6110  'POST-nonwrite' => [
6111  'masterConns' => 0,
6112  'writes' => 0,
6113  'readQueryTime' => 5
6114  ],
6115  // Deferred updates that run after HTTP response is sent
6116  'PostSend' => [
6117  'readQueryTime' => 5,
6118  'writeQueryTime' => 1,
6119  'maxAffected' => 1000
6120  ],
6121  // Background job runner
6122  'JobRunner' => [
6123  'readQueryTime' => 30,
6124  'writeQueryTime' => 5,
6125  'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery
6126  ],
6127  // Command-line scripts
6128  'Maintenance' => [
6129  'writeQueryTime' => 5,
6130  'maxAffected' => 1000
6131  ]
6132 ];
6133 
6164 $wgDebugLogGroups = [];
6165 
6187 $wgMWLoggerDefaultSpi = [
6188  'class' => '\\MediaWiki\\Logger\\LegacySpi',
6189 ];
6190 
6196 $wgShowDebug = false;
6197 
6202 $wgDebugTimestamps = false;
6203 
6207 $wgDebugPrintHttpHeaders = true;
6208 
6212 $wgSpecialVersionShowHooks = false;
6213 
6219 $wgShowSQLErrors = false;
6220 
6227 $wgShowExceptionDetails = false;
6228 
6237 $wgShowDBErrorBacktrace = false;
6238 
6242 $wgLogExceptionBacktrace = true;
6243 
6247 $wgShowHostnames = false;
6248 
6254 $wgOverrideHostname = false;
6255 
6260 $wgDevelopmentWarnings = false;
6261 
6267 $wgDeprecationReleaseLimit = false;
6268 
6273 $wgProfileLimit = 0.0;
6274 
6281 $wgProfileOnly = false;
6282 
6293 $wgStatsdServer = false;
6294 
6302 $wgStatsdMetricPrefix = 'MediaWiki';
6303 
6310 $wgStatsdSamplingRates = [];
6311 
6317 $wgPageInfoTransclusionLimit = 50;
6318 
6325 $wgSiteStatsAsyncFactor = false;
6326 
6336 $wgParserTestFiles = [
6337  "$IP/tests/parser/parserTests.txt",
6338  "$IP/tests/parser/extraParserTests.txt"
6339 ];
6340 
6344 $wgEnableJavaScriptTest = false;
6345 
6350 $wgCachePrefix = false;
6351 
6359 $wgDebugToolbar = false;
6360  # end of profiling, testing and debugging }
6362 
6363 /************************************************************************/
6371 $wgDisableTextSearch = false;
6372 
6377 $wgAdvancedSearchHighlighting = false;
6378 
6383 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
6384 
6395 $wgOpenSearchTemplate = false;
6396 
6405 $wgOpenSearchTemplates = [
6406  'application/x-suggestions+json' => false,
6407  'application/x-suggestions+xml' => false,
6408 ];
6409 
6416 $wgEnableOpenSearchSuggest = true;
6417 
6422 $wgOpenSearchDefaultLimit = 10;
6423 
6427 $wgOpenSearchDescriptionLength = 100;
6428 
6432 $wgSearchSuggestCacheExpiry = 1200;
6433 
6438 $wgDisableSearchUpdate = false;
6439 
6449 $wgNamespacesToBeSearchedDefault = [
6450  NS_MAIN => true,
6451 ];
6452 
6457 $wgDisableInternalSearch = false;
6458 
6474 $wgSearchForwardUrl = null;
6475 
6481 $wgUseTwoButtonsSearchForm = true;
6482 
6488 $wgSitemapNamespaces = false;
6489 
6504 $wgSitemapNamespacesPriorities = false;
6505 
6511 $wgEnableSearchContributorsByIP = true;
6512  # end of search settings
6514 
6515 /************************************************************************/
6524 $wgDiff3 = '/usr/bin/diff3';
6525 
6529 $wgDiff = '/usr/bin/diff';
6530 
6536 $wgPreviewOnOpenNamespaces = [
6537  NS_CATEGORY => true
6538 ];
6539 
6545 $wgUniversalEditButton = true;
6546 
6552 $wgUseAutomaticEditSummaries = true;
6553  # end edit UI }
6555 
6556 /************************************************************************/
6566 if ( !isset( $wgCommandLineMode ) ) {
6567  $wgCommandLineMode = false;
6568 }
6574 $wgCommandLineDarkBg = false;
6575 
6584 $wgReadOnly = null;
6585 
6593 $wgReadOnlyFile = false;
6594 
6604 $wgUpgradeKey = false;
6605 
6609 $wgGitBin = '/usr/bin/git';
6610 
6624 $wgGitRepositoryViewers = [
6625  'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
6626  'https://phabricator.wikimedia.org/r/revision/%R;%H',
6627  'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
6628  'https://phabricator.wikimedia.org/r/revision/%R;%H',
6629 ];
6630  # End of maintenance }
6632 
6633 /************************************************************************/
6643 $wgRCMaxAge = 90 * 24 * 3600;
6644 
6650 $wgWatchersMaxAge = 180 * 24 * 3600;
6651 
6658 $wgUnwatchedPageSecret = 1;
6659 
6667 $wgRCFilterByAge = false;
6668 
6673 $wgRCLinkLimits = [ 50, 100, 250, 500 ];
6674 
6679 $wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
6680 
6734 $wgRCFeeds = [];
6735 
6741 $wgRCEngines = [
6742  'redis' => 'RedisPubSubFeedEngine',
6743  'udp' => 'UDPRCFeedEngine',
6744 ];
6745 
6757 $wgRCWatchCategoryMembership = false;
6758 
6763 $wgUseRCPatrol = true;
6764 
6768 $wgUseNPPatrol = true;
6769 
6775 $wgUseFilePatrol = true;
6776 
6780 $wgLogAutopatrol = true;
6781 
6785 $wgFeed = true;
6786 
6791 $wgFeedLimit = 50;
6792 
6801 $wgFeedCacheTimeout = 60;
6802 
6807 $wgFeedDiffCutoff = 32768;
6808 
6821 $wgOverrideSiteFeed = [];
6822 
6828 $wgFeedClasses = [
6829  'rss' => 'RSSFeed',
6830  'atom' => 'AtomFeed',
6831 ];
6832 
6837 $wgAdvertisedFeedTypes = [ 'atom' ];
6838 
6842 $wgRCShowWatchingUsers = false; # UPO
6843 
6847 $wgRCShowChangedSize = true;
6848 
6854 $wgRCChangedSizeThreshold = 500;
6855 
6860 $wgShowUpdatedMarker = true;
6861 
6866 $wgDisableAnonTalk = false;
6867 
6871 $wgAllowCategorizedRecentChanges = false;
6872 
6877 $wgUseTagFilter = true;
6878 
6886 $wgUnwatchedPageThreshold = false;
6887 
6912 $wgRecentChangesFlags = [
6913  'newpage' => [
6914  'letter' => 'newpageletter',
6915  'title' => 'recentchanges-label-newpage',
6916  'legend' => 'recentchanges-legend-newpage',
6917  'grouping' => 'any',
6918  ],
6919  'minor' => [
6920  'letter' => 'minoreditletter',
6921  'title' => 'recentchanges-label-minor',
6922  'legend' => 'recentchanges-legend-minor',
6923  'class' => 'minoredit',
6924  'grouping' => 'all',
6925  ],
6926  'bot' => [
6927  'letter' => 'boteditletter',
6928  'title' => 'recentchanges-label-bot',
6929  'legend' => 'recentchanges-legend-bot',
6930  'class' => 'botedit',
6931  'grouping' => 'all',
6932  ],
6933  'unpatrolled' => [
6934  'letter' => 'unpatrolledletter',
6935  'title' => 'recentchanges-label-unpatrolled',
6936  'legend' => 'recentchanges-legend-unpatrolled',
6937  'grouping' => 'any',
6938  ],
6939 ];
6940  # end RC/watchlist }
6942 
6943 /************************************************************************/
6955 $wgRightsPage = null;
6956 
6962 $wgRightsUrl = null;
6963 
6970 $wgRightsText = null;
6971 
6975 $wgRightsIcon = null;
6976 
6980 $wgUseCopyrightUpload = false;
6981 
6989 $wgMaxCredits = 0;
6990 
6995 $wgShowCreditsIfMax = true;
6996  # end of copyright and credits settings }
6998 
6999 /************************************************************************/
7026 $wgImportSources = [];
7027 
7035 $wgImportTargetNamespace = null;
7036 
7042 $wgExportAllowHistory = true;
7043 
7049 $wgExportMaxHistory = 0;
7050 
7054 $wgExportAllowListContributors = false;
7055 
7067 $wgExportMaxLinkDepth = 0;
7068 
7072 $wgExportFromNamespaces = false;
7073 
7077 $wgExportAllowAll = false;
7078 
7085 $wgExportPagelistLimit = 5000;
7086  # end of import/export }
7088 
7089 /*************************************************************************/
7098 $wgExtensionFunctions = [];
7099 
7127 
7153 $wgMessagesDirs = [];
7154 
7160 $wgExtensionEntryPointListFiles = [];
7161 
7176 $wgParserOutputHooks = [];
7177 
7181 $wgEnableParserLimitReporting = true;
7182 
7191 $wgValidSkinNames = [];
7192 
7199 $wgSpecialPages = [];
7200 
7204 $wgAutoloadClasses = [];
7205 
7211 $wgAutoloadAttemptLowercase = true;
7212 
7265 $wgExtensionCredits = [];
7266 
7272 $wgAuth = null;
7273 
7308 $wgHooks = [];
7309 
7322  __DIR__ . '/ServiceWiring.php'
7323 ];
7324 
7329 $wgJobClasses = [
7330  'refreshLinks' => 'RefreshLinksJob',
7331  'deleteLinks' => 'DeleteLinksJob',
7332  'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
7333  'sendMail' => 'EmaillingJob',
7334  'enotifNotify' => 'EnotifNotifyJob',
7335  'fixDoubleRedirect' => 'DoubleRedirectJob',
7336  'AssembleUploadChunks' => 'AssembleUploadChunksJob',
7337  'PublishStashedFile' => 'PublishStashedFileJob',
7338  'ThumbnailRender' => 'ThumbnailRenderJob',
7339  'recentChangesUpdate' => 'RecentChangesUpdateJob',
7340  'refreshLinksPrioritized' => 'RefreshLinksJob',
7341  'refreshLinksDynamic' => 'RefreshLinksJob',
7342  'activityUpdateJob' => 'ActivityUpdateJob',
7343  'categoryMembershipChange' => 'CategoryMembershipChangeJob',
7344  'cdnPurge' => 'CdnPurgeJob',
7345  'enqueue' => 'EnqueueJob', // local queue for multi-DC setups
7346  'null' => 'NullJob'
7347 ];
7348 
7360 $wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
7361 
7371 $wgJobBackoffThrottling = [];
7372 
7386 $wgJobSerialCommitThreshold = false;
7387 
7394 $wgJobTypeConf = [
7395  'default' => [ 'class' => 'JobQueueDB', 'order' => 'random', 'claimTTL' => 3600 ],
7396 ];
7397 
7402 $wgJobQueueAggregator = [
7403  'class' => 'JobQueueAggregatorNull'
7404 ];
7405 
7417 $wgJobQueueIncludeInMaxLagFactor = false;
7418 
7423 $wgSpecialPageCacheUpdates = [
7424  'Statistics' => [ 'SiteStatsUpdate', 'cacheUpdate' ]
7425 ];
7426 
7434 $wgExceptionHooks = [];
7435 
7443 $wgPagePropLinkInvalidations = [
7444  'hiddencat' => 'categorylinks',
7445 ];
7446  # End extensions }
7448 
7449 /*************************************************************************/
7457 $wgUseCategoryBrowser = false;
7458 
7463 $wgCategoryMagicGallery = true;
7464 
7468 $wgCategoryPagingLimit = 200;
7469 
7495 $wgCategoryCollation = 'uppercase';
7496  # End categories }
7498 
7499 /*************************************************************************/
7510 $wgLogTypes = [
7511  '',
7512  'block',
7513  'protect',
7514  'rights',
7515  'delete',
7516  'upload',
7517  'move',
7518  'import',
7519  'patrol',
7520  'merge',
7521  'suppress',
7522  'tag',
7523  'managetags',
7524  'contentmodel',
7525 ];
7526 
7534 $wgLogRestrictions = [
7535  'suppress' => 'suppressionlog'
7536 ];
7537 
7557 $wgFilterLogTypes = [
7558  'patrol' => true,
7559  'tag' => true,
7560 ];
7561 
7571 $wgLogNames = [
7572  '' => 'all-logs-page',
7573  'block' => 'blocklogpage',
7574  'protect' => 'protectlogpage',
7575  'rights' => 'rightslog',
7576  'delete' => 'dellogpage',
7577  'upload' => 'uploadlogpage',
7578  'move' => 'movelogpage',
7579  'import' => 'importlogpage',
7580  'patrol' => 'patrol-log-page',
7581  'merge' => 'mergelog',
7582  'suppress' => 'suppressionlog',
7583 ];
7584 
7594 $wgLogHeaders = [
7595  '' => 'alllogstext',
7596  'block' => 'blocklogtext',
7597  'delete' => 'dellogpagetext',
7598  'import' => 'importlogpagetext',
7599  'merge' => 'mergelogpagetext',
7600  'move' => 'movelogpagetext',
7601  'patrol' => 'patrol-log-header',
7602  'protect' => 'protectlogtext',
7603  'rights' => 'rightslogtext',
7604  'suppress' => 'suppressionlogtext',
7605  'upload' => 'uploadlogpagetext',
7606 ];
7607 
7614 $wgLogActions = [];
7615 
7622 $wgLogActionsHandlers = [
7623  'block/block' => 'BlockLogFormatter',
7624  'block/reblock' => 'BlockLogFormatter',
7625  'block/unblock' => 'BlockLogFormatter',
7626  'contentmodel/change' => 'ContentModelLogFormatter',
7627  'contentmodel/new' => 'ContentModelLogFormatter',
7628  'delete/delete' => 'DeleteLogFormatter',
7629  'delete/delete_redir' => 'DeleteLogFormatter',
7630  'delete/event' => 'DeleteLogFormatter',
7631  'delete/restore' => 'DeleteLogFormatter',
7632  'delete/revision' => 'DeleteLogFormatter',
7633  'import/interwiki' => 'ImportLogFormatter',
7634  'import/upload' => 'ImportLogFormatter',
7635  'managetags/activate' => 'LogFormatter',
7636  'managetags/create' => 'LogFormatter',
7637  'managetags/deactivate' => 'LogFormatter',
7638  'managetags/delete' => 'LogFormatter',
7639  'merge/merge' => 'MergeLogFormatter',
7640  'move/move' => 'MoveLogFormatter',
7641  'move/move_redir' => 'MoveLogFormatter',
7642  'patrol/patrol' => 'PatrolLogFormatter',
7643  'patrol/autopatrol' => 'PatrolLogFormatter',
7644  'protect/modify' => 'ProtectLogFormatter',
7645  'protect/move_prot' => 'ProtectLogFormatter',
7646  'protect/protect' => 'ProtectLogFormatter',
7647  'protect/unprotect' => 'ProtectLogFormatter',
7648  'rights/autopromote' => 'RightsLogFormatter',
7649  'rights/rights' => 'RightsLogFormatter',
7650  'suppress/block' => 'BlockLogFormatter',
7651  'suppress/delete' => 'DeleteLogFormatter',
7652  'suppress/event' => 'DeleteLogFormatter',
7653  'suppress/reblock' => 'BlockLogFormatter',
7654  'suppress/revision' => 'DeleteLogFormatter',
7655  'tag/update' => 'TagLogFormatter',
7656  'upload/overwrite' => 'UploadLogFormatter',
7657  'upload/revert' => 'UploadLogFormatter',
7658  'upload/upload' => 'UploadLogFormatter',
7659 ];
7660 
7669 $wgActionFilteredLogs = [
7670  'block' => [
7671  'block' => [ 'block' ],
7672  'reblock' => [ 'reblock' ],
7673  'unblock' => [ 'unblock' ],
7674  ],
7675  'contentmodel' => [
7676  'change' => [ 'change' ],
7677  'new' => [ 'new' ],
7678  ],
7679  'delete' => [
7680  'delete' => [ 'delete' ],
7681  'delete_redir' => [ 'delete_redir' ],
7682  'restore' => [ 'restore' ],
7683  'event' => [ 'event' ],
7684  'revision' => [ 'revision' ],
7685  ],
7686  'import' => [
7687  'interwiki' => [ 'interwiki' ],
7688  'upload' => [ 'upload' ],
7689  ],
7690  'managetags' => [
7691  'create' => [ 'create' ],
7692  'delete' => [ 'delete' ],
7693  'activate' => [ 'activate' ],
7694  'deactivate' => [ 'deactivate' ],
7695  ],
7696  'move' => [
7697  'move' => [ 'move' ],
7698  'move_redir' => [ 'move_redir' ],
7699  ],
7700  'newusers' => [
7701  'create' => [ 'create', 'newusers' ],
7702  'create2' => [ 'create2' ],
7703  'autocreate' => [ 'autocreate' ],
7704  'byemail' => [ 'byemail' ],
7705  ],
7706  'patrol' => [
7707  'patrol' => [ 'patrol' ],
7708  'autopatrol' => [ 'autopatrol' ],
7709  ],
7710  'protect' => [
7711  'protect' => [ 'protect' ],
7712  'modify' => [ 'modify' ],
7713  'unprotect' => [ 'unprotect' ],
7714  'move_prot' => [ 'move_prot' ],
7715  ],
7716  'rights' => [
7717  'rights' => [ 'rights' ],
7718  'autopromote' => [ 'autopromote' ],
7719  ],
7720  'suppress' => [
7721  'event' => [ 'event' ],
7722  'revision' => [ 'revision' ],
7723  'delete' => [ 'delete' ],
7724  'block' => [ 'block' ],
7725  'reblock' => [ 'reblock' ],
7726  ],
7727  'upload' => [
7728  'upload' => [ 'upload' ],
7729  'overwrite' => [ 'overwrite' ],
7730  ],
7731 ];
7732 
7736 $wgNewUserLog = true;
7737  # end logging }
7739 
7740 /*************************************************************************/
7748 $wgAllowSpecialInclusion = true;
7749 
7754 $wgDisableQueryPageUpdate = false;
7755 
7760 $wgCountCategorizedImagesAsUsed = false;
7761 
7766 $wgMaxRedirectLinksRetrieved = 500;
7767  # end special pages }
7769 
7770 /*************************************************************************/
7785 $wgActions = [
7786  'credits' => true,
7787  'delete' => true,
7788  'edit' => true,
7789  'editchangetags' => 'SpecialPageAction',
7790  'history' => true,
7791  'info' => true,
7792  'markpatrolled' => true,
7793  'protect' => true,
7794  'purge' => true,
7795  'raw' => true,
7796  'render' => true,
7797  'revert' => true,
7798  'revisiondelete' => 'SpecialPageAction',
7799  'rollback' => true,
7800  'submit' => true,
7801  'unprotect' => true,
7802  'unwatch' => true,
7803  'view' => true,
7804  'watch' => true,
7805 ];
7806  # end actions }
7808 
7809 /*************************************************************************/
7820 $wgDefaultRobotPolicy = 'index,follow';
7821 
7836 $wgNamespaceRobotPolicies = [];
7837 
7864 $wgArticleRobotPolicies = [];
7865 
7876 $wgExemptFromUserRobotsControl = null;
7877  # End robot policy }
7879 
7880 /************************************************************************/
7894 $wgEnableAPI = true;
7895 
7901 $wgEnableWriteAPI = true;
7902 
7917 $wgDebugAPI = false;
7918 
7955 $wgAPIModules = [];
7956 
7964 $wgAPIFormatModules = [];
7965 
7973 $wgAPIMetaModules = [];
7974 
7982 $wgAPIPropModules = [];
7983 
7991 $wgAPIListModules = [];
7992 
7997 $wgAPIMaxDBRows = 5000;
7998 
8003 $wgAPIMaxResultSize = 8388608;
8004 
8009 $wgAPIMaxUncachedDiffs = 1;
8010 
8016 $wgAPIMaxLagThreshold = 7;
8017 
8022 $wgAPIRequestLog = false;
8023 
8027 $wgAPICacheHelpTimeout = 60 * 60;
8028 
8033 $wgAPIUselessQueryPages = [
8034  'MIMEsearch', // aiprop=mime
8035  'LinkSearch', // list=exturlusage
8036  'FileDuplicateSearch', // prop=duplicatefiles
8037 ];
8038 
8042 $wgUseAjax = true;
8043 
8049 $wgAjaxExportList = [];
8050 
8054 $wgAjaxUploadDestCheck = true;
8055 
8059 $wgAjaxLicensePreview = true;
8060 
8065 $wgAjaxEditStash = true;
8066 
8087 $wgCrossSiteAJAXdomains = [];
8088 
8094 $wgCrossSiteAJAXdomainExceptions = [];
8095  # End AJAX and API }
8097 
8098 /************************************************************************/
8106 $wgMaxShellMemory = 307200;
8107 
8112 $wgMaxShellFileSize = 102400;
8113 
8117 $wgMaxShellTime = 180;
8118 
8123 $wgMaxShellWallClockTime = 180;
8124 
8148 $wgShellCgroup = false;
8149 
8153 $wgPhpCli = '/usr/bin/php';
8154 
8160 $wgShellLocale = 'en_US.utf8';
8161  # End shell }
8163 
8164 /************************************************************************/
8172 $wgHTTPTimeout = 25;
8173 
8178 $wgHTTPImportTimeout = 25;
8179 
8183 $wgAsyncHTTPTimeout = 25;
8184 
8188 $wgHTTPProxy = false;
8189 
8200 $wgLocalVirtualHosts = [];
8201 
8206 $wgHTTPConnectTimeout = 5e0;
8207  # End HTTP client }
8209 
8210 /************************************************************************/
8221 $wgJobRunRate = 1;
8222 
8230 $wgRunJobsAsync = false;
8231 
8235 $wgUpdateRowsPerJob = 300;
8236 
8240 $wgUpdateRowsPerQuery = 100;
8241  # End job queue }
8243 
8244 /************************************************************************/
8255 $wgExternalDiffEngine = false;
8256 
8265 $wgDisableHardRedirects = false;
8266 
8271 $wgLinkHolderBatchSize = 1000;
8272 
8277 $wgRegisterInternalExternals = false;
8278 
8282 $wgMaximumMovedPages = 100;
8283 
8288 $wgFixDoubleRedirects = false;
8289 
8294 $wgRedirectOnLogin = null;
8295 
8328 $wgPoolCounterConf = null;
8329 
8333 $wgUploadMaintenance = false;
8334 
8343 $wgNamespaceContentModels = [];
8344 
8355 $wgContentHandlerTextFallback = 'ignore';
8356 
8370 $wgContentHandlerUseDB = true;
8371 
8382 $wgTextModelsToParse = [
8383  CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
8384  CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
8385  CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
8386 ];
8387 
8393 $wgSiteTypes = [
8394  'mediawiki' => 'MediaWikiSite',
8395 ];
8396 
8402 $wgPagePropsHaveSortkey = true;
8403 
8410 $wgHttpsPort = 443;
8411 
8418 $wgSessionSecret = false;
8419 
8427 $wgSessionInsecureSecrets = false;
8428 
8437 $wgHKDFSecret = false;
8438 
8445 $wgHKDFAlgorithm = 'sha256';
8446 
8453 $wgPageLanguageUseDB = false;
8454 
8493  'paths' => [],
8494  'modules' => [],
8495  'global' => [
8496  # Timeout in seconds
8497  'timeout' => 360,
8498  # 'domain' is set to $wgCanonicalServer in Setup.php
8499  'forwardCookies' => false,
8500  'HTTPProxy' => null
8501  ]
8502 ];
8503 
8511 $wgSearchRunSuggestedQuery = true;
8512 
8524 $wgPopularPasswordFile = __DIR__ . '/../serialized/commonpasswords.cdb';
8525 
8526 /*
8527  * Max time (in seconds) a user-generated transaction can spend in writes.
8528  * If exceeded, the transaction is rolled back with an error instead of being committed.
8529  *
8530  * @var int|bool Disabled if false
8531  * @since 1.27
8532  */
8533 $wgMaxUserDBWriteDuration = false;
8534 
8554 $wgEventRelayerConfig = [
8555  'default' => [
8556  'class' => 'EventRelayerNull',
8557  ]
8558 ];
8559 
8573 $wgPingback = false;
8574 
8583 $wgCSPFalsePositiveUrls = [
8584  'https://3hub.co' => true,
8585  'https://morepro.info' => true,
8586  'https://p.ato.mx' => true,
8587  'https://s.ato.mx' => true,
8588  'https://adserver.adtech.de' => true,
8589  'https://ums.adtechus.com' => true,
8590  'https://cas.criteo.com' => true,
8591  'https://cat.nl.eu.criteo.com' => true,
8592  'https://atpixel.alephd.com' => true,
8593  'https://rtb.metrigo.com' => true,
8594  'https://d5p.de17a.com' => true,
8595  'https://ad.lkqd.net/vpaid/vpaid.js' => true,
8596 ];
8597 
8610 $wgLearnerEdits = 10;
8611 $wgLearnerMemberSince = 4; # days
8612 $wgExperiencedUserEdits = 500;
8613 $wgExperiencedUserMemberSince = 30; # days
8614 
8632 $wgInterwikiPrefixDisplayTypes = [];
8633 
$wgConf
$wgConf
wgConf hold the site configuration.
Definition: DefaultSettings.php:62
$wgMemCachedServers
$wgMemCachedServers
The list of MemCached servers and port numbers.
Definition: DefaultSettings.php:2433
$wgAppleTouchIcon
$wgAppleTouchIcon
The URL path of the icon for iPhone and iPod Touch web app bookmarks.
Definition: DefaultSettings.php:308
AV_NO_VIRUS
const AV_NO_VIRUS
Definition: Defines.php:109
$wgDjvuTxt
$wgDjvuTxt
Path of the djvutxt DJVU text extraction utility Enable this and $wgDjvuDump to enable text layer ext...
Definition: DefaultSettings.php:1509
$wgAdditionalMailParams
$wgAdditionalMailParams
Additional email parameters, will be passed as the last argument to mail() call.
Definition: DefaultSettings.php:1652
$wgAllowJavaUploads
$wgAllowJavaUploads
Allow Java archive uploads.
Definition: DefaultSettings.php:904
CONTENT_MODEL_JSON
const CONTENT_MODEL_JSON
Definition: Defines.php:237
$wgUpdateCompatibleMetadata
$wgUpdateCompatibleMetadata
If to automatically update the img_metadata field if the metadata field is outdated but compatible wi...
Definition: DefaultSettings.php:676
file
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
Definition: hooks.txt:93
$wgThumbLimits
$wgThumbLimits
Adjust thumbnails on image pages according to a user setting.
Definition: DefaultSettings.php:1356
$wgDBserver
$wgDBserver
Database host name or IP address.
Definition: DefaultSettings.php:1750
false
processing should stop and the error should be shown to the user * false
Definition: hooks.txt:189
$wgFileBlacklist
$wgFileBlacklist
Files with these extensions will never be allowed as uploads.
Definition: DefaultSettings.php:872
NS_HELP
const NS_HELP
Definition: Defines.php:74
MEDIATYPE_AUDIO
const MEDIATYPE_AUDIO
Definition: defines.php:32
$wgMaxArticleSize
$wgMaxArticleSize
Maximum article size in kilobytes.
Definition: DefaultSettings.php:2174
$wgNamespaceProtection
if( $wgScript===false) if( $wgLoadScript===false) if( $wgArticlePath===false) if(!empty( $wgActionPaths) &&!isset( $wgActionPaths['view'])) if( $wgResourceBasePath===null) if( $wgStylePath===false) if( $wgLocalStylePath===false) if( $wgExtensionAssetsPath===false) if( $wgLogo===false) if( $wgUploadPath===false) if( $wgUploadDirectory===false) if( $wgReadOnlyFile===false) if( $wgFileCacheDirectory===false) if( $wgDeletedDirectory===false) if( $wgGitInfoCacheDirectory===false && $wgCacheDirectory !==false) if( $wgEnableParserCache===false) if( $wgRightsIcon) if(isset( $wgFooterIcons['copyright']['copyright']) && $wgFooterIcons['copyright']['copyright']===[]) if(isset( $wgFooterIcons['poweredby']) &&isset( $wgFooterIcons['poweredby']['mediawiki']) && $wgFooterIcons['poweredby']['mediawiki']['src']===null) $wgNamespaceProtection[NS_MEDIAWIKI]
Unconditional protection for NS_MEDIAWIKI since otherwise it's too easy for a sysadmin to set $wgName...
Definition: Setup.php:157
$wgCookiePrefix
if( $wgLocalInterwiki) if( $wgSharedPrefix===false) if( $wgSharedSchema===false) if(! $wgCookiePrefix) $wgCookiePrefix
Definition: Setup.php:326
$wgNewPasswordExpiry
$wgNewPasswordExpiry
The time, in seconds, when an emailed temporary password expires.
Definition: DefaultSettings.php:1611
$wgStyleSheetPath
$wgStyleSheetPath
The URL path to index.php.
Definition: DefaultSettings.php:218
$wgExternalStores
$wgExternalStores
External stores allow including content from non database sources following URL links.
Definition: DefaultSettings.php:2092
$wgResponsiveImages
$wgResponsiveImages
Generate and use thumbnails suitable for screens with 1.5 and 2.0 pixel densities.
Definition: DefaultSettings.php:1483
$wgInvalidateCacheOnLocalSettingsChange
$wgInvalidateCacheOnLocalSettingsChange
Invalidate various caches when LocalSettings.php changes.
Definition: DefaultSettings.php:2595
SiteConfiguration
This is a class for holding configuration settings, particularly for multi-wiki sites.
Definition: SiteConfiguration.php:122
$wgTmpDirectory
$wgTmpDirectory
The local filesystem path to a temporary directory.
Definition: DefaultSettings.php:334
$wgEnotifMinorEdits
$wgEnotifMinorEdits
Potentially send notification mails on minor edits to pages.
Definition: DefaultSettings.php:1712
$wgDBname
$wgDBname
Name of the database.
Definition: DefaultSettings.php:1760
AV_SCAN_FAILED
const AV_SCAN_FAILED
Definition: Defines.php:112
$wgCopyUploadsDomains
$wgCopyUploadsDomains
A list of domains copy uploads can come from.
Definition: DefaultSettings.php:737
$wgSharedTables
$wgSharedTables
Definition: DefaultSettings.php:1887
$wgAutoloadClasses
global $wgAutoloadClasses
Definition: TestsAutoLoader.php:24
$wgSharedSchema
$wgSharedSchema
Definition: DefaultSettings.php:1893
$wgLegacyEncoding
$wgLegacyEncoding
Set this to eg 'ISO-8859-1' to perform character set conversion when loading old revisions not marked...
Definition: DefaultSettings.php:2958
$wgJpegPixelFormat
$wgJpegPixelFormat
At default setting of 'yuv420', JPEG thumbnails will use 4:2:0 chroma subsampling to reduce file size...
Definition: DefaultSettings.php:1066
NS_TEMPLATE_TALK
const NS_TEMPLATE_TALK
Definition: Defines.php:73
$wgMimeInfoFile
$wgMimeInfoFile
Sets the MIME type info file to use by MimeMagic.php.
Definition: DefaultSettings.php:1301
$wgExiftool
$wgExiftool
Path to exiftool binary.
Definition: DefaultSettings.php:1079
$wgSearchTypeAlternatives
$wgSearchTypeAlternatives
Alternative search types Sometimes you want to support multiple search engines for testing.
Definition: DefaultSettings.php:1822
$wgUsersNotifiedOnAllChanges
$wgUsersNotifiedOnAllChanges
Array of usernames who will be sent a notification email for every change which occurs on a wiki.
Definition: DefaultSettings.php:1738
$wgDefaultUserOptions
if( $wgRCFilterByAge) $wgDefaultUserOptions['rcdays']
Definition: Setup.php:284
$wgSharpenParameter
$wgSharpenParameter
Sharpening parameter to ImageMagick.
Definition: DefaultSettings.php:1013
text
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
Definition: design.txt:12
$wgScript
$wgScript
The URL path to index.php.
Definition: DefaultSettings.php:202
$wgSessionsInObjectCache
$wgSessionsInObjectCache
Definition: DefaultSettings.php:2388
CACHE_NONE
const CACHE_NONE
Definition: Defines.php:100
$wgDBport
$wgDBport
Database port number (for PostgreSQL and Microsoft SQL Server).
Definition: DefaultSettings.php:1755
$wgHTCPMulticastTTL
$wgHTCPMulticastTTL
HTCP multicast TTL.
Definition: DefaultSettings.php:2809
$wgDBtype
$wgDBtype
Database type.
Definition: DefaultSettings.php:1775
$wgDisableQueryPages
$wgDisableQueryPages
Disable all query pages if miser mode is on, not just some.
Definition: DefaultSettings.php:2149
$wgSharedDB
$wgSharedDB
Shared database for multiple wikis.
Definition: DefaultSettings.php:1877
$wgSVGMaxSize
$wgSVGMaxSize
Don't scale a SVG larger than this.
Definition: DefaultSettings.php:1115
$wgHideInterlanguageLinks
$wgHideInterlanguageLinks
Hide interlanguage links from the sidebar.
Definition: DefaultSettings.php:2866
$wgLocalFileRepo
$wgLocalFileRepo
File repository structures.
Definition: DefaultSettings.php:517
CONTENT_MODEL_CSS
const CONTENT_MODEL_CSS
Definition: Defines.php:235
$wgWANObjectCaches
$wgWANObjectCaches
Advanced WAN object cache configuration.
Definition: DefaultSettings.php:2335
$wgDjvuPostProcessor
$wgDjvuPostProcessor
Shell command for the DJVU post processor Default: pnmtojpeg, since ddjvu generates ppm output Set th...
Definition: DefaultSettings.php:1532
$wgVersion
$wgVersion
MediaWiki version number.
Definition: DefaultSettings.php:78
CACHE_MEMCACHED
const CACHE_MEMCACHED
Definition: Defines.php:102
$wgHtml5
if( $wgUseFileCache|| $wgUseSquid) $wgHtml5
Definition: Setup.php:424
$wgEmailAuthentication
$wgEmailAuthentication
Require email authentication before sending mail to an email address.
Definition: DefaultSettings.php:1677
$wgSharedUploadDBprefix
$wgSharedUploadDBprefix
Optional table prefix used in database.
Definition: DefaultSettings.php:717
$wgMaxUploadSize
$wgMaxUploadSize
Max size for uploads, in bytes.
Definition: DefaultSettings.php:778
$wgDBmwschema
$wgDBmwschema
Mediawiki schema.
Definition: DefaultSettings.php:1845
$wgExternalServers
$wgExternalServers
An array of external MySQL servers.
Definition: DefaultSettings.php:2108
$wgMessageCacheType
$wgMessageCacheType
The cache type for storing the contents of the MediaWiki namespace.
Definition: DefaultSettings.php:2232
$wgVirtualRestConfig
if(! $wgEmergencyContact) if(! $wgPasswordSender) if(! $wgNoReplyAddress) if( $wgSecureLogin &&substr( $wgServer, 0, 2) !=='//') $wgVirtualRestConfig['global']['domain']
Definition: Setup.php:584
$wgDBmysql5
$wgDBmysql5
Set to true to engage MySQL 4.1/5.0 charset-related features; for now will just cause sending of 'SET...
Definition: DefaultSettings.php:2012
CACHE_ACCEL
const CACHE_ACCEL
Definition: Defines.php:103
$wgGenerateThumbnailOnParse
$wgGenerateThumbnailOnParse
Allow thumbnail rendering on page view.
Definition: DefaultSettings.php:1210
$wgFileExtensions
$wgFileExtensions
This is the list of preferred extensions for uploading files.
Definition: DefaultSettings.php:865
APCOND_EDITCOUNT
const APCOND_EDITCOUNT
Definition: Defines.php:203
$wgEnableUserEmail
$wgEnableUserEmail
Set to true to enable user-to-user e-mail.
Definition: DefaultSettings.php:1589
$wgEnotifRevealEditorAddress
$wgEnotifRevealEditorAddress
Set the Reply-to address in notifications to the editor's address, if user allowed this in the prefer...
Definition: DefaultSettings.php:1697
$wgUseSharedUploads
$wgUseSharedUploads
If you operate multiple wikis, you can define a shared upload path here.
Definition: DefaultSettings.php:691
$wgWantedPagesThreshold
$wgWantedPagesThreshold
Number of links to a page required before it is deemed "wanted".
Definition: DefaultSettings.php:2159
$wgLangObjCacheSize
$wgLangObjCacheSize
Language cache size, or really how many languages can we handle simultaneously without degrading to c...
Definition: DefaultSettings.php:2845
$wgExtensionAssetsPath
$wgExtensionAssetsPath
The URL path of the extensions directory.
Definition: DefaultSettings.php:232
NS_TEMPLATE
const NS_TEMPLATE
Definition: Defines.php:72
$wgEnotifWatchlist
$wgEnotifWatchlist
Allow users to enable email notification ("enotif") on watchlist changes.
Definition: DefaultSettings.php:1682
$wgMimeTypeBlacklist
$wgMimeTypeBlacklist
Files with these MIME types will never be allowed as uploads if $wgVerifyMimeType is enabled.
Definition: DefaultSettings.php:886
APCOND_AGE
const APCOND_AGE
Definition: Defines.php:204
$wgLBFactoryConf
$wgLBFactoryConf
Load balancer factory configuration To set up a multi-master wiki farm, set the class here to somethi...
Definition: DefaultSettings.php:1961
$wgUseSquid
$wgUseSquid
Enable/disable CDN.
Definition: DefaultSettings.php:2633
$wgHashedSharedUploadDirectory
$wgHashedSharedUploadDirectory
Set the following to false especially if you have a set of files that need to be accessible by all wi...
Definition: DefaultSettings.php:845
$wgAllowSchemaUpdates
$wgAllowSchemaUpdates
Allow schema updates.
Definition: DefaultSettings.php:2169
$wgCacheDirectory
$wgCacheDirectory
Directory for caching data in the local filesystem.
Definition: DefaultSettings.php:2205
$wgSidebarCacheExpiry
$wgSidebarCacheExpiry
Expiry time for the sidebar cache, in seconds.
Definition: DefaultSettings.php:2568
CONTENT_MODEL_WIKITEXT
const CONTENT_MODEL_WIKITEXT
Definition: Defines.php:233
$wgThumbnailBuckets
$wgThumbnailBuckets
When defined, is an array of image widths used as buckets for thumbnail generation.
Definition: DefaultSettings.php:1374
$wgTransactionalTimeLimit
$wgTransactionalTimeLimit
The minimum amount of time that MediaWiki needs for "slow" write request, particularly ones with mult...
Definition: DefaultSettings.php:2188
$wgDefaultExternalStore
array $wgDefaultExternalStore
The place to put new revisions, false to put them in the local text table.
Definition: DefaultSettings.php:2124
$wgDBOracleDRCP
$wgDBOracleDRCP
Set true to enable Oracle DCRP (supported from 11gR1 onward)
Definition: DefaultSettings.php:2040
$wgStrictFileExtensions
$wgStrictFileExtensions
If this is turned off, users may override the warning for files not covered by $wgFileExtensions.
Definition: DefaultSettings.php:919
$wgForeignUploadTargets
$wgForeignUploadTargets
Array of foreign file repo names (set in $wgForeignFileRepos above) that are allowable upload targets...
Definition: DefaultSettings.php:540
cache
you have access to all of the normal MediaWiki so you can get a DB use the cache
Definition: maintenance.txt:52
$wgLogo
$wgLogo
The URL path of the wiki logo.
Definition: DefaultSettings.php:278
$wgEnableParserCache
$wgEnableParserCache
Kept for extension compatibility; see $wgParserCacheType.
Definition: DefaultSettings.php:2546
$wgDjvuRenderer
$wgDjvuRenderer
Path of the ddjvu DJVU renderer Enable this and $wgDjvuDump to enable djvu rendering example: $wgDjvu...
Definition: DefaultSettings.php:1502
$wgDBpassword
$wgDBpassword
Database user's password.
Definition: DefaultSettings.php:1770
$wgFixMalayalamUnicode
$wgFixMalayalamUnicode
Set this to true to replace ZWJ-based chillu sequences in Malayalam text with their Unicode 5....
Definition: DefaultSettings.php:2934
$wgDBprefix
$wgDBprefix
Table name prefix.
Definition: DefaultSettings.php:1827
$wgStylePath
$wgStylePath
The URL path of the skins directory.
Definition: DefaultSettings.php:217
$wgThumbnailMinimumBucketDistance
$wgThumbnailMinimumBucketDistance
When using thumbnail buckets as defined above, this sets the minimum distance to the bucket above the...
Definition: DefaultSettings.php:1391
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
pages
The ContentHandler facility adds support for arbitrary content types on wiki pages
Definition: contenthandler.txt:1
$wgClockSkewFudge
$wgClockSkewFudge
Clock skew or the one-second resolution of time() can occasionally cause cache problems when the user...
Definition: DefaultSettings.php:2584
AV_SCAN_ABORTED
const AV_SCAN_ABORTED
Definition: Defines.php:111
$wgUploadStashScalerBaseUrl
$wgUploadStashScalerBaseUrl
To enable remote on-demand scaling, set this to the thumbnail base URL.
Definition: DefaultSettings.php:350
$wgThumbnailEpoch
$wgThumbnailEpoch
If rendered thumbnail files are older than this timestamp, they will be rerendered on demand as if th...
Definition: DefaultSettings.php:1180
$wgDBerrorLog
$wgDBerrorLog
File to log database errors to.
Definition: DefaultSettings.php:1974
$wgPasswordExpireGrace
$wgPasswordExpireGrace
If a user's password is expired, the number of seconds when they can still login, and cancel their pa...
Definition: DefaultSettings.php:1628
$wgUploadStashMaxAge
$wgUploadStashMaxAge
The maximum age of temporary (incomplete) uploaded files.
Definition: DefaultSettings.php:383
$wgPasswordSenderName
$wgPasswordSenderName
Sender name for e-mail notifications.
Definition: DefaultSettings.php:1569
$wgRepositoryBaseUrl
$wgRepositoryBaseUrl
Base URL for a repository wiki.
Definition: DefaultSettings.php:855
$wgEnableWANCacheReaper
bool $wgEnableWANCacheReaper
Verify and enforce WAN cache purges using reliable DB sources as streams.
Definition: DefaultSettings.php:2361
SiteStore
Definition: SiteStore.php:29
$wgAssumeProxiesUseDefaultProtocolPorts
bool $wgAssumeProxiesUseDefaultProtocolPorts
When the wiki is running behind a proxy and this is set to true, assumes that the proxy exposes the w...
Definition: DefaultSettings.php:91
NS_MAIN
const NS_MAIN
Definition: Defines.php:62
$wgUseInstantCommons
$wgUseInstantCommons
Use Commons as a remote file repository.
Definition: DefaultSettings.php:529
$wgMediaHandlers
$wgMediaHandlers
Plugins for media file type handling.
Definition: DefaultSettings.php:960
$wgDBadminuser
$wgDBadminuser
Separate username for maintenance tasks.
Definition: DefaultSettings.php:1800
$wgReferrerPolicy
$wgReferrerPolicy
Value for the referrer policy meta tag.
Definition: DefaultSettings.php:318
$wgHashedUploadDirectory
$wgHashedUploadDirectory
Set this to false if you do not want MediaWiki to divide your images directory into many subdirectori...
Definition: DefaultSettings.php:838
$wgAttemptFailureEpoch
$wgAttemptFailureEpoch
Certain operations are avoided if there were too many recent failures, for example,...
Definition: DefaultSettings.php:1188
$wgEnotifUseRealName
$wgEnotifUseRealName
Use real name instead of username in e-mail "from" field.
Definition: DefaultSettings.php:1732
$wgDBservers
$wgDBservers
Database load balancer This is a two-dimensional array, an array of server info structures Fields are...
Definition: DefaultSettings.php:1949
$wgAdaptiveMessageCache
$wgAdaptiveMessageCache
Instead of caching everything, only cache those messages which have been customised in the site conte...
Definition: DefaultSettings.php:2465
$wgSVGConverterPath
$wgSVGConverterPath
If not in the executable PATH, specify the SVG converter path.
Definition: DefaultSettings.php:1110
$wgNoReplyAddress
$wgNoReplyAddress
Reply-To address for e-mail notifications.
Definition: DefaultSettings.php:1576
$wgDBWindowsAuthentication
$wgDBWindowsAuthentication
Use Windows Authentication instead of $wgDBuser / $wgDBpassword for MS SQL Server.
Definition: DefaultSettings.php:2064
$wgSharedUploadPath
$wgSharedUploadPath
Full path on the web server where shared uploads can be found.
Definition: DefaultSettings.php:696
$wgSQLiteDataDir
$wgSQLiteDataDir
To override default SQLite data directory ($docroot/../data)
Definition: DefaultSettings.php:1850
$wgUseKeyHeader
$wgUseKeyHeader
Send the Key HTTP header for better caching.
Definition: DefaultSettings.php:2645
$wgSquidServersNoPurge
$wgSquidServersNoPurge
As above, except these servers aren't purged on page changes; use to set a list of trusted proxies,...
Definition: DefaultSettings.php:2729
NS_PROJECT
const NS_PROJECT
Definition: Defines.php:66
$wgUploadSizeWarning
$wgUploadSizeWarning
Warn if uploaded files are larger than this (in bytes), or false to disable.
Definition: DefaultSettings.php:932
a
</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Multiline< source/> in lists !input *< source > a b</source > *foo< source > a b</source > ! html< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! html tidy< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! end ! test Custom attributes !input< source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var a
Definition: parserTests.txt:89
$wgEmergencyContact
$wgEmergencyContact
Site admin email address.
Definition: DefaultSettings.php:1553
user
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Definition: distributors.txt:9
$wgContentHandlers
$wgContentHandlers
Plugins for page content model handling.
Definition: DefaultSettings.php:969
$wgAntivirusRequired
$wgAntivirusRequired
Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
Definition: DefaultSettings.php:1283
$wgLockManagers
$wgLockManagers
Array of configuration arrays for each lock manager.
Definition: DefaultSettings.php:656
$wgLanguageConverterCacheType
$wgLanguageConverterCacheType
The cache type for storing language conversion tables, which are used when parsing certain text and i...
Definition: DefaultSettings.php:2257
$wgUseImageMagick
$wgUseImageMagick
Resizing can be done using PHP's internal image libraries or using ImageMagick or another third-party...
Definition: DefaultSettings.php:997
$wgUseFileCache
$wgUseFileCache
This will cache static pages for non-logged-in users to reduce database traffic on public sites.
Definition: DefaultSettings.php:2532
$wgCommandLineMode
global $wgCommandLineMode
Definition: Setup.php:503
$wgEnableSidebarCache
$wgEnableSidebarCache
If on, the sidebar navigation links are cached for users with the current language set.
Definition: DefaultSettings.php:2563
copyright
in the Source form of any Derivative Works that You all copyright
Definition: APACHE-LICENSE-2.0.txt:102
$wgStyleVersion
$wgStyleVersion
Bump this number when changing the global style sheets and JavaScript.
Definition: DefaultSettings.php:2525
$wgUploadThumbnailRenderMap
$wgUploadThumbnailRenderMap
When defined, is an array of thumbnail widths to be rendered at upload time.
Definition: DefaultSettings.php:1403
$wgDjvuToXML
$wgDjvuToXML
Path of the djvutoxml executable This works like djvudump except much, much slower as of version 3....
Definition: DefaultSettings.php:1525
NS_MEDIAWIKI_TALK
const NS_MEDIAWIKI_TALK
Definition: Defines.php:71
$wgLoadScript
$wgLoadScript
The URL path to load.php.
Definition: DefaultSettings.php:210
not
if not
Definition: COPYING.txt:307
$wgMimeTypeFile
$wgMimeTypeFile
Sets the MIME type definition file to use by MimeMagic.php.
Definition: DefaultSettings.php:1295
$wgAntivirusSetup
$wgAntivirusSetup
Configuration for different virus scanners.
Definition: DefaultSettings.php:1265
$IP
$IP
Definition: update.php:3
$wgObjectCaches
$wgObjectCaches
Advanced object cache configuration.
Definition: DefaultSettings.php:2272
$wgSharedPrefix
$wgSharedPrefix
Definition: DefaultSettings.php:1882
$wgHTCPRouting
$wgHTCPRouting
Routing configuration for HTCP multicast purging.
Definition: DefaultSettings.php:2803
$wgFetchCommonsDescriptions
$wgFetchCommonsDescriptions
Fetch commons image description pages and display them on the local wiki?
Definition: DefaultSettings.php:701
$wgMimeDetectorCommand
$wgMimeDetectorCommand
Sets an external MIME detector program.
Definition: DefaultSettings.php:1314
$wgFixArabicUnicode
$wgFixArabicUnicode
Set this to true to replace Arabic presentation forms with their standard forms in the U+0600-U+06FF ...
Definition: DefaultSettings.php:2923
$wgParserCacheExpireTime
$wgParserCacheExpireTime
The expiry time for the parser cache, in seconds.
Definition: DefaultSettings.php:2383
$wgPasswordReminderResendTime
$wgPasswordReminderResendTime
Minimum time, in hours, which must elapse between password reminder emails for a given account.
Definition: DefaultSettings.php:1606
$wgImgAuthDetails
$wgImgAuthDetails
Set this to true if you use img_auth and want the user to see details on why access failed.
Definition: DefaultSettings.php:418
$wgUseGzip
$wgUseGzip
When using the file cache, we can store the cached HTML gzipped to save disk space.
Definition: DefaultSettings.php:2576
$wgVaryOnXFP
$wgVaryOnXFP
Add X-Forwarded-Proto to the Vary and Key headers for API requests and RSS/Atom feeds.
Definition: DefaultSettings.php:2655
$wgCdnMaxageSubstitute
$wgCdnMaxageSubstitute
Cache timeout for the CDN when a response is known to be wrong or incomplete (due to load)
Definition: DefaultSettings.php:2704
$wgInterwikiMagic
$wgInterwikiMagic
Treat language links as magic connectors, not inline links.
Definition: DefaultSettings.php:2861
AV_VIRUS_FOUND
const AV_VIRUS_FOUND
Definition: Defines.php:110
$wgParserCacheType
$wgParserCacheType
The cache type for storing article HTML.
Definition: DefaultSettings.php:2240
$wgLocalisationCacheConf
$wgLocalisationCacheConf
Localisation cache configuration.
Definition: DefaultSettings.php:2489
$wgMaxImageArea
$wgMaxImageArea
The maximum number of pixels a source image can have if it is to be scaled down by a scaler that requ...
Definition: DefaultSettings.php:1149
$wgEnableEmail
$wgEnableEmail
Set to true to enable the e-mail basic features: Password reminders, etc.
Definition: DefaultSettings.php:1583
MEDIATYPE_BITMAP
const MEDIATYPE_BITMAP
Definition: defines.php:28
rights
and that you know you can do these things To protect your rights
Definition: COPYING.txt:28
$wgMaxInterlacingAreas
$wgMaxInterlacingAreas
Array of max pixel areas for interlacing per MIME type.
Definition: DefaultSettings.php:1008
$wgCopyUploadProxy
$wgCopyUploadProxy
Proxy to use for copy upload requests.
Definition: DefaultSettings.php:750
NS_CATEGORY
const NS_CATEGORY
Definition: Defines.php:76
$wgFileBackends
$wgFileBackends
File backend structure configuration.
Definition: DefaultSettings.php:640
settings
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration settings
Definition: globals.txt:25
$wgDjvuOutputExtension
$wgDjvuOutputExtension
File extension for the DJVU post processor output.
Definition: DefaultSettings.php:1537
$wgMemCachedDebug
$wgMemCachedDebug
If enabled, will send MemCached debugging information to $wgDebugLogFile.
Definition: DefaultSettings.php:2428
$wgMemCachedTimeout
$wgMemCachedTimeout
Read/write timeout for MemCached server communication, in microseconds.
Definition: DefaultSettings.php:2444
$wgCompressRevisions
$wgCompressRevisions
We can also compress text stored in the 'text' table.
Definition: DefaultSettings.php:2079
$wgCanonicalServer
$wgCanonicalServer
Canonical URL of the server, to use in IRC feeds and notification e-mails.
Definition: DefaultSettings.php:118
$wgMemoryLimit
$wgMemoryLimit
The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit i...
Definition: DefaultSettings.php:2180
$wgCacheSharedUploads
$wgCacheSharedUploads
Cache shared metadata in memcached.
Definition: DefaultSettings.php:723
$wgConfigRegistry
$wgConfigRegistry
Registry of factory functions to create config objects: The 'main' key must be set,...
Definition: DefaultSettings.php:70
$wgLocalDatabases
$wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.
Definition: DefaultSettings.php:2047
$wgMaxAnimatedGifArea
$wgMaxAnimatedGifArea
Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnai...
Definition: DefaultSettings.php:1157
will
</td >< td > &</td >< td > t want your writing to be edited mercilessly and redistributed at will
Definition: All_system_messages.txt:914
$wgCachePages
$wgCachePages
Allow client-side caching of pages.
Definition: DefaultSettings.php:2500
$wgSVGMetadataCutoff
$wgSVGMetadataCutoff
Don't read SVG metadata beyond this point.
Definition: DefaultSettings.php:1121
$wgExtraLanguageNames
$wgExtraLanguageNames
List of language names or overrides for default names in Names.php.
Definition: DefaultSettings.php:2886
$wgDBcompress
$wgDBcompress
Whether to use compression in DB connection.
Definition: DefaultSettings.php:1795
performance
MediaWiki has optional support for a high performance
Definition: memcached.txt:1
$wgEnotifUserTalk
$wgEnotifUserTalk
Allow users to enable email notification ("enotif") when someone edits their user talk page.
Definition: DefaultSettings.php:1691
$wgSessionPbkdf2Iterations
$wgSessionPbkdf2Iterations
Number of internal PBKDF2 iterations to use when deriving session secrets.
Definition: DefaultSettings.php:2423
$wgImgAuthUrlPathMap
$wgImgAuthUrlPathMap
Map of relative URL directories to match to internal mwstore:// base storage paths.
Definition: DefaultSettings.php:434
$wgForcedRawSMaxage
$wgForcedRawSMaxage
Default maximum age for raw CSS/JS accesses.
Definition: DefaultSettings.php:2711
storage
For QUnit the mediawiki tests qunit testrunner dependency will be added to any module it s the URL of the revision text in external storage
Definition: hooks.txt:2742
$wgSessionHandler
$wgSessionHandler
Definition: DefaultSettings.php:2398
NS_USER_TALK
const NS_USER_TALK
Definition: Defines.php:65
$wgSlaveLagWarning
$wgSlaveLagWarning
If lag is higher than $wgSlaveLagWarning, show a warning in some special pages (like watchlist).
Definition: DefaultSettings.php:2054
$wgFileCacheDepth
$wgFileCacheDepth
Depth of the subdirectory hierarchy to be created under $wgFileCacheDirectory.
Definition: DefaultSettings.php:2540
$wgExtensionDirectory
$wgExtensionDirectory
Filesystem extensions directory.
Definition: DefaultSettings.php:239
$wgServerName
$wgServerName
Server name.
Definition: DefaultSettings.php:125
$wgLogoHD
$wgLogoHD
Array with URL paths to HD versions of the wiki logo.
Definition: DefaultSettings.php:295
$wgUsePrivateIPs
$wgUsePrivateIPs
Should forwarded Private IPs be accepted?
Definition: DefaultSettings.php:2814
$wgNamespaceAliases
$wgNamespaceAliases['Image']
The canonical names of namespaces 6 and 7 are, as of v1.14, "File" and "File_talk".
Definition: Setup.php:164
$wgImageMagickConvertCommand
$wgImageMagickConvertCommand
The convert command shipped with ImageMagick.
Definition: DefaultSettings.php:1002
$wgDeletedDirectory
$wgDeletedDirectory
What directory to place deleted uploads in.
Definition: DefaultSettings.php:413
$wgIgnoreImageErrors
$wgIgnoreImageErrors
If set, inline scaled images will still produce "<img>" tags ready for output instead of showing an e...
Definition: DefaultSettings.php:1201
$wgSharpenReductionThreshold
$wgSharpenReductionThreshold
Reduction in linear dimensions below which sharpening will be enabled.
Definition: DefaultSettings.php:1018
title
title
Definition: parserTests.txt:211
$wgServer
$wgServer
URL of the server.
Definition: DefaultSettings.php:109
$wgRevisionCacheExpiry
$wgRevisionCacheExpiry
Revision text may be cached in $wgMemc to reduce load on external storage servers and object extracti...
Definition: DefaultSettings.php:2132
extensions
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types as usual *javascript user provided javascript code *json simple implementation for use by extensions
Definition: contenthandler.txt:5
language
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of either verbatim or with modifications and or translated into another language(Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying
$wgAllowImageMoving
$wgAllowImageMoving
Allows to move images and other media files.
Definition: DefaultSettings.php:388
$wgUploadDialog
$wgUploadDialog
Configuration for file uploads using the embeddable upload dialog (https://www.mediawiki....
Definition: DefaultSettings.php:551
$wgLanguageCode
$wgLanguageCode
Site language code.
Definition: DefaultSettings.php:2839
$wgSitename
$wgSitename
Name of the site.
Definition: DefaultSettings.php:83
$wgDirectoryMode
$wgDirectoryMode
Default value for chmoding of new directories.
Definition: DefaultSettings.php:1471
CACHE_ANYTHING
const CACHE_ANYTHING
Definition: Defines.php:99
NS_PROJECT_TALK
const NS_PROJECT_TALK
Definition: Defines.php:67
$wgJsMimeType
$wgJsMimeType
Definition: Setup.php:426
$wgUploadBaseUrl
$wgUploadBaseUrl
If set, this URL is added to the start of $wgUploadPath to form a complete upload URL.
Definition: DefaultSettings.php:341
$wgTiffThumbnailType
$wgTiffThumbnailType
Browsers don't support TIFF inline generally...
Definition: DefaultSettings.php:1172
$wgSearchType
$wgSearchType
Search type.
Definition: DefaultSettings.php:1813
$wgSMTP
$wgSMTP
SMTP Mode.
Definition: DefaultSettings.php:1647
$wgUploadDirectory
$wgUploadDirectory
The filesystem path of the images directory.
Definition: DefaultSettings.php:266
$wgUploadThumbnailRenderHttpCustomHost
$wgUploadThumbnailRenderHttpCustomHost
When using the "http" wgUploadThumbnailRenderMethod, lets one specify a custom Host HTTP header.
Definition: DefaultSettings.php:1423
$wgIllegalFileChars
$wgIllegalFileChars
Additional characters that are not allowed in filenames.
Definition: DefaultSettings.php:407
$wgAllowHTMLEmail
$wgAllowHTMLEmail
For parts of the system that have been updated to provide HTML email content, send both text and HTML...
Definition: DefaultSettings.php:1658
$wgDBTableOptions
$wgDBTableOptions
MySQL table options to use during installation or update.
Definition: DefaultSettings.php:1832
$wgSquidServers
$wgSquidServers
List of proxy servers to purge on changes; default port is 80.
Definition: DefaultSettings.php:2721
$wgTrivialMimeDetection
$wgTrivialMimeDetection
Switch for trivial MIME detection.
Definition: DefaultSettings.php:1321
$wgCustomConvertCommand
$wgCustomConvertCommand
Use another resizing converter, e.g.
Definition: DefaultSettings.php:1038
$wgFavicon
$wgFavicon
The URL path of the shortcut icon.
Definition: DefaultSettings.php:301
format
if the prop value should be in the metadata multi language array format
Definition: hooks.txt:1630
$wgEnableAsyncUploads
$wgEnableAsyncUploads
Enable deferred upload tasks that use the job queue.
Definition: DefaultSettings.php:398
$wgUploadNavigationUrl
$wgUploadNavigationUrl
Point the upload navigation link to an external URL Useful if you want to use a shared repository by ...
Definition: DefaultSettings.php:798
$wgMinUploadChunkSize
$wgMinUploadChunkSize
Minimum upload chunk size, in bytes.
Definition: DefaultSettings.php:786
$wgExtraInterlanguageLinkPrefixes
$wgExtraInterlanguageLinkPrefixes
List of additional interwiki prefixes that should be treated as interlanguage links (i....
Definition: DefaultSettings.php:2881
$wgCopyUploadsFromSpecialUpload
$wgCopyUploadsFromSpecialUpload
Enable copy uploads from Special:Upload.
Definition: DefaultSettings.php:744
$wgArticlePath
$wgArticlePath
The URL path for primary article page views.
Definition: DefaultSettings.php:255
$wgSessionCacheType
$wgSessionCacheType
The cache type for storing session data.
Definition: DefaultSettings.php:2247
$wgSquidPurgeUseHostHeader
$wgSquidPurgeUseHostHeader
Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServer...
Definition: DefaultSettings.php:2750
$wgJpegTran
$wgJpegTran
used for lossless jpeg rotation
Definition: DefaultSettings.php:1045
$wgCacheEpoch
$wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
Definition: DefaultSettings.php:2510
$wgUserEmailConfirmationTokenExpiry
$wgUserEmailConfirmationTokenExpiry
The time, in seconds, when an email confirmation email expires.
Definition: DefaultSettings.php:1616
$wgGitInfoCacheDirectory
$wgGitInfoCacheDirectory
Directory where GitInfo will look for pre-computed cache files.
Definition: DefaultSettings.php:2516
$wgImageLimits
$wgImageLimits
Limit images on image description pages to a user-selectable limit.
Definition: DefaultSettings.php:1343
$wgXhtmlDefaultNamespace
$wgXhtmlDefaultNamespace
Definition: Setup.php:425
$wgActionPaths
$wgActionPaths
To set 'pretty' URL paths for actions other than plain page views, add to this array.
Definition: DefaultSettings.php:366
and
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgSharedUploadDBname
$wgSharedUploadDBname
DB name with metadata about shared directory.
Definition: DefaultSettings.php:712
$wgMiserMode
$wgMiserMode
Disable database-intensive features.
Definition: DefaultSettings.php:2144
$wgEnotifFromEditor
$wgEnotifFromEditor
True: from page editor if s/he opted-in.
Definition: DefaultSettings.php:1664
$wgSharedUploadDirectory
$wgSharedUploadDirectory
Path on the file system where shared uploads can be found.
Definition: DefaultSettings.php:706
$wgUseTinyRGBForJPGThumbnails
$wgUseTinyRGBForJPGThumbnails
When this variable is true and JPGs use the sRGB ICC profile, swaps it for the more lightweight (and ...
Definition: DefaultSettings.php:1439
MEDIATYPE_VIDEO
const MEDIATYPE_VIDEO
Definition: defines.php:35
$wgDisableUploadScriptChecks
$wgDisableUploadScriptChecks
Setting this to true will disable the upload system's checks for HTML/JavaScript.
Definition: DefaultSettings.php:927
output
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add in any and then calling output() to send it all. It could be easily changed to send incrementally if that becomes useful
$wgSkipSkins
if( $wgSkipSkin) $wgSkipSkins[]
Definition: Setup.php:298
NS_HELP_TALK
const NS_HELP_TALK
Definition: Defines.php:75
$wgThumbnailScriptPath
$wgThumbnailScriptPath
Give a path here to use thumb.php for thumbnail generation on client request, instead of generating t...
Definition: DefaultSettings.php:818
$wgExiv2Command
$wgExiv2Command
Some tests and extensions use exiv2 to manipulate the Exif metadata in some image formats.
Definition: DefaultSettings.php:1072
$wgGrammarForms
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Definition: DefaultSettings.php:2856
$wgHooks
$wgHooks['ArticleShow'][]
Definition: hooks.txt:110
$wgExtensionMessagesFiles
$wgExtensionMessagesFiles['ExtensionNameMagic']
Definition: magicword.txt:43
$wgMainCacheType
CACHE_MEMCACHED $wgMainCacheType
Definition: memcached.txt:63
Interwiki
Value object for representing interwiki records.
Definition: Interwiki.php:27
$wgThumbUpright
$wgThumbUpright
Adjust width of upright images when parameter 'upright' is used This allows a nicer look for upright ...
Definition: DefaultSettings.php:1466
$wgVerifyMimeType
$wgVerifyMimeType
Determines if the MIME type of uploaded files should be checked.
Definition: DefaultSettings.php:1288
$wgQueryCacheLimit
$wgQueryCacheLimit
Number of rows to cache in 'querycache' table when miser mode is on.
Definition: DefaultSettings.php:2154
WebRequest\detectServer
static detectServer()
Work out an appropriate URL prefix containing scheme and host, based on information detected from $_S...
Definition: WebRequest.php:197
$wgEnableUploads
$wgEnableUploads
Uploads have to be specially set up to be secure.
Definition: DefaultSettings.php:378
$wgRenderHashAppend
$wgRenderHashAppend
Append a configured value to the parser cache and the sitenotice key so that they can be kept separat...
Definition: DefaultSettings.php:2552
NS_USER
const NS_USER
Definition: Defines.php:64
$wgSlaveLagCritical
$wgSlaveLagCritical
Definition: DefaultSettings.php:2059
true
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
Definition: hooks.txt:1956
$wgSVGConverters
$wgSVGConverters
Scalable Vector Graphics (SVG) may be uploaded as images.
Definition: DefaultSettings.php:1090
$wgExtensionInfoMTime
int bool $wgExtensionInfoMTime
When loading extensions through the extension registration system, this can be used to invalidate the...
Definition: DefaultSettings.php:2612
$wgAllowCopyUploads
$wgAllowCopyUploads
Allow for upload to be copied from an URL.
Definition: DefaultSettings.php:730
NS_TALK
const NS_TALK
Definition: Defines.php:63
$wgEnotifImpersonal
$wgEnotifImpersonal
Send a generic mail instead of a personalised mail for each user.
Definition: DefaultSettings.php:1721
captcha-old.parser
parser
Definition: captcha-old.py:187
$wgFileCacheDirectory
$wgFileCacheDirectory
Directory where the cached page will be saved.
Definition: DefaultSettings.php:272
$wgUploadPath
$wgUploadPath
The URL path for the images directory.
Definition: DefaultSettings.php:261
of
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
Definition: globals.txt:10
$wgDjvuDump
$wgDjvuDump
Path of the djvudump executable Enable this and $wgDjvuRenderer to enable djvu rendering example: $wg...
Definition: DefaultSettings.php:1495
NS_MEDIAWIKI
const NS_MEDIAWIKI
Definition: Defines.php:70
class
you have access to all of the normal MediaWiki so you can get a DB use the etc For full docs on the Maintenance class
Definition: maintenance.txt:52
CONTENT_MODEL_JAVASCRIPT
const CONTENT_MODEL_JAVASCRIPT
Definition: Defines.php:234
$wgDBuser
$wgDBuser
Database username.
Definition: DefaultSettings.php:1765
$wgDBerrorLogTZ
$wgDBerrorLogTZ
Timezone to use in the error log.
Definition: DefaultSettings.php:1994
$wgAllowTitlesInSVG
$wgAllowTitlesInSVG
Disallow <title> element in SVG files.
Definition: DefaultSettings.php:1134
$wgDataCenterUpdateStickTTL
$wgDataCenterUpdateStickTTL
After a state-changing request is done by a client, this determines how many seconds that client shou...
Definition: DefaultSettings.php:1969
$wgAllowSlowParserFunctions
$wgAllowSlowParserFunctions
Enable slow parser functions.
Definition: DefaultSettings.php:2164
$wgUploadMissingFileUrl
$wgUploadMissingFileUrl
Point the upload link for missing files to an external URL, as with $wgUploadNavigationUrl.
Definition: DefaultSettings.php:805
CONTENT_MODEL_TEXT
const CONTENT_MODEL_TEXT
Definition: Defines.php:236
$wgAntivirus
$wgAntivirus
Internal name of virus scanner.
Definition: DefaultSettings.php:1229
NS_FILE_TALK
const NS_FILE_TALK
Definition: Defines.php:69
$wgTrustedMediaFormats
$wgTrustedMediaFormats
list of trusted media-types and MIME types.
Definition: DefaultSettings.php:944
NS_CATEGORY_TALK
const NS_CATEGORY_TALK
Definition: Defines.php:77
$wgPasswordSender
$wgPasswordSender
Sender email address for e-mail notifications.
Definition: DefaultSettings.php:1562
$wgPHPSessionHandling
string $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
Definition: DefaultSettings.php:2416
$wgExtraLanguageCodes
$wgExtraLanguageCodes
List of mappings from one language code to another.
Definition: DefaultSettings.php:2901
$wgUseESI
$wgUseESI
If you run Squid3 with ESI support, enable this (default:false):
Definition: DefaultSettings.php:2638
$wgScriptPath
$wgScriptPath
The path we should point to.
Definition: DefaultSettings.php:141
$wgXMLMimeTypes
$wgXMLMimeTypes
Additional XML types we can allow via MIME-detection.
Definition: DefaultSettings.php:1327
$wgDBadminpassword
$wgDBadminpassword
Separate password for maintenance tasks.
Definition: DefaultSettings.php:1805
$wgDBssl
$wgDBssl
Whether to use SSL in DB connection.
Definition: DefaultSettings.php:1785
$wgUseImageResize
$wgUseImageResize
Whether to enable server-side image thumbnailing.
Definition: DefaultSettings.php:987
$wgForeignFileRepos
$wgForeignFileRepos
Definition: DefaultSettings.php:522
$wgEnotifMaxRecips
$wgEnotifMaxRecips
Maximum number of users to mail at once when using impersonal mail.
Definition: DefaultSettings.php:1727
$wgUploadThumbnailRenderMethod
$wgUploadThumbnailRenderMethod
The method through which the thumbnails will be prerendered for the entries in $wgUploadThumbnailRend...
Definition: DefaultSettings.php:1416
$wgServiceWiringFiles
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by $wgServiceWiringFiles
Definition: injection.txt:35
$wgLocalStylePath
$wgLocalStylePath
The URL path of the skins directory.
Definition: DefaultSettings.php:225
$wgMemCachedPersistent
$wgMemCachedPersistent
Use persistent connections to MemCached, which are shared across multiple requests.
Definition: DefaultSettings.php:2439
$wgShowEXIF
$wgShowEXIF
Show Exif data, on by default if available.
Definition: DefaultSettings.php:669
$wgUserEmailUseReplyTo
$wgUserEmailUseReplyTo
If true put the sending user's email in a Reply-To header instead of From (false).
Definition: DefaultSettings.php:1600
$wgMainStash
$wgMainStash
Main object stash type.
Definition: DefaultSettings.php:2377
$wgStyleDirectory
$wgStyleDirectory
Filesystem stylesheets directory.
Definition: DefaultSettings.php:246
$wgSVGConverter
$wgSVGConverter
Pick a converter defined in $wgSVGConverters.
Definition: DefaultSettings.php:1105
$wgScriptExtension
$wgScriptExtension
The extension to append to script names by default.
Definition: DefaultSettings.php:175
$wgUploadThumbnailRenderHttpCustomDomain
$wgUploadThumbnailRenderHttpCustomDomain
When using the "http" wgUploadThumbnailRenderMethod, lets one specify a custom domain to send the HTT...
Definition: DefaultSettings.php:1431
addresses
storage can be distributed across multiple and multiple web servers can use the same cache cluster *********************W A R N I N G ***********************Memcached has no security or authentication Please ensure that your server is appropriately and that the anyone on the internet can put data into and read data from your cache An attacker familiar with MediaWiki internals could use this to steal passwords and email addresses
Definition: memcached.txt:43
$wgMainWANCache
$wgMainWANCache
Main Wide-Area-Network cache type.
Definition: DefaultSettings.php:2318
$wgGalleryOptions
$wgGalleryOptions
Default parameters for the "<gallery>" tag.
Definition: DefaultSettings.php:1444
$wgCdnReboundPurgeDelay
$wgCdnReboundPurgeDelay
If set, any SquidPurge call on a URL or URLs will send a second purge no less than this many seconds ...
Definition: DefaultSettings.php:2697
$wgEnableAutoRotation
$wgEnableAutoRotation
If set to true, images that contain certain the exif orientation tag will be rotated accordingly.
Definition: DefaultSettings.php:1222
$wgCheckFileExtensions
$wgCheckFileExtensions
This is a flag to determine whether or not to check file extensions on upload.
Definition: DefaultSettings.php:911
CACHE_DB
const CACHE_DB
Definition: Defines.php:101
$wgAllUnicodeFixes
$wgAllUnicodeFixes
Set this to always convert certain Unicode sequences to modern ones regardless of the content languag...
Definition: DefaultSettings.php:2946
$wgInternalServer
$wgInternalServer
Internal server name as known to CDN, if different.
Definition: DefaultSettings.php:2665
$wgSquidMaxage
$wgSquidMaxage
Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
Definition: DefaultSettings.php:2674
$wgUseLocalMessageCache
$wgUseLocalMessageCache
Set this to true to maintain a copy of the message cache on the local server.
Definition: DefaultSettings.php:2457
$wgDummyLanguageCodes
$wgDummyLanguageCodes
Functionally the same as $wgExtraLanguageCodes, but deprecated.
Definition: DefaultSettings.php:2913
array
the array() calling protocol came about after MediaWiki 1.4rc1.
$wgPasswordExpirationDays
$wgPasswordExpirationDays
The number of days that a user's password is good for.
Definition: DefaultSettings.php:1622
$wgObjectCacheSessionExpiry
$wgObjectCacheSessionExpiry
The expiry time to use for session storage, in seconds.
Definition: DefaultSettings.php:2393
$wgCopyUploadTimeout
$wgCopyUploadTimeout
Different timeout for upload by url This could be useful since when fetching large files,...
Definition: DefaultSettings.php:760
$wgUsePathInfo
$wgUsePathInfo
Whether to support URLs like index.php/Page_title These often break when PHP is set up in CGI mode.
Definition: DefaultSettings.php:160
$wgImageMagickTempDir
$wgImageMagickTempDir
Temporary directory used for ImageMagick.
Definition: DefaultSettings.php:1024
$wgSQLMode
$wgSQLMode
SQL Mode - default is turning off all modes, including strict, if set.
Definition: DefaultSettings.php:1840
$wgSharedThumbnailScriptPath
$wgSharedThumbnailScriptPath
Definition: DefaultSettings.php:823
$wgCdnMaxageLagged
$wgCdnMaxageLagged
Cache timeout for the CDN when DB replica DB lag is high.
Definition: DefaultSettings.php:2681
$wgShowArchiveThumbnails
$wgShowArchiveThumbnails
Show thumbnails for old images on the image description page.
Definition: DefaultSettings.php:1215