MediaWiki
REL1_22
|
00001 <?php 00050 if ( !defined( 'MEDIAWIKI' ) ) { 00051 echo "This file is part of MediaWiki and is not a valid entry point\n"; 00052 die( 1 ); 00053 } 00054 00060 $wgConf = new SiteConfiguration; 00061 00066 $wgVersion = '1.22.12'; 00067 00071 $wgSitename = 'MediaWiki'; 00072 00089 $wgServer = WebRequest::detectServer(); 00090 00098 $wgCanonicalServer = false; 00099 00100 /************************************************************************/ 00114 $wgScriptPath = '/wiki'; 00115 00133 $wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) && 00134 ( strpos( PHP_SAPI, 'apache2filter' ) === false ) && 00135 ( strpos( PHP_SAPI, 'isapi' ) === false ); 00136 00145 $wgScriptExtension = '.php'; 00146 00149 /************************************************************************/ 00172 $wgScript = false; 00173 00180 $wgLoadScript = false; 00181 00187 $wgStylePath = false; 00188 $wgStyleSheetPath = &$wgStylePath; 00189 00195 $wgLocalStylePath = false; 00196 00202 $wgExtensionAssetsPath = false; 00203 00209 $wgStyleDirectory = false; 00210 00218 $wgArticlePath = false; 00219 00224 $wgUploadPath = false; 00225 00229 $wgUploadDirectory = false; 00230 00235 $wgFileCacheDirectory = false; 00236 00241 $wgLogo = false; 00242 00247 $wgFavicon = '/favicon.ico'; 00248 00254 $wgAppleTouchIcon = false; 00255 00270 $wgTmpDirectory = false; 00271 00277 $wgUploadBaseUrl = ''; 00278 00286 $wgUploadStashScalerBaseUrl = false; 00287 00302 $wgActionPaths = array(); 00303 00306 /************************************************************************/ 00314 $wgEnableUploads = false; 00315 00319 $wgUploadStashMaxAge = 6 * 3600; // 6 hours 00320 00324 $wgAllowImageMoving = true; 00325 00334 $wgEnableAsyncUploads = false; 00335 00339 $wgIllegalFileChars = ":"; 00340 00344 $wgFileStore = array(); 00345 00350 $wgDeletedDirectory = false; 00351 00355 $wgImgAuthDetails = false; 00356 00362 $wgImgAuthPublicTest = true; 00363 00448 $wgLocalFileRepo = false; 00449 00453 $wgForeignFileRepos = array(); 00454 00460 $wgUseInstantCommons = false; 00461 00493 $wgFileBackends = array(); 00494 00505 $wgLockManagers = array(); 00506 00519 $wgShowEXIF = function_exists( 'exif_read_data' ); 00520 00526 $wgUpdateCompatibleMetadata = false; 00527 00541 $wgUseSharedUploads = false; 00542 00546 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images"; 00547 00551 $wgFetchCommonsDescriptions = false; 00552 00556 $wgSharedUploadDirectory = "/var/www/wiki3/images"; 00557 00562 $wgSharedUploadDBname = false; 00563 00567 $wgSharedUploadDBprefix = ''; 00568 00573 $wgCacheSharedUploads = true; 00574 00580 $wgAllowCopyUploads = false; 00581 00586 $wgAllowAsyncCopyUploads = false; 00587 00593 $wgCopyUploadsDomains = array(); 00594 00600 $wgCopyUploadsFromSpecialUpload = false; 00601 00606 $wgCopyUploadProxy = false; 00607 00616 $wgCopyUploadTimeout = false; 00617 00627 $wgCopyUploadAsyncTimeout = false; 00628 00645 $wgMaxUploadSize = 1024 * 1024 * 100; # 100MB 00646 00657 $wgUploadNavigationUrl = false; 00658 00664 $wgUploadMissingFileUrl = false; 00665 00677 $wgThumbnailScriptPath = false; 00678 00682 $wgSharedThumbnailScriptPath = false; 00683 00697 $wgHashedUploadDirectory = true; 00698 00704 $wgHashedSharedUploadDirectory = true; 00705 00714 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:"; 00715 00724 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' ); 00725 00731 $wgFileBlacklist = array( 00732 # HTML may contain cookie-stealing JavaScript and web bugs 00733 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht', 00734 # PHP scripts may execute arbitrary code on the server 00735 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 00736 # Other types that may be interpreted by some servers 00737 'shtml', 'jhtml', 'pl', 'py', 'cgi', 00738 # May contain harmful executables for Windows victims 00739 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ); 00740 00745 $wgMimeTypeBlacklist = array( 00746 # HTML may contain cookie-stealing JavaScript and web bugs 00747 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript', 00748 # PHP scripts may execute arbitrary code on the server 00749 'application/x-php', 'text/x-php', 00750 # Other types that may be interpreted by some servers 00751 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh', 00752 # Client-side hazards on Internet Explorer 00753 'text/scriptlet', 'application/x-msdownload', 00754 # Windows metafile, client-side vulnerability on some systems 00755 'application/x-msmetafile', 00756 ); 00757 00763 $wgAllowJavaUploads = false; 00764 00770 $wgCheckFileExtensions = true; 00771 00778 $wgStrictFileExtensions = true; 00779 00786 $wgDisableUploadScriptChecks = false; 00787 00791 $wgUploadSizeWarning = false; 00792 00803 $wgTrustedMediaFormats = array( 00804 MEDIATYPE_BITMAP, //all bitmap formats 00805 MEDIATYPE_AUDIO, //all audio formats 00806 MEDIATYPE_VIDEO, //all plain video formats 00807 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported) 00808 "application/pdf", //PDF files 00809 #"application/x-shockwave-flash", //flash/shockwave movie 00810 ); 00811 00816 $wgMediaHandlers = array( 00817 'image/jpeg' => 'JpegHandler', 00818 'image/png' => 'PNGHandler', 00819 'image/gif' => 'GIFHandler', 00820 'image/tiff' => 'TiffHandler', 00821 'image/x-ms-bmp' => 'BmpHandler', 00822 'image/x-bmp' => 'BmpHandler', 00823 'image/x-xcf' => 'XCFHandler', 00824 'image/svg+xml' => 'SvgHandler', // official 00825 'image/svg' => 'SvgHandler', // compat 00826 'image/vnd.djvu' => 'DjVuHandler', // official 00827 'image/x.djvu' => 'DjVuHandler', // compat 00828 'image/x-djvu' => 'DjVuHandler', // compat 00829 ); 00830 00837 $wgContentHandlers = array( 00838 // the usual case 00839 CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler', 00840 // dumb version, no syntax highlighting 00841 CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler', 00842 // dumb version, no syntax highlighting 00843 CONTENT_MODEL_CSS => 'CssContentHandler', 00844 // plain text, for use by extensions etc 00845 CONTENT_MODEL_TEXT => 'TextContentHandler', 00846 ); 00847 00856 $wgUseImageMagick = false; 00857 00861 $wgImageMagickConvertCommand = '/usr/bin/convert'; 00862 00866 $wgImageMagickIdentifyCommand = '/usr/bin/identify'; 00867 00871 $wgSharpenParameter = '0x0.4'; 00872 00876 $wgSharpenReductionThreshold = 0.85; 00877 00882 $wgImageMagickTempDir = false; 00883 00896 $wgCustomConvertCommand = false; 00897 00903 $wgJpegTran = '/usr/bin/jpegtran'; 00904 00909 $wgExiv2Command = '/usr/bin/exiv2'; 00910 00920 $wgSVGConverters = array( 00921 'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output', 00922 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output', 00923 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output', 00924 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input', 00925 'rsvg' => '$path/rsvg -w $width -h $height $input $output', 00926 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output', 00927 'ImagickExt' => array( 'SvgHandler::rasterizeImagickExt' ), 00928 ); 00929 00933 $wgSVGConverter = 'ImageMagick'; 00934 00938 $wgSVGConverterPath = ''; 00939 00943 $wgSVGMaxSize = 2048; 00944 00949 $wgSVGMetadataCutoff = 262144; 00950 00962 $wgAllowTitlesInSVG = false; 00963 00977 $wgMaxImageArea = 1.25e7; 00978 00985 $wgMaxAnimatedGifArea = 1.25e7; 00986 01000 $wgTiffThumbnailType = false; 01001 01008 $wgThumbnailEpoch = '20030516000000'; 01009 01021 $wgIgnoreImageErrors = false; 01022 01030 $wgGenerateThumbnailOnParse = true; 01031 01035 $wgShowArchiveThumbnails = true; 01036 01040 $wgUseImageResize = true; 01041 01047 $wgEnableAutoRotation = null; 01048 01054 $wgAntivirus = null; 01055 01090 $wgAntivirusSetup = array( 01091 01092 #setup for clamav 01093 'clamav' => array( 01094 'command' => 'clamscan --no-summary ', 01095 'codemap' => array( 01096 "0" => AV_NO_VIRUS, # no virus 01097 "1" => AV_VIRUS_FOUND, # virus found 01098 "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune) 01099 "*" => AV_SCAN_FAILED, # else scan failed 01100 ), 01101 'messagepattern' => '/.*?:(.*)/sim', 01102 ), 01103 ); 01104 01108 $wgAntivirusRequired = true; 01109 01113 $wgVerifyMimeType = true; 01114 01120 $wgMimeTypeFile = 'includes/mime.types'; 01121 01126 $wgMimeInfoFile = 'includes/mime.info'; 01127 01139 $wgMimeDetectorCommand = null; 01140 01146 $wgTrivialMimeDetection = false; 01147 01152 $wgXMLMimeTypes = array( 01153 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml', 01154 'svg' => 'image/svg+xml', 01155 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram', 01156 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml? 01157 'html' => 'text/html', // application/xhtml+xml? 01158 ); 01159 01168 $wgImageLimits = array( 01169 array( 320, 240 ), 01170 array( 640, 480 ), 01171 array( 800, 600 ), 01172 array( 1024, 768 ), 01173 array( 1280, 1024 ) 01174 ); 01175 01181 $wgThumbLimits = array( 01182 120, 01183 150, 01184 180, 01185 200, 01186 250, 01187 300 01188 ); 01189 01193 $wgGalleryOptions = array( 01194 'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize 01195 'imageWidth' => 120, // Width of the cells containing images in galleries (in "px") 01196 'imageHeight' => 120, // Height of the cells containing images in galleries (in "px") 01197 'captionLength' => 25, // Length of caption to truncate (in characters) 01198 'showBytes' => true, // Show the filesize in bytes in categories 01199 'mode' => 'traditional', 01200 ); 01201 01207 $wgThumbUpright = 0.75; 01208 01212 $wgDirectoryMode = 0777; 01213 01222 $wgResponsiveImages = true; 01223 01234 $wgDjvuDump = null; 01235 01241 $wgDjvuRenderer = null; 01242 01248 $wgDjvuTxt = null; 01249 01264 $wgDjvuToXML = null; 01265 01271 $wgDjvuPostProcessor = 'pnmtojpeg'; 01272 01276 $wgDjvuOutputExtension = 'jpg'; 01277 # end of DJvu } 01279 # end of file uploads } 01281 01282 /************************************************************************/ 01287 $serverName = substr( $wgServer, strrpos( $wgServer, '/' ) + 1 ); 01288 01292 $wgEmergencyContact = 'wikiadmin@' . $serverName; 01293 01299 $wgPasswordSender = 'apache@' . $serverName; 01300 01301 unset( $serverName ); # Don't leak local variables to global scope 01302 01306 $wgPasswordSenderName = 'MediaWiki Mail'; 01307 01313 $wgNoReplyAddress = '[email protected]'; 01314 01320 $wgEnableEmail = true; 01321 01326 $wgEnableUserEmail = true; 01327 01336 $wgUserEmailUseReplyTo = false; 01337 01342 $wgPasswordReminderResendTime = 24; 01343 01347 $wgNewPasswordExpiry = 3600 * 24 * 7; 01348 01352 $wgUserEmailConfirmationTokenExpiry = 7 * 24 * 60 * 60; 01353 01371 $wgSMTP = false; 01372 01377 $wgAdditionalMailParams = null; 01378 01383 $wgAllowHTMLEmail = false; 01384 01389 $wgEnotifFromEditor = false; 01390 01391 // TODO move UPO to preferences probably ? 01392 # If set to true, users get a corresponding option in their preferences and can choose to 01393 # enable or disable at their discretion 01394 # If set to false, the corresponding input form on the user preference page is suppressed 01395 # It call this to be a "user-preferences-option (UPO)" 01396 01402 $wgEmailAuthentication = true; 01403 01407 $wgEnotifWatchlist = false; 01408 01413 $wgEnotifUserTalk = false; 01414 01419 $wgEnotifRevealEditorAddress = false; 01420 01425 $wgEnotifMinorEdits = true; 01426 01434 $wgEnotifImpersonal = false; 01435 01440 $wgEnotifMaxRecips = 500; 01441 01446 $wgEnotifUseJobQ = false; 01447 01451 $wgEnotifUseRealName = false; 01452 01457 $wgUsersNotifiedOnAllChanges = array(); 01458 # end of email settings 01460 01461 /************************************************************************//** 01462 * @name Database settings 01463 * @{ 01464 */ 01465 01469 $wgDBserver = 'localhost'; 01470 01474 $wgDBport = 5432; 01475 01479 $wgDBname = 'my_wiki'; 01480 01484 $wgDBuser = 'wikiuser'; 01485 01489 $wgDBpassword = ''; 01490 01494 $wgDBtype = 'mysql'; 01495 01499 $wgDBssl = false; 01500 01504 $wgDBcompress = false; 01505 01509 $wgDBadminuser = null; 01510 01514 $wgDBadminpassword = null; 01515 01522 $wgSearchType = null; 01523 01531 $wgSearchTypeAlternatives = null; 01532 01536 $wgDBprefix = ''; 01537 01541 $wgDBTableOptions = 'ENGINE=InnoDB'; 01542 01549 $wgSQLMode = ''; 01550 01554 $wgDBmwschema = 'mediawiki'; 01555 01559 $wgSQLiteDataDir = ''; 01560 01566 $wgAllDBsAreLocalhost = false; 01567 01590 $wgSharedDB = null; 01591 01595 $wgSharedPrefix = false; 01596 01600 $wgSharedTables = array( 'user', 'user_properties' ); 01601 01648 $wgDBservers = false; 01649 01660 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' ); 01661 01665 $wgMasterWaitTimeout = 10; 01666 01670 $wgDBerrorLog = false; 01671 01690 $wgDBerrorLogTZ = false; 01691 01695 $wgDBClusterTimeout = 10; 01696 01702 $wgDBAvgStatusPoll = 2000; 01703 01720 $wgDBmysql5 = false; 01721 01749 $wgDBOracleDRCP = false; 01750 01756 $wgLocalDatabases = array(); 01757 01763 $wgSlaveLagWarning = 10; 01764 01768 $wgSlaveLagCritical = 30; 01769 # End of DB settings } 01771 01772 /************************************************************************//** 01773 * @name Text storage 01774 * @{ 01775 */ 01776 01783 $wgCompressRevisions = false; 01784 01796 $wgExternalStores = false; 01797 01812 $wgExternalServers = array(); 01813 01828 $wgDefaultExternalStore = false; 01829 01836 $wgRevisionCacheExpiry = 0; 01837 # end text storage } 01839 01840 /************************************************************************//** 01841 * @name Performance hacks and limits 01842 * @{ 01843 */ 01844 01848 $wgMiserMode = false; 01849 01853 $wgDisableQueryPages = false; 01854 01858 $wgQueryCacheLimit = 1000; 01859 01863 $wgWantedPagesThreshold = 1; 01864 01868 $wgAllowSlowParserFunctions = false; 01869 01873 $wgAllowSchemaUpdates = true; 01874 01882 $wgAntiLockFlags = 0; 01883 01887 $wgMaxArticleSize = 2048; 01888 01893 $wgMemoryLimit = "50M"; 01894 # end performance hacks } 01896 01897 /************************************************************************//** 01898 * @name Cache settings 01899 * @{ 01900 */ 01901 01910 $wgCacheDirectory = false; 01911 01932 $wgMainCacheType = CACHE_NONE; 01933 01940 $wgMessageCacheType = CACHE_ANYTHING; 01941 01948 $wgParserCacheType = CACHE_ANYTHING; 01949 01955 $wgSessionCacheType = CACHE_ANYTHING; 01956 01965 $wgLanguageConverterCacheType = CACHE_ANYTHING; 01966 01984 $wgObjectCaches = array( 01985 CACHE_NONE => array( 'class' => 'EmptyBagOStuff' ), 01986 CACHE_DB => array( 'class' => 'SqlBagOStuff', 'table' => 'objectcache' ), 01987 CACHE_DBA => array( 'class' => 'DBABagOStuff' ), 01988 01989 CACHE_ANYTHING => array( 'factory' => 'ObjectCache::newAnything' ), 01990 CACHE_ACCEL => array( 'factory' => 'ObjectCache::newAccelerator' ), 01991 CACHE_MEMCACHED => array( 'factory' => 'ObjectCache::newMemcached' ), 01992 01993 'apc' => array( 'class' => 'APCBagOStuff' ), 01994 'xcache' => array( 'class' => 'XCacheBagOStuff' ), 01995 'wincache' => array( 'class' => 'WinCacheBagOStuff' ), 01996 'memcached-php' => array( 'class' => 'MemcachedPhpBagOStuff' ), 01997 'memcached-pecl' => array( 'class' => 'MemcachedPeclBagOStuff' ), 01998 'hash' => array( 'class' => 'HashBagOStuff' ), 01999 ); 02000 02005 $wgParserCacheExpireTime = 86400; 02006 02011 $wgDBAhandler = 'db3'; 02012 02018 $wgSessionsInMemcached = false; 02019 02026 $wgSessionsInObjectCache = false; 02027 02032 $wgObjectCacheSessionExpiry = 3600; 02033 02040 $wgSessionHandler = null; 02041 02045 $wgMemCachedDebug = false; 02046 02050 $wgMemCachedServers = array( '127.0.0.1:11211' ); 02051 02056 $wgMemCachedPersistent = false; 02057 02061 $wgMemCachedTimeout = 500000; 02062 02067 $wgUseLocalMessageCache = false; 02068 02075 $wgAdaptiveMessageCache = false; 02076 02097 $wgLocalisationCacheConf = array( 02098 'class' => 'LocalisationCache', 02099 'store' => 'detect', 02100 'storeClass' => false, 02101 'storeDirectory' => false, 02102 'manualRecache' => false, 02103 ); 02104 02108 $wgCachePages = true; 02109 02118 $wgCacheEpoch = '20030516000000'; 02119 02127 $wgStyleVersion = '303'; 02128 02136 $wgUseFileCache = false; 02137 02144 $wgFileCacheDepth = 2; 02145 02155 $wgEnableParserCache = true; 02156 02161 $wgRenderHashAppend = ''; 02162 02172 $wgEnableSidebarCache = false; 02173 02177 $wgSidebarCacheExpiry = 86400; 02178 02185 $wgUseGzip = false; 02186 02191 $wgUseETag = false; 02192 02199 $wgClockSkewFudge = 5; 02200 02210 $wgInvalidateCacheOnLocalSettingsChange = true; 02211 # end of cache settings 02213 02214 /************************************************************************//** 02215 * @name HTTP proxy (Squid) settings 02216 * 02217 * Many of these settings apply to any HTTP proxy used in front of MediaWiki, 02218 * although they are referred to as Squid settings for historical reasons. 02219 * 02220 * Achieving a high hit ratio with an HTTP proxy requires special 02221 * configuration. See http://www.mediawiki.org/wiki/Manual:Squid_caching for 02222 * more details. 02223 * 02224 * @{ 02225 */ 02226 02231 $wgUseSquid = false; 02232 02236 $wgUseESI = false; 02237 02241 $wgUseXVO = false; 02242 02251 $wgVaryOnXFP = false; 02252 02261 $wgInternalServer = false; 02262 02269 $wgSquidMaxage = 18000; 02270 02274 $wgForcedRawSMaxage = 300; 02275 02284 $wgSquidServers = array(); 02285 02290 $wgSquidServersNoPurge = array(); 02291 02295 $wgMaxSquidPurgeTitles = 400; 02296 02316 $wgSquidPurgeUseHostHeader = true; 02317 02369 $wgHTCPRouting = array(); 02370 02380 $wgHTCPMulticastRouting = null; 02381 02396 $wgHTCPMulticastAddress = false; 02397 02405 $wgHTCPPort = 4827; 02406 02411 $wgHTCPMulticastTTL = 1; 02412 02416 $wgUsePrivateIPs = false; 02417 # end of HTTP proxy settings 02419 02420 /************************************************************************//** 02421 * @name Language, regional and character encoding settings 02422 * @{ 02423 */ 02424 02440 $wgLanguageCode = 'en'; 02441 02446 $wgLangObjCacheSize = 10; 02447 02457 $wgGrammarForms = array(); 02458 02462 $wgInterwikiMagic = true; 02463 02467 $wgHideInterlanguageLinks = false; 02468 02472 $wgExtraLanguageNames = array(); 02473 02480 $wgDummyLanguageCodes = array( 02481 'als' => 'gsw', 02482 'bat-smg' => 'sgs', 02483 'be-x-old' => 'be-tarask', 02484 'bh' => 'bho', 02485 'fiu-vro' => 'vro', 02486 'no' => 'nb', 02487 'qqq' => 'qqq', # Used for message documentation. 02488 'qqx' => 'qqx', # Used for viewing message keys. 02489 'roa-rup' => 'rup', 02490 'simple' => 'en', 02491 'zh-classical' => 'lzh', 02492 'zh-min-nan' => 'nan', 02493 'zh-yue' => 'yue', 02494 ); 02495 02503 $wgEditEncoding = ''; 02504 02513 $wgFixArabicUnicode = true; 02514 02524 $wgFixMalayalamUnicode = true; 02525 02536 $wgAllUnicodeFixes = false; 02537 02548 $wgLegacyEncoding = false; 02549 02555 $wgBrowserBlackList = array( 02566 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02567 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02568 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02569 02583 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/', 02584 02589 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/' 02590 ); 02591 02604 $wgLegacySchemaConversion = false; 02605 02610 $wgAmericanDates = false; 02611 02616 $wgTranslateNumerals = true; 02617 02622 $wgUseDatabaseMessages = true; 02623 02627 $wgMsgCacheExpiry = 86400; 02628 02632 $wgMaxMsgCacheEntrySize = 10000; 02633 02637 $wgDisableLangConversion = false; 02638 02642 $wgDisableTitleConversion = false; 02643 02647 $wgCanonicalLanguageLinks = true; 02648 02652 $wgDefaultLanguageVariant = false; 02653 02663 $wgDisabledVariants = array(); 02664 02682 $wgVariantArticlePath = false; 02683 02689 $wgLoginLanguageSelector = false; 02690 02710 $wgForceUIMsgAsContentMsg = array(); 02711 02735 $wgLocaltimezone = null; 02736 02746 $wgLocalTZoffset = null; 02747 # End of language/charset settings 02749 02750 /*************************************************************************//** 02751 * @name Output format and skin settings 02752 * @{ 02753 */ 02754 02758 $wgMimeType = 'text/html'; 02759 02767 $wgJsMimeType = null; 02768 02776 $wgXhtmlDefaultNamespace = null; 02777 02785 $wgHtml5 = true; 02786 02794 $wgHtml5Version = null; 02795 02800 $wgAllowRdfaAttributes = false; 02801 02805 $wgAllowMicrodataAttributes = false; 02806 02823 $wgWellFormedXml = true; 02824 02839 $wgXhtmlNamespaces = array(); 02840 02846 $wgShowIPinHeader = true; 02847 02855 $wgSiteNotice = ''; 02856 02860 $wgExtraSubtitle = ''; 02861 02865 $wgSiteSupportPage = ''; 02866 02871 $wgValidateAllHtml = false; 02872 02879 $wgDefaultSkin = 'vector'; 02880 02886 $wgSkipSkin = ''; 02887 02891 $wgSkipSkins = array(); 02892 02898 $wgAllowUserJs = false; 02899 02905 $wgAllowUserCss = false; 02906 02912 $wgAllowUserCssPrefs = true; 02913 02917 $wgUseSiteJs = true; 02918 02922 $wgUseSiteCss = true; 02923 02928 $wgBreakFrames = false; 02929 02949 $wgEditPageFrameOptions = 'DENY'; 02950 02960 $wgApiFrameOptions = 'DENY'; 02961 02965 $wgDisableOutputCompression = false; 02966 02976 $wgExperimentalHtmlIds = false; 02977 03007 $wgFooterIcons = array( 03008 "copyright" => array( 03009 "copyright" => array(), // placeholder for the built in copyright icon 03010 ), 03011 "poweredby" => array( 03012 "mediawiki" => array( 03013 "src" => null, // Defaults to "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" 03014 "url" => "//www.mediawiki.org/", 03015 "alt" => "Powered by MediaWiki", 03016 ) 03017 ), 03018 ); 03019 03026 $wgUseCombinedLoginLink = false; 03027 03033 $wgVectorUseSimpleSearch = true; 03034 03040 $wgVectorUseIconWatch = true; 03041 03045 $wgEdititis = false; 03046 03053 $wgBetterDirectionality = true; 03054 03066 $wgSend404Code = true; 03067 03076 $wgShowRollbackEditCount = 10; 03077 03084 $wgEnableCanonicalServerLink = false; 03085 # End of output format settings } 03087 03088 /*************************************************************************//** 03089 * @name Resource loader settings 03090 * @{ 03091 */ 03092 03110 $wgResourceModules = array(); 03111 03125 $wgResourceLoaderSources = array(); 03126 03131 $wgResourceBasePath = null; 03132 03138 $wgResourceLoaderMaxage = array( 03139 'versioned' => array( 03140 // Squid/Varnish but also any other public proxy cache between the client and MediaWiki 03141 'server' => 30 * 24 * 60 * 60, // 30 days 03142 // On the client side (e.g. in the browser cache). 03143 'client' => 30 * 24 * 60 * 60, // 30 days 03144 ), 03145 'unversioned' => array( 03146 'server' => 5 * 60, // 5 minutes 03147 'client' => 5 * 60, // 5 minutes 03148 ), 03149 ); 03150 03156 $wgResourceLoaderDebug = false; 03157 03163 $wgResourceLoaderUseESI = false; 03164 03169 $wgResourceLoaderMinifierStatementsOnOwnLine = false; 03170 03176 $wgResourceLoaderMinifierMaxLineLength = 1000; 03177 03182 $wgIncludeLegacyJavaScript = true; 03183 03202 $wgPreloadJavaScriptMwUtil = false; 03203 03229 $wgLegacyJavaScriptGlobals = true; 03230 03244 $wgResourceLoaderMaxQueryLength = false; 03245 03253 $wgResourceLoaderValidateJS = true; 03254 03263 $wgResourceLoaderValidateStaticJS = false; 03264 03270 $wgResourceLoaderExperimentalAsyncLoading = false; 03271 03290 $wgResourceLoaderLESSVars = array(); 03291 03303 $wgResourceLoaderLESSFunctions = array( 03304 'embeddable' => 'ResourceLoaderLESSFunctions::embeddable', 03305 'embed' => 'ResourceLoaderLESSFunctions::embed', 03306 ); 03307 03321 $wgResourceLoaderLESSImportPaths = array( 03322 "$IP/resources/mediawiki.less/", 03323 ); 03324 # End of resource loader settings } 03326 03327 /*************************************************************************//** 03328 * @name Page title and interwiki link settings 03329 * @{ 03330 */ 03331 03336 $wgMetaNamespace = false; 03337 03345 $wgMetaNamespaceTalk = false; 03346 03373 $wgExtraNamespaces = array(); 03374 03381 $wgExtraGenderNamespaces = array(); 03382 03401 $wgNamespaceAliases = array(); 03402 03430 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+"; 03431 03435 $wgLocalInterwiki = false; 03436 03440 $wgInterwikiExpiry = 10800; 03441 03460 $wgInterwikiCache = false; 03461 03468 $wgInterwikiScopes = 3; 03469 03473 $wgInterwikiFallbackSite = 'wiki'; 03474 # end of Interwiki caching settings. 03476 03492 $wgRedirectSources = false; 03493 03501 $wgCapitalLinks = true; 03502 03517 $wgCapitalLinkOverrides = array(); 03518 03523 $wgNamespacesWithSubpages = array( 03524 NS_TALK => true, 03525 NS_USER => true, 03526 NS_USER_TALK => true, 03527 NS_PROJECT => true, 03528 NS_PROJECT_TALK => true, 03529 NS_FILE_TALK => true, 03530 NS_MEDIAWIKI => true, 03531 NS_MEDIAWIKI_TALK => true, 03532 NS_TEMPLATE_TALK => true, 03533 NS_HELP => true, 03534 NS_HELP_TALK => true, 03535 NS_CATEGORY_TALK => true 03536 ); 03537 03544 $wgContentNamespaces = array( NS_MAIN ); 03545 03551 $wgMaxRedirects = 1; 03552 03563 $wgInvalidRedirectTargets = array( 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ); 03564 # End of title and interwiki settings } 03566 03567 /************************************************************************//** 03568 * @name Parser settings 03569 * These settings configure the transformation from wikitext to HTML. 03570 * @{ 03571 */ 03572 03594 $wgParserConf = array( 03595 'class' => 'Parser', 03596 #'preprocessorClass' => 'Preprocessor_Hash', 03597 ); 03598 03602 $wgMaxTocLevel = 999; 03603 03608 $wgMaxPPNodeCount = 1000000; 03609 03619 $wgMaxGeneratedPPNodeCount = 1000000; 03620 03627 $wgMaxTemplateDepth = 40; 03628 03632 $wgMaxPPExpandDepth = 40; 03633 03637 $wgUrlProtocols = array( 03638 'http://', 03639 'https://', 03640 'ftp://', 03641 'ftps://', // If we allow ftp:// we should allow the secure version. 03642 'ssh://', 03643 'sftp://', // SFTP > FTP 03644 'irc://', 03645 'ircs://', // @bug 28503 03646 'xmpp:', // Another open communication protocol 03647 'sip:', 03648 'sips:', 03649 'gopher://', 03650 'telnet://', // Well if we're going to support the above.. -ævar 03651 'nntp://', // @bug 3808 RFC 1738 03652 'worldwind://', 03653 'mailto:', 03654 'tel:', // If we can make emails linkable, why not phone numbers? 03655 'sms:', // Likewise this is standardized too 03656 'news:', 03657 'svn://', 03658 'git://', 03659 'mms://', 03660 'bitcoin:', // Even registerProtocolHandler whitelists this along with mailto: 03661 'magnet:', // No reason to reject torrents over magnet: when they're allowed over http:// 03662 'urn:', // Allow URNs to be used in Microdata/RDFa <link ... href="urn:...">s 03663 'geo:', // urls define geo locations, they're useful in Microdata/RDFa and for coordinates 03664 '//', // for protocol-relative URLs 03665 ); 03666 03670 $wgCleanSignatures = true; 03671 03675 $wgAllowExternalImages = false; 03676 03689 $wgAllowExternalImagesFrom = ''; 03690 03700 $wgEnableImageWhitelist = true; 03701 03710 $wgAllowImageTag = false; 03711 03727 $wgUseTidy = false; 03728 03732 $wgAlwaysUseTidy = false; 03733 03737 $wgTidyBin = 'tidy'; 03738 03742 $wgTidyConf = $IP . '/includes/tidy.conf'; 03743 03747 $wgTidyOpts = ''; 03748 03752 $wgTidyInternal = extension_loaded( 'tidy' ); 03753 03758 $wgDebugTidy = false; 03759 03765 $wgRawHtml = false; 03766 03770 $wgExternalLinkTarget = false; 03771 03778 $wgNoFollowLinks = true; 03779 03784 $wgNoFollowNsExceptions = array(); 03785 03797 $wgNoFollowDomainExceptions = array(); 03798 03802 $wgAllowDisplayTitle = true; 03803 03809 $wgRestrictDisplayTitle = true; 03810 03815 $wgExpensiveParserFunctionLimit = 100; 03816 03821 $wgPreprocessorCacheThreshold = 1000; 03822 03826 $wgEnableScaryTranscluding = false; 03827 03832 $wgTranscludeCacheExpiry = 3600; 03833 # end of parser settings } 03835 03836 /************************************************************************//** 03837 * @name Statistics 03838 * @{ 03839 */ 03840 03861 $wgArticleCountMethod = null; 03862 03867 $wgUseCommaCount = false; 03868 03876 $wgHitcounterUpdateFreq = 1; 03877 03885 $wgActiveUserDays = 30; 03886 # End of statistics } 03888 03889 /************************************************************************//** 03890 * @name User accounts, authentication 03891 * @{ 03892 */ 03893 03897 $wgPasswordSalt = true; 03898 03903 $wgMinimalPasswordLength = 1; 03904 03911 $wgPasswordResetRoutes = array( 03912 'username' => true, 03913 'email' => false, 03914 ); 03915 03919 $wgMaxSigChars = 255; 03920 03925 $wgMaxNameChars = 255; 03926 03931 $wgReservedUsernames = array( 03932 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages 03933 'Conversion script', // Used for the old Wikipedia software upgrade 03934 'Maintenance script', // Maintenance scripts which perform editing, image import script 03935 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade 03936 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php 03937 'msg:double-redirect-fixer', // Automatic double redirect fix 03938 'msg:usermessage-editor', // Default user for leaving user messages 03939 'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22) 03940 ); 03941 03948 $wgDefaultUserOptions = array( 03949 'ccmeonemails' => 0, 03950 'cols' => 80, 03951 'date' => 'default', 03952 'diffonly' => 0, 03953 'disablemail' => 0, 03954 'disablesuggest' => 0, 03955 'editfont' => 'default', 03956 'editondblclick' => 0, 03957 'editsection' => 1, 03958 'editsectiononrightclick' => 0, 03959 'enotifminoredits' => 0, 03960 'enotifrevealaddr' => 0, 03961 'enotifusertalkpages' => 1, 03962 'enotifwatchlistpages' => 0, 03963 'extendwatchlist' => 0, 03964 'fancysig' => 0, 03965 'forceeditsummary' => 0, 03966 'gender' => 'unknown', 03967 'hideminor' => 0, 03968 'hidepatrolled' => 0, 03969 'imagesize' => 2, 03970 'justify' => 0, 03971 'math' => 1, 03972 'minordefault' => 0, 03973 'newpageshidepatrolled' => 0, 03974 'nocache' => 0, 03975 'noconvertlink' => 0, 03976 'norollbackdiff' => 0, 03977 'numberheadings' => 0, 03978 'previewonfirst' => 0, 03979 'previewontop' => 1, 03980 'rcdays' => 7, 03981 'rclimit' => 50, 03982 'rememberpassword' => 0, 03983 'rows' => 25, 03984 'searchlimit' => 20, 03985 'showhiddencats' => 0, 03986 'shownumberswatching' => 1, 03987 'showtoc' => 1, 03988 'showtoolbar' => 1, 03989 'skin' => false, 03990 'stubthreshold' => 0, 03991 'thumbsize' => 2, 03992 'underline' => 2, 03993 'uselivepreview' => 0, 03994 'usenewrc' => 0, 03995 'vector-simplesearch' => 1, 03996 'watchcreations' => 0, 03997 'watchdefault' => 0, 03998 'watchdeletion' => 0, 03999 'watchlistdays' => 3.0, 04000 'watchlisthideanons' => 0, 04001 'watchlisthidebots' => 0, 04002 'watchlisthideliu' => 0, 04003 'watchlisthideminor' => 0, 04004 'watchlisthideown' => 0, 04005 'watchlisthidepatrolled' => 0, 04006 'watchmoves' => 0, 04007 'wllimit' => 250, 04008 'useeditwarning' => 1, 04009 'prefershttps' => 1, 04010 ); 04011 04015 $wgHiddenPrefs = array(); 04016 04022 $wgInvalidUsernameCharacters = '@'; 04023 04033 $wgUserrightsInterwikiDelimiter = '@'; 04034 04041 $wgSecureLogin = false; 04042 # end user accounts } 04044 04045 /************************************************************************//** 04046 * @name User rights, access control and monitoring 04047 * @{ 04048 */ 04049 04053 $wgAutoblockExpiry = 86400; 04054 04058 $wgBlockAllowsUTEdit = false; 04059 04063 $wgSysopEmailBans = true; 04064 04079 $wgBlockCIDRLimit = array( 04080 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed 04081 'IPv6' => 19, 04082 ); 04083 04091 $wgBlockDisablesLogin = false; 04092 04110 $wgWhitelistRead = false; 04111 04138 $wgWhitelistReadRegexp = false; 04139 04144 $wgEmailConfirmToEdit = false; 04145 04170 $wgGroupPermissions = array(); 04171 04173 // Implicit group for all visitors 04174 $wgGroupPermissions['*']['createaccount'] = true; 04175 $wgGroupPermissions['*']['read'] = true; 04176 $wgGroupPermissions['*']['edit'] = true; 04177 $wgGroupPermissions['*']['createpage'] = true; 04178 $wgGroupPermissions['*']['createtalk'] = true; 04179 $wgGroupPermissions['*']['writeapi'] = true; 04180 $wgGroupPermissions['*']['editmyusercss'] = true; 04181 $wgGroupPermissions['*']['editmyuserjs'] = true; 04182 $wgGroupPermissions['*']['viewmywatchlist'] = true; 04183 $wgGroupPermissions['*']['editmywatchlist'] = true; 04184 $wgGroupPermissions['*']['viewmyprivateinfo'] = true; 04185 $wgGroupPermissions['*']['editmyprivateinfo'] = true; 04186 $wgGroupPermissions['*']['editmyoptions'] = true; 04187 #$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled 04188 04189 // Implicit group for all logged-in accounts 04190 $wgGroupPermissions['user']['move'] = true; 04191 $wgGroupPermissions['user']['move-subpages'] = true; 04192 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages 04193 $wgGroupPermissions['user']['movefile'] = true; 04194 $wgGroupPermissions['user']['read'] = true; 04195 $wgGroupPermissions['user']['edit'] = true; 04196 $wgGroupPermissions['user']['createpage'] = true; 04197 $wgGroupPermissions['user']['createtalk'] = true; 04198 $wgGroupPermissions['user']['writeapi'] = true; 04199 $wgGroupPermissions['user']['upload'] = true; 04200 $wgGroupPermissions['user']['reupload'] = true; 04201 $wgGroupPermissions['user']['reupload-shared'] = true; 04202 $wgGroupPermissions['user']['minoredit'] = true; 04203 $wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok" 04204 $wgGroupPermissions['user']['sendemail'] = true; 04205 04206 // Implicit group for accounts that pass $wgAutoConfirmAge 04207 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true; 04208 $wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true; 04209 04210 // Users with bot privilege can have their edits hidden 04211 // from various log pages by default 04212 $wgGroupPermissions['bot']['bot'] = true; 04213 $wgGroupPermissions['bot']['autoconfirmed'] = true; 04214 $wgGroupPermissions['bot']['editsemiprotected'] = true; 04215 $wgGroupPermissions['bot']['nominornewtalk'] = true; 04216 $wgGroupPermissions['bot']['autopatrol'] = true; 04217 $wgGroupPermissions['bot']['suppressredirect'] = true; 04218 $wgGroupPermissions['bot']['apihighlimits'] = true; 04219 $wgGroupPermissions['bot']['writeapi'] = true; 04220 04221 // Most extra permission abilities go to this group 04222 $wgGroupPermissions['sysop']['block'] = true; 04223 $wgGroupPermissions['sysop']['createaccount'] = true; 04224 $wgGroupPermissions['sysop']['delete'] = true; 04225 // can be separately configured for pages with > $wgDeleteRevisionsLimit revs 04226 $wgGroupPermissions['sysop']['bigdelete'] = true; 04227 // can view deleted history entries, but not see or restore the text 04228 $wgGroupPermissions['sysop']['deletedhistory'] = true; 04229 // can view deleted revision text 04230 $wgGroupPermissions['sysop']['deletedtext'] = true; 04231 $wgGroupPermissions['sysop']['undelete'] = true; 04232 $wgGroupPermissions['sysop']['editinterface'] = true; 04233 $wgGroupPermissions['sysop']['editusercss'] = true; 04234 $wgGroupPermissions['sysop']['edituserjs'] = true; 04235 $wgGroupPermissions['sysop']['import'] = true; 04236 $wgGroupPermissions['sysop']['importupload'] = true; 04237 $wgGroupPermissions['sysop']['move'] = true; 04238 $wgGroupPermissions['sysop']['move-subpages'] = true; 04239 $wgGroupPermissions['sysop']['move-rootuserpages'] = true; 04240 $wgGroupPermissions['sysop']['patrol'] = true; 04241 $wgGroupPermissions['sysop']['autopatrol'] = true; 04242 $wgGroupPermissions['sysop']['protect'] = true; 04243 $wgGroupPermissions['sysop']['editprotected'] = true; 04244 $wgGroupPermissions['sysop']['proxyunbannable'] = true; 04245 $wgGroupPermissions['sysop']['rollback'] = true; 04246 $wgGroupPermissions['sysop']['upload'] = true; 04247 $wgGroupPermissions['sysop']['reupload'] = true; 04248 $wgGroupPermissions['sysop']['reupload-shared'] = true; 04249 $wgGroupPermissions['sysop']['unwatchedpages'] = true; 04250 $wgGroupPermissions['sysop']['autoconfirmed'] = true; 04251 $wgGroupPermissions['sysop']['editsemiprotected'] = true; 04252 $wgGroupPermissions['sysop']['ipblock-exempt'] = true; 04253 $wgGroupPermissions['sysop']['blockemail'] = true; 04254 $wgGroupPermissions['sysop']['markbotedits'] = true; 04255 $wgGroupPermissions['sysop']['apihighlimits'] = true; 04256 $wgGroupPermissions['sysop']['browsearchive'] = true; 04257 $wgGroupPermissions['sysop']['noratelimit'] = true; 04258 $wgGroupPermissions['sysop']['movefile'] = true; 04259 $wgGroupPermissions['sysop']['unblockself'] = true; 04260 $wgGroupPermissions['sysop']['suppressredirect'] = true; 04261 #$wgGroupPermissions['sysop']['upload_by_url'] = true; 04262 #$wgGroupPermissions['sysop']['mergehistory'] = true; 04263 04264 // Permission to change users' group assignments 04265 $wgGroupPermissions['bureaucrat']['userrights'] = true; 04266 $wgGroupPermissions['bureaucrat']['noratelimit'] = true; 04267 // Permission to change users' groups assignments across wikis 04268 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true; 04269 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth 04270 #$wgGroupPermissions['bureaucrat']['override-export-depth'] = true; 04271 04272 #$wgGroupPermissions['sysop']['deletelogentry'] = true; 04273 #$wgGroupPermissions['sysop']['deleterevision'] = true; 04274 // To hide usernames from users and Sysops 04275 #$wgGroupPermissions['suppress']['hideuser'] = true; 04276 // To hide revisions/log items from users and Sysops 04277 #$wgGroupPermissions['suppress']['suppressrevision'] = true; 04278 // For private suppression log access 04279 #$wgGroupPermissions['suppress']['suppressionlog'] = true; 04280 04287 # $wgGroupPermissions['developer']['siteadmin'] = true; 04288 04300 $wgRevokePermissions = array(); 04301 04305 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' ); 04306 04328 $wgGroupsAddToSelf = array(); 04329 04333 $wgGroupsRemoveFromSelf = array(); 04334 04342 $wgRestrictionTypes = array( 'create', 'edit', 'move', 'upload' ); 04343 04355 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' ); 04356 04366 $wgCascadingRestrictionLevels = array( 'sysop' ); 04367 04380 $wgSemiprotectedRestrictionLevels = array( 'autoconfirmed' ); 04381 04389 $wgNamespaceProtection = array(); 04390 04400 $wgNonincludableNamespaces = array(); 04401 04422 $wgAutoConfirmAge = 0; 04423 04433 $wgAutoConfirmCount = 0; 04434 04458 $wgAutopromote = array( 04459 'autoconfirmed' => array( '&', 04460 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ), 04461 array( APCOND_AGE, &$wgAutoConfirmAge ), 04462 ), 04463 ); 04464 04484 $wgAutopromoteOnce = array( 04485 'onEdit' => array(), 04486 'onView' => array() 04487 ); 04488 04493 $wgAutopromoteOnceLogInRC = true; 04494 04517 $wgAddGroups = array(); 04518 04522 $wgRemoveGroups = array(); 04523 04528 $wgAvailableRights = array(); 04529 04534 $wgDeleteRevisionsLimit = 0; 04535 04541 $wgAccountCreationThrottle = 0; 04542 04554 $wgSpamRegex = array(); 04555 04559 $wgSummarySpamRegex = array(); 04560 04566 $wgEnableDnsBlacklist = false; 04567 04572 $wgEnableSorbs = false; 04573 04597 $wgDnsBlacklistUrls = array( 'http.dnsbl.sorbs.net.' ); 04598 04603 $wgSorbsUrl = array(); 04604 04609 $wgProxyWhitelist = array(); 04610 04616 $wgApplyIpBlocksToXff = false; 04617 04638 $wgRateLimits = array( 04639 'edit' => array( 04640 'anon' => null, // for any and all anonymous edits (aggregate) 04641 'user' => null, // for each logged-in user 04642 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user' 04643 'ip' => null, // for each anon and recent account 04644 'subnet' => null, // ... within a /24 subnet in IPv4 or /64 in IPv6 04645 ), 04646 'move' => array( 04647 'user' => null, 04648 'newbie' => null, 04649 'ip' => null, 04650 'subnet' => null, 04651 ), 04652 'mailpassword' => array( // triggering password resets emails 04653 'anon' => null, 04654 ), 04655 'emailuser' => array( // emailing other users using MediaWiki 04656 'user' => null, 04657 ), 04658 'linkpurge' => array( // purges of link tables 04659 'anon' => null, 04660 'user' => null, 04661 'newbie' => null, 04662 'ip' => null, 04663 'subnet' => null, 04664 ), 04665 'renderfile' => array( // files rendered via thumb.php or thumb_handler.php 04666 'anon' => null, 04667 'user' => null, 04668 'newbie' => null, 04669 'ip' => null, 04670 'subnet' => null, 04671 ), 04672 ); 04673 04677 $wgRateLimitLog = null; 04678 04683 $wgRateLimitsExcludedIPs = array(); 04684 04690 $wgPutIPinRC = true; 04691 04696 $wgQueryPageDefaultLimit = 50; 04697 04703 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 ); 04704 # end of user rights settings 04706 04707 /************************************************************************//** 04708 * @name Proxy scanner settings 04709 * @{ 04710 */ 04711 04715 $wgSecretKey = false; 04716 04726 $wgProxyList = array(); 04727 04731 $wgProxyKey = false; 04732 # end of proxy scanner settings 04734 04735 /************************************************************************//** 04736 * @name Cookie settings 04737 * @{ 04738 */ 04739 04743 $wgCookieExpiration = 180 * 86400; 04744 04749 $wgCookieDomain = ''; 04750 04755 $wgCookiePath = '/'; 04756 04763 $wgCookieSecure = 'detect'; 04764 04771 $wgDisableCookieCheck = false; 04772 04778 $wgCookiePrefix = false; 04779 04785 $wgCookieHttpOnly = true; 04786 04791 $wgHttpOnlyBlacklist = array( 04792 // Internet Explorer for Mac; sometimes the cookies work, sometimes 04793 // they don't. It's difficult to predict, as combinations of path 04794 // and expiration options affect its parsing. 04795 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/', 04796 ); 04797 04801 $wgCacheVaryCookies = array(); 04802 04806 $wgSessionName = false; 04807 # end of cookie settings } 04809 04810 /************************************************************************//** 04811 * @name LaTeX (mathematical formulas) 04812 * @{ 04813 */ 04814 04821 $wgUseTeX = false; 04822 # end LaTeX } 04824 04825 /************************************************************************//** 04826 * @name Profiling, testing and debugging 04827 * 04828 * To enable profiling, edit StartProfiler.php 04829 * 04830 * @{ 04831 */ 04832 04838 $wgDebugLogFile = ''; 04839 04843 $wgDebugLogPrefix = ''; 04844 04850 $wgDebugRedirects = false; 04851 04857 $wgDebugRawPage = false; 04858 04867 $wgDebugComments = false; 04868 04874 $wgDebugDBTransactions = false; 04875 04879 $wgDebugDumpSql = false; 04880 04887 $wgDebugLogGroups = array(); 04888 04894 $wgShowDebug = false; 04895 04900 $wgDebugTimestamps = false; 04901 04905 $wgDebugPrintHttpHeaders = true; 04906 04910 $wgSpecialVersionShowHooks = false; 04911 04917 $wgShowSQLErrors = false; 04918 04925 $wgShowExceptionDetails = false; 04926 04930 $wgShowDBErrorBacktrace = false; 04931 04935 $wgLogExceptionBacktrace = true; 04936 04940 $wgShowHostnames = false; 04941 04947 $wgOverrideHostname = false; 04948 04953 $wgDevelopmentWarnings = false; 04954 04960 $wgDeprecationReleaseLimit = false; 04961 04965 $wgProfileLimit = 0.0; 04966 04970 $wgProfileOnly = false; 04971 04982 $wgProfileToDatabase = false; 04983 04987 $wgProfileCallTree = false; 04988 04992 $wgProfilePerHost = false; 04993 05000 $wgUDPProfilerHost = '127.0.0.1'; 05001 05006 $wgUDPProfilerPort = '3811'; 05007 05017 $wgUDPProfilerFormatString = "%s - %d %f %f %f %f %s\n"; 05018 05022 $wgDebugProfiling = false; 05023 05027 $wgDebugFunctionEntry = false; 05028 05035 $wgStatsMethod = 'cache'; 05036 05043 $wgAggregateStatsID = false; 05044 05056 $wgStatsFormatString = "stats/%s - %s 1 1 1 1 %s\n"; 05057 05062 $wgDisableCounters = false; 05063 05069 $wgPageInfoTransclusionLimit = 50; 05070 05077 $wgSiteStatsAsyncFactor = false; 05078 05088 $wgParserTestFiles = array( 05089 "$IP/tests/parser/parserTests.txt", 05090 "$IP/tests/parser/extraParserTests.txt" 05091 ); 05092 05106 $wgParserTestRemote = false; 05107 05111 $wgEnableJavaScriptTest = false; 05112 05116 $wgJavaScriptTestConfig = array( 05117 'qunit' => array( 05118 // Page where documentation can be found relevant to the QUnit test suite being ran. 05119 // Used in the intro paragraph on [[Special:JavaScriptTest/qunit]] for the 05120 // documentation link in the "javascripttest-qunit-intro" message. 05121 'documentation' => '//www.mediawiki.org/wiki/Manual:JavaScript_unit_testing', 05122 // If you are submitting the QUnit test suite to a TestSwarm instance, 05123 // point this to the "inject.js" script of that instance. This is was registers 05124 // the QUnit hooks to extract the test results and push them back up into the 05125 // TestSwarm database. 05126 // @example 'http://localhost/testswarm/js/inject.js' 05127 // @example '//integration.mediawiki.org/testswarm/js/inject.js' 05128 'testswarm-injectjs' => false, 05129 ), 05130 ); 05131 05136 $wgCachePrefix = false; 05137 05145 $wgDebugToolbar = false; 05146 # end of profiling, testing and debugging } 05148 05149 /************************************************************************//** 05150 * @name Search 05151 * @{ 05152 */ 05153 05157 $wgDisableTextSearch = false; 05158 05163 $wgAdvancedSearchHighlighting = false; 05164 05169 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]'; 05170 05181 $wgCountTotalSearchHits = false; 05182 05191 $wgOpenSearchTemplate = false; 05192 05199 $wgEnableOpenSearchSuggest = true; 05200 05204 $wgSearchSuggestCacheExpiry = 1200; 05205 05210 $wgDisableSearchUpdate = false; 05211 05221 $wgNamespacesToBeSearchedDefault = array( 05222 NS_MAIN => true, 05223 ); 05224 05231 $wgNamespacesToBeSearchedHelp = array( 05232 NS_PROJECT => true, 05233 NS_HELP => true, 05234 ); 05235 05242 $wgSearchEverythingOnlyLoggedIn = false; 05243 05248 $wgDisableInternalSearch = false; 05249 05265 $wgSearchForwardUrl = null; 05266 05272 $wgUseTwoButtonsSearchForm = true; 05273 05279 $wgSitemapNamespaces = false; 05280 05295 $wgSitemapNamespacesPriorities = false; 05296 05302 $wgEnableSearchContributorsByIP = true; 05303 # end of search settings 05305 05306 /************************************************************************//** 05307 * @name Edit user interface 05308 * @{ 05309 */ 05310 05315 $wgDiff3 = '/usr/bin/diff3'; 05316 05320 $wgDiff = '/usr/bin/diff'; 05321 05327 $wgPreviewOnOpenNamespaces = array( 05328 NS_CATEGORY => true 05329 ); 05330 05334 $wgGoToEdit = false; 05335 05341 $wgUniversalEditButton = true; 05342 05348 $wgUseAutomaticEditSummaries = true; 05349 # end edit UI } 05351 05352 /************************************************************************//** 05353 * @name Maintenance 05354 * See also $wgSiteNotice 05355 * @{ 05356 */ 05357 05362 if ( !isset( $wgCommandLineMode ) ) { 05363 $wgCommandLineMode = false; 05364 } 05370 $wgCommandLineDarkBg = false; 05371 05377 $wgMaintenanceScripts = array(); 05378 05387 $wgReadOnly = null; 05388 05396 $wgReadOnlyFile = false; 05397 05407 $wgUpgradeKey = false; 05408 05412 $wgGitBin = '/usr/bin/git'; 05413 05426 $wgGitRepositoryViewers = array( 05427 'https://gerrit.wikimedia.org/r/p/(.*)' => 'https://git.wikimedia.org/commit/%r/%H', 05428 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' 05429 => 'https://git.wikimedia.org/commit/%r/%H', 05430 ); 05431 # End of maintenance } 05433 05434 /************************************************************************//** 05435 * @name Recent changes, new pages, watchlist and history 05436 * @{ 05437 */ 05438 05444 $wgRCMaxAge = 13 * 7 * 24 * 3600; 05445 05453 $wgRCFilterByAge = false; 05454 05459 $wgRCLinkLimits = array( 50, 100, 250, 500 ); 05460 $wgRCLinkDays = array( 1, 3, 7, 14, 30 ); 05461 05468 $wgRC2UDPAddress = false; 05469 05475 $wgRC2UDPPort = false; 05476 05485 $wgRC2UDPPrefix = ''; 05486 05493 $wgRC2UDPInterwikiPrefix = false; 05494 05501 $wgRC2UDPOmitBots = false; 05502 05538 $wgRCFeeds = array(); 05539 05544 $wgRCEngines = array( 05545 'redis' => 'RedisPubSubFeedEngine', 05546 'udp' => 'UDPRCFeedEngine', 05547 ); 05548 05554 $wgEnableNewpagesUserFilter = true; 05555 05559 $wgUseRCPatrol = true; 05560 05564 $wgUseNPPatrol = true; 05565 05569 $wgLogAutopatrol = true; 05570 05574 $wgFeed = true; 05575 05580 $wgFeedLimit = 50; 05581 05590 $wgFeedCacheTimeout = 60; 05591 05596 $wgFeedDiffCutoff = 32768; 05597 05610 $wgOverrideSiteFeed = array(); 05611 05617 $wgFeedClasses = array( 05618 'rss' => 'RSSFeed', 05619 'atom' => 'AtomFeed', 05620 ); 05621 05626 $wgAdvertisedFeedTypes = array( 'atom' ); 05627 05631 $wgRCShowWatchingUsers = false; # UPO 05632 05636 $wgPageShowWatchingUsers = false; 05637 05641 $wgRCShowChangedSize = true; 05642 05648 $wgRCChangedSizeThreshold = 500; 05649 05654 $wgShowUpdatedMarker = true; 05655 05660 $wgDisableAnonTalk = false; 05661 05665 $wgAllowCategorizedRecentChanges = false; 05666 05671 $wgUseTagFilter = true; 05672 05680 $wgUnwatchedPageThreshold = false; 05681 05698 $wgRecentChangesFlags = array( 05699 'newpage' => array( 'letter' => 'newpageletter', 05700 'title' => 'recentchanges-label-newpage' ), 05701 'minor' => array( 'letter' => 'minoreditletter', 05702 'title' => 'recentchanges-label-minor', 'class' => 'minoredit' ), 05703 'bot' => array( 'letter' => 'boteditletter', 05704 'title' => 'recentchanges-label-bot', 'class' => 'botedit' ), 05705 'unpatrolled' => array( 'letter' => 'unpatrolledletter', 05706 'title' => 'recentchanges-label-unpatrolled' ), 05707 ); 05708 # end RC/watchlist } 05710 05711 /************************************************************************//** 05712 * @name Copyright and credits settings 05713 * @{ 05714 */ 05715 05723 $wgRightsPage = null; 05724 05730 $wgRightsUrl = null; 05731 05738 $wgRightsText = null; 05739 05743 $wgRightsIcon = null; 05744 05748 $wgLicenseTerms = false; 05749 05754 $wgCopyrightIcon = null; 05755 05759 $wgUseCopyrightUpload = false; 05760 05768 $wgMaxCredits = 0; 05769 05774 $wgShowCreditsIfMax = true; 05775 # end of copyright and credits settings } 05777 05778 /************************************************************************//** 05779 * @name Import / Export 05780 * @{ 05781 */ 05782 05791 $wgImportSources = array(); 05792 05800 $wgImportTargetNamespace = null; 05801 05807 $wgExportAllowHistory = true; 05808 05814 $wgExportMaxHistory = 0; 05815 05819 $wgExportAllowListContributors = false; 05820 05832 $wgExportMaxLinkDepth = 0; 05833 05837 $wgExportFromNamespaces = false; 05838 05842 $wgExportAllowAll = false; 05843 # end of import/export } 05845 05846 /*************************************************************************//** 05847 * @name Extensions 05848 * @{ 05849 */ 05850 05855 $wgExtensionFunctions = array(); 05856 05873 $wgExtensionMessagesFiles = array(); 05874 05880 $wgExtensionEntryPointListFiles = array(); 05881 05896 $wgParserOutputHooks = array(); 05897 05901 $wgEnableParserLimitReporting = true; 05902 05912 $wgValidSkinNames = array(); 05913 05918 $wgSpecialPages = array(); 05919 05923 $wgAutoloadClasses = array(); 05924 05951 $wgExtensionCredits = array(); 05952 05957 $wgAuth = null; 05958 05993 $wgHooks = array(); 05994 05999 $wgJobClasses = array( 06000 'refreshLinks' => 'RefreshLinksJob', 06001 'refreshLinks2' => 'RefreshLinksJob2', 06002 'htmlCacheUpdate' => 'HTMLCacheUpdateJob', 06003 'sendMail' => 'EmaillingJob', 06004 'enotifNotify' => 'EnotifNotifyJob', 06005 'fixDoubleRedirect' => 'DoubleRedirectJob', 06006 'uploadFromUrl' => 'UploadFromUrlJob', 06007 'AssembleUploadChunks' => 'AssembleUploadChunksJob', 06008 'PublishStashedFile' => 'PublishStashedFileJob', 06009 'null' => 'NullJob' 06010 ); 06011 06022 $wgJobTypesExcludedFromDefaultQueue = array( 'AssembleUploadChunks', 'PublishStashedFile' ); 06023 06030 $wgJobTypeConf = array( 06031 'default' => array( 'class' => 'JobQueueDB', 'order' => 'random' ), 06032 ); 06033 06038 $wgJobQueueAggregator = array( 06039 'class' => 'JobQueueAggregatorMemc' 06040 ); 06041 06046 $wgSpecialPageCacheUpdates = array( 06047 'Statistics' => array( 'SiteStatsUpdate', 'cacheUpdate' ) 06048 ); 06049 06057 $wgExceptionHooks = array(); 06058 06066 $wgPagePropLinkInvalidations = array( 06067 'hiddencat' => 'categorylinks', 06068 ); 06069 # End extensions } 06071 06072 /*************************************************************************//** 06073 * @name Categories 06074 * @{ 06075 */ 06076 06080 $wgUseCategoryBrowser = false; 06081 06086 $wgCategoryMagicGallery = true; 06087 06091 $wgCategoryPagingLimit = 200; 06092 06118 $wgCategoryCollation = 'uppercase'; 06119 # End categories } 06121 06122 /*************************************************************************//** 06123 * @name Logging 06124 * @{ 06125 */ 06126 06133 $wgLogTypes = array( 06134 '', 06135 'block', 06136 'protect', 06137 'rights', 06138 'delete', 06139 'upload', 06140 'move', 06141 'import', 06142 'patrol', 06143 'merge', 06144 'suppress', 06145 ); 06146 06154 $wgLogRestrictions = array( 06155 'suppress' => 'suppressionlog' 06156 ); 06157 06180 $wgFilterLogTypes = array( 06181 'patrol' => true 06182 ); 06183 06193 $wgLogNames = array( 06194 '' => 'all-logs-page', 06195 'block' => 'blocklogpage', 06196 'protect' => 'protectlogpage', 06197 'rights' => 'rightslog', 06198 'delete' => 'dellogpage', 06199 'upload' => 'uploadlogpage', 06200 'move' => 'movelogpage', 06201 'import' => 'importlogpage', 06202 'patrol' => 'patrol-log-page', 06203 'merge' => 'mergelog', 06204 'suppress' => 'suppressionlog', 06205 ); 06206 06216 $wgLogHeaders = array( 06217 '' => 'alllogstext', 06218 'block' => 'blocklogtext', 06219 'protect' => 'protectlogtext', 06220 'rights' => 'rightslogtext', 06221 'delete' => 'dellogpagetext', 06222 'upload' => 'uploadlogpagetext', 06223 'move' => 'movelogpagetext', 06224 'import' => 'importlogpagetext', 06225 'patrol' => 'patrol-log-header', 06226 'merge' => 'mergelogpagetext', 06227 'suppress' => 'suppressionlogtext', 06228 ); 06229 06236 $wgLogActions = array( 06237 'block/block' => 'blocklogentry', 06238 'block/unblock' => 'unblocklogentry', 06239 'block/reblock' => 'reblock-logentry', 06240 'protect/protect' => 'protectedarticle', 06241 'protect/modify' => 'modifiedarticleprotection', 06242 'protect/unprotect' => 'unprotectedarticle', 06243 'protect/move_prot' => 'movedarticleprotection', 06244 'upload/upload' => 'uploadedimage', 06245 'upload/overwrite' => 'overwroteimage', 06246 'upload/revert' => 'uploadedimage', 06247 'import/upload' => 'import-logentry-upload', 06248 'import/interwiki' => 'import-logentry-interwiki', 06249 'merge/merge' => 'pagemerge-logentry', 06250 'suppress/block' => 'blocklogentry', 06251 'suppress/reblock' => 'reblock-logentry', 06252 ); 06253 06260 $wgLogActionsHandlers = array( 06261 'move/move' => 'MoveLogFormatter', 06262 'move/move_redir' => 'MoveLogFormatter', 06263 'delete/delete' => 'DeleteLogFormatter', 06264 'delete/restore' => 'DeleteLogFormatter', 06265 'delete/revision' => 'DeleteLogFormatter', 06266 'delete/event' => 'DeleteLogFormatter', 06267 'suppress/revision' => 'DeleteLogFormatter', 06268 'suppress/event' => 'DeleteLogFormatter', 06269 'suppress/delete' => 'DeleteLogFormatter', 06270 'patrol/patrol' => 'PatrolLogFormatter', 06271 'rights/rights' => 'RightsLogFormatter', 06272 'rights/autopromote' => 'RightsLogFormatter', 06273 ); 06274 06278 $wgNewUserLog = true; 06279 # end logging } 06281 06282 /*************************************************************************//** 06283 * @name Special pages (general and miscellaneous) 06284 * @{ 06285 */ 06286 06290 $wgAllowSpecialInclusion = true; 06291 06296 $wgDisableQueryPageUpdate = false; 06297 06304 $wgSpecialPageGroups = array(); 06305 06309 $wgSortSpecialPages = true; 06310 06315 $wgCountCategorizedImagesAsUsed = false; 06316 06321 $wgMaxRedirectLinksRetrieved = 500; 06322 # end special pages } 06324 06325 /*************************************************************************//** 06326 * @name Actions 06327 * @{ 06328 */ 06329 06340 $wgActions = array( 06341 'credits' => true, 06342 'delete' => true, 06343 'edit' => true, 06344 'history' => true, 06345 'info' => true, 06346 'markpatrolled' => true, 06347 'protect' => true, 06348 'purge' => true, 06349 'raw' => true, 06350 'render' => true, 06351 'revert' => true, 06352 'revisiondelete' => true, 06353 'rollback' => true, 06354 'submit' => true, 06355 'unprotect' => true, 06356 'unwatch' => true, 06357 'view' => true, 06358 'watch' => true, 06359 ); 06360 06365 $wgDisabledActions = array(); 06366 # end actions } 06368 06369 /*************************************************************************//** 06370 * @name Robot (search engine crawler) policy 06371 * See also $wgNoFollowLinks. 06372 * @{ 06373 */ 06374 06380 $wgDefaultRobotPolicy = 'index,follow'; 06381 06396 $wgNamespaceRobotPolicies = array(); 06397 06424 $wgArticleRobotPolicies = array(); 06425 06436 $wgExemptFromUserRobotsControl = null; 06437 # End robot policy } 06439 06440 /************************************************************************//** 06441 * @name AJAX and API 06442 * Note: The AJAX entry point which this section refers to is gradually being 06443 * replaced by the API entry point, api.php. They are essentially equivalent. 06444 * Both of them are used for dynamic client-side features, via XHR. 06445 * @{ 06446 */ 06447 06454 $wgEnableAPI = true; 06455 06461 $wgEnableWriteAPI = true; 06462 06477 $wgDebugAPI = false; 06478 06485 $wgAPIModules = array(); 06486 $wgAPIMetaModules = array(); 06487 $wgAPIPropModules = array(); 06488 $wgAPIListModules = array(); 06489 06494 $wgAPIGeneratorModules = array(); 06495 06500 $wgAPIMaxDBRows = 5000; 06501 06506 $wgAPIMaxResultSize = 8388608; 06507 06512 $wgAPIMaxUncachedDiffs = 1; 06513 06518 $wgAPIRequestLog = false; 06519 06523 $wgAPICacheHelpTimeout = 60 * 60; 06524 06529 $wgAPIUselessQueryPages = array( 06530 'MIMEsearch', // aiprop=mime 06531 'LinkSearch', // list=exturlusage 06532 'FileDuplicateSearch', // prop=duplicatefiles 06533 ); 06534 06538 $wgUseAjax = true; 06539 06544 $wgAjaxExportList = array(); 06545 06550 $wgAjaxWatch = true; 06551 06555 $wgAjaxUploadDestCheck = true; 06556 06560 $wgAjaxLicensePreview = true; 06561 06582 $wgCrossSiteAJAXdomains = array(); 06583 06589 $wgCrossSiteAJAXdomainExceptions = array(); 06590 # End AJAX and API } 06592 06593 /************************************************************************//** 06594 * @name Shell and process control 06595 * @{ 06596 */ 06597 06601 $wgMaxShellMemory = 307200; 06602 06607 $wgMaxShellFileSize = 102400; 06608 06612 $wgMaxShellTime = 180; 06613 06618 $wgMaxShellWallClockTime = 180; 06619 06643 $wgShellCgroup = false; 06644 06648 $wgPhpCli = '/usr/bin/php'; 06649 06655 $wgShellLocale = 'en_US.utf8'; 06656 # End shell } 06658 06659 /************************************************************************//** 06660 * @name HTTP client 06661 * @{ 06662 */ 06663 06667 $wgHTTPTimeout = 25; 06668 06672 $wgAsyncHTTPTimeout = 25; 06673 06677 $wgHTTPProxy = false; 06678 06683 $wgHTTPConnectTimeout = 5e0; 06684 # End HTTP client } 06686 06687 /************************************************************************//** 06688 * @name Job queue 06689 * See also $wgEnotifUseJobQ. 06690 * @{ 06691 */ 06692 06699 $wgJobRunRate = 1; 06700 06704 $wgUpdateRowsPerJob = 500; 06705 06709 $wgUpdateRowsPerQuery = 100; 06710 06718 $wgMaxBacklinksInvalidate = false; 06719 # End job queue } 06721 06722 /************************************************************************//** 06723 * @name Miscellaneous 06724 * @{ 06725 */ 06726 06730 $wgExternalDiffEngine = false; 06731 06740 $wgDisableHardRedirects = false; 06741 06746 $wgLinkHolderBatchSize = 1000; 06747 06752 $wgRegisterInternalExternals = false; 06753 06757 $wgMaximumMovedPages = 100; 06758 06763 $wgFixDoubleRedirects = false; 06764 06769 $wgRedirectOnLogin = null; 06770 06791 $wgPoolCounterConf = null; 06792 06796 $wgUploadMaintenance = false; 06797 06806 $wgNamespaceContentModels = array(); 06807 06818 $wgContentHandlerTextFallback = 'ignore'; 06819 06833 $wgContentHandlerUseDB = true; 06834 06845 $wgTextModelsToParse = array( 06846 CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed. 06847 CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments. 06848 CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments. 06849 ); 06850 06856 $wgRequirePasswordforEmailChange = true; 06857 06863 $wgSiteTypes = array( 06864 'mediawiki' => 'MediaWikiSite', 06865 ); 06866 06871 $wgCompiledFiles = array(); 06872