MediaWiki
REL1_20
|
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 00059 $wgConf = new SiteConfiguration; 00060 00062 $wgVersion = '1.20.8'; 00063 00065 $wgSitename = 'MediaWiki'; 00066 00083 $wgServer = WebRequest::detectServer(); 00084 00091 $wgCanonicalServer = false; 00092 00093 /************************************************************************/ 00107 $wgScriptPath = '/wiki'; 00108 00125 $wgUsePathInfo = 00126 ( strpos( php_sapi_name(), 'cgi' ) === false ) && 00127 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) && 00128 ( strpos( php_sapi_name(), 'isapi' ) === false ); 00129 00137 $wgScriptExtension = '.php'; 00138 00139 00142 /************************************************************************/ 00165 $wgScript = false; 00166 00173 $wgRedirectScript = false; 00174 00180 $wgLoadScript = false; 00181 00186 $wgStylePath = false; 00187 $wgStyleSheetPath = &$wgStylePath; 00188 00193 $wgLocalStylePath = false; 00194 00200 $wgExtensionAssetsPath = false; 00201 00206 $wgStyleDirectory = false; 00207 00215 $wgArticlePath = false; 00216 00221 $wgUploadPath = false; 00222 00226 $wgUploadDirectory = false; 00227 00232 $wgFileCacheDirectory = false; 00233 00238 $wgLogo = false; 00239 00243 $wgFavicon = '/favicon.ico'; 00244 00249 $wgAppleTouchIcon = false; 00250 00266 $wgTmpDirectory = false; 00267 00272 $wgUploadBaseUrl = ''; 00273 00280 $wgUploadStashScalerBaseUrl = false; 00281 00295 $wgActionPaths = array(); 00296 00299 /************************************************************************/ 00305 $wgEnableUploads = false; 00306 00310 $wgUploadStashMaxAge = 6 * 3600; // 6 hours 00311 00313 $wgAllowImageMoving = true; 00314 00318 $wgIllegalFileChars = ":"; 00319 00323 $wgFileStore = array(); 00324 00329 $wgDeletedDirectory = false; 00330 00334 $wgImgAuthDetails = false; 00335 00341 $wgImgAuthPublicTest = true; 00342 00425 $wgLocalFileRepo = false; 00426 00428 $wgForeignFileRepos = array(); 00429 00435 $wgUseInstantCommons = false; 00436 00448 $wgFileBackends = array(); 00449 00457 $wgLockManagers = array(); 00458 00471 $wgShowEXIF = function_exists( 'exif_read_data' ); 00472 00478 $wgUpdateCompatibleMetadata = false; 00479 00493 $wgUseSharedUploads = false; 00494 00496 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images"; 00497 00499 $wgFetchCommonsDescriptions = false; 00500 00502 $wgSharedUploadDirectory = "/var/www/wiki3/images"; 00503 00505 $wgSharedUploadDBname = false; 00506 00508 $wgSharedUploadDBprefix = ''; 00509 00511 $wgCacheSharedUploads = true; 00512 00518 $wgAllowCopyUploads = false; 00519 00524 $wgAllowAsyncCopyUploads = false; 00525 00531 $wgCopyUploadsDomains = array(); 00532 00537 $wgCopyUploadProxy = false; 00538 00556 $wgMaxUploadSize = 1024*1024*100; # 100MB 00557 00568 $wgUploadNavigationUrl = false; 00569 00575 $wgUploadMissingFileUrl = false; 00576 00588 $wgThumbnailScriptPath = false; 00592 $wgSharedThumbnailScriptPath = false; 00593 00607 $wgHashedUploadDirectory = true; 00608 00614 $wgHashedSharedUploadDirectory = true; 00615 00624 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:"; 00625 00634 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' ); 00635 00641 $wgFileBlacklist = array( 00642 # HTML may contain cookie-stealing JavaScript and web bugs 00643 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht', 00644 # PHP scripts may execute arbitrary code on the server 00645 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 00646 # Other types that may be interpreted by some servers 00647 'shtml', 'jhtml', 'pl', 'py', 'cgi', 00648 # May contain harmful executables for Windows victims 00649 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ); 00650 00655 $wgMimeTypeBlacklist = array( 00656 # HTML may contain cookie-stealing JavaScript and web bugs 00657 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript', 00658 # PHP scripts may execute arbitrary code on the server 00659 'application/x-php', 'text/x-php', 00660 # Other types that may be interpreted by some servers 00661 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh', 00662 # Client-side hazards on Internet Explorer 00663 'text/scriptlet', 'application/x-msdownload', 00664 # Windows metafile, client-side vulnerability on some systems 00665 'application/x-msmetafile', 00666 ); 00667 00673 $wgAllowJavaUploads = false; 00674 00680 $wgCheckFileExtensions = true; 00681 00688 $wgStrictFileExtensions = true; 00689 00696 $wgDisableUploadScriptChecks = false; 00697 00701 $wgUploadSizeWarning = false; 00702 00713 $wgTrustedMediaFormats = array( 00714 MEDIATYPE_BITMAP, //all bitmap formats 00715 MEDIATYPE_AUDIO, //all audio formats 00716 MEDIATYPE_VIDEO, //all plain video formats 00717 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported) 00718 "application/pdf", //PDF files 00719 #"application/x-shockwave-flash", //flash/shockwave movie 00720 ); 00721 00726 $wgMediaHandlers = array( 00727 'image/jpeg' => 'JpegHandler', 00728 'image/png' => 'PNGHandler', 00729 'image/gif' => 'GIFHandler', 00730 'image/tiff' => 'TiffHandler', 00731 'image/x-ms-bmp' => 'BmpHandler', 00732 'image/x-bmp' => 'BmpHandler', 00733 'image/x-xcf' => 'XCFHandler', 00734 'image/svg+xml' => 'SvgHandler', // official 00735 'image/svg' => 'SvgHandler', // compat 00736 'image/vnd.djvu' => 'DjVuHandler', // official 00737 'image/x.djvu' => 'DjVuHandler', // compat 00738 'image/x-djvu' => 'DjVuHandler', // compat 00739 ); 00740 00749 $wgUseImageMagick = false; 00751 $wgImageMagickConvertCommand = '/usr/bin/convert'; 00753 $wgImageMagickIdentifyCommand = '/usr/bin/identify'; 00754 00756 $wgSharpenParameter = '0x0.4'; 00757 00759 $wgSharpenReductionThreshold = 0.85; 00760 00765 $wgImageMagickTempDir = false; 00766 00779 $wgCustomConvertCommand = false; 00780 00785 $wgExiv2Command = '/usr/bin/exiv2'; 00786 00796 $wgSVGConverters = array( 00797 'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output', 00798 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output', 00799 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output', 00800 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input', 00801 'rsvg' => '$path/rsvg -w$width -h$height $input $output', 00802 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output', 00803 'ImagickExt' => array( 'SvgHandler::rasterizeImagickExt' ), 00804 ); 00805 00807 $wgSVGConverter = 'ImageMagick'; 00808 00810 $wgSVGConverterPath = ''; 00811 00813 $wgSVGMaxSize = 2048; 00814 00818 $wgSVGMetadataCutoff = 262144; 00819 00831 $wgAllowTitlesInSVG = false; 00832 00846 $wgMaxImageArea = 1.25e7; 00853 $wgMaxAnimatedGifArea = 1.25e7; 00867 $wgTiffThumbnailType = false; 00868 00875 $wgThumbnailEpoch = '20030516000000'; 00876 00888 $wgIgnoreImageErrors = false; 00889 00897 $wgGenerateThumbnailOnParse = true; 00898 00902 $wgShowArchiveThumbnails = true; 00903 00905 $wgUseImageResize = true; 00906 00912 $wgEnableAutoRotation = null; 00913 00919 $wgAntivirus = null; 00920 00955 $wgAntivirusSetup = array( 00956 00957 #setup for clamav 00958 'clamav' => array ( 00959 'command' => "clamscan --no-summary ", 00960 00961 'codemap' => array ( 00962 "0" => AV_NO_VIRUS, # no virus 00963 "1" => AV_VIRUS_FOUND, # virus found 00964 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune) 00965 "*" => AV_SCAN_FAILED, # else scan failed 00966 ), 00967 00968 'messagepattern' => '/.*?:(.*)/sim', 00969 ), 00970 ); 00971 00972 00974 $wgAntivirusRequired = true; 00975 00977 $wgVerifyMimeType = true; 00978 00980 $wgMimeTypeFile = "includes/mime.types"; 00981 #$wgMimeTypeFile= "/etc/mime.types"; 00982 #$wgMimeTypeFile= null; #use built-in defaults only. 00983 00985 $wgMimeInfoFile= "includes/mime.info"; 00986 #$wgMimeInfoFile= null; #use built-in defaults only. 00987 00993 $wgLoadFileinfoExtension = false; 00994 01005 $wgMimeDetectorCommand = null; 01006 01012 $wgTrivialMimeDetection = false; 01013 01018 $wgXMLMimeTypes = array( 01019 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml', 01020 'svg' => 'image/svg+xml', 01021 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram', 01022 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml? 01023 'html' => 'text/html', // application/xhtml+xml? 01024 ); 01025 01034 $wgImageLimits = array( 01035 array( 320, 240 ), 01036 array( 640, 480 ), 01037 array( 800, 600 ), 01038 array( 1024, 768 ), 01039 array( 1280, 1024 ) 01040 ); 01041 01047 $wgThumbLimits = array( 01048 120, 01049 150, 01050 180, 01051 200, 01052 250, 01053 300 01054 ); 01055 01059 $wgGalleryOptions = array ( 01060 'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize 01061 'imageWidth' => 120, // Width of the cells containing images in galleries (in "px") 01062 'imageHeight' => 120, // Height of the cells containing images in galleries (in "px") 01063 'captionLength' => 25, // Length of caption to truncate (in characters) 01064 'showBytes' => true, // Show the filesize in bytes in categories 01065 ); 01066 01072 $wgThumbUpright = 0.75; 01073 01077 $wgDirectoryMode = 0777; 01078 01087 # $wgDjvuDump = 'djvudump'; 01088 $wgDjvuDump = null; 01089 01094 # $wgDjvuRenderer = 'ddjvu'; 01095 $wgDjvuRenderer = null; 01096 01101 # $wgDjvuTxt = 'djvutxt'; 01102 $wgDjvuTxt = null; 01103 01118 $wgDjvuToXML = null; 01119 01125 $wgDjvuPostProcessor = 'pnmtojpeg'; 01129 $wgDjvuOutputExtension = 'jpg'; # end of DJvu } 01131 # end of file uploads } 01133 01134 /************************************************************************/ 01139 $serverName = substr( $wgServer, strrpos( $wgServer, '/' ) + 1 ); 01140 01144 $wgEmergencyContact = 'wikiadmin@' . $serverName; 01145 01151 $wgPasswordSender = 'apache@' . $serverName; 01152 01153 unset( $serverName ); # Don't leak local variables to global scope 01154 01158 $wgPasswordSenderName = 'MediaWiki Mail'; 01159 01165 $wgNoReplyAddress = '[email protected]'; 01166 01172 $wgEnableEmail = true; 01173 01178 $wgEnableUserEmail = true; 01179 01188 $wgUserEmailUseReplyTo = false; 01189 01194 $wgPasswordReminderResendTime = 24; 01195 01199 $wgNewPasswordExpiry = 3600 * 24 * 7; 01200 01204 $wgUserEmailConfirmationTokenExpiry = 7 * 24 * 60 * 60; 01205 01223 $wgSMTP = false; 01224 01229 $wgAdditionalMailParams = null; 01230 01235 $wgEnotifFromEditor = false; 01236 01237 // TODO move UPO to preferences probably ? 01238 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion 01239 # If set to false, the corresponding input form on the user preference page is suppressed 01240 # It call this to be a "user-preferences-option (UPO)" 01241 01247 $wgEmailAuthentication = true; 01248 01252 $wgEnotifWatchlist = false; 01253 01258 $wgEnotifUserTalk = false; 01259 01264 $wgEnotifRevealEditorAddress = false; 01265 01270 $wgEnotifMinorEdits = true; 01271 01279 $wgEnotifImpersonal = false; 01280 01285 $wgEnotifMaxRecips = 500; 01286 01291 $wgEnotifUseJobQ = false; 01292 01296 $wgEnotifUseRealName = false; 01297 01302 $wgUsersNotifiedOnAllChanges = array(); 01303 01304 # end of email settings 01306 01307 /************************************************************************//** 01308 * @name Database settings 01309 * @{ 01310 */ 01312 $wgDBserver = 'localhost'; 01314 $wgDBport = 5432; 01316 $wgDBname = 'my_wiki'; 01318 $wgDBuser = 'wikiuser'; 01320 $wgDBpassword = ''; 01322 $wgDBtype = 'mysql'; 01324 $wgDBssl = false; 01326 $wgDBcompress = false; 01327 01329 $wgDBadminuser = null; 01331 $wgDBadminpassword = null; 01332 01339 $wgSearchType = null; 01340 01342 $wgDBprefix = ''; 01344 $wgDBTableOptions = 'ENGINE=InnoDB'; 01345 01352 $wgSQLMode = ''; 01353 01355 $wgDBmwschema = 'mediawiki'; 01356 01358 $wgSQLiteDataDir = ''; 01359 01365 $wgAllDBsAreLocalhost = false; 01366 01385 $wgSharedDB = null; 01386 01388 $wgSharedPrefix = false; 01390 $wgSharedTables = array( 'user', 'user_properties' ); 01391 01438 $wgDBservers = false; 01439 01450 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' ); 01451 01453 $wgMasterWaitTimeout = 10; 01454 01456 $wgDBerrorLog = false; 01457 01476 $wgDBerrorLogTZ = false; 01477 01479 $wgDBClusterTimeout = 10; 01480 01486 $wgDBAvgStatusPoll = 2000; 01487 01504 $wgDBmysql5 = false; 01505 01511 $wgLocalDatabases = array(); 01512 01518 $wgSlaveLagWarning = 10; 01520 $wgSlaveLagCritical = 30; 01521 01525 $wgOldChangeTagsIndex = false; 01526 # End of DB settings } 01528 01529 01530 /************************************************************************//** 01531 * @name Text storage 01532 * @{ 01533 */ 01534 01541 $wgCompressRevisions = false; 01542 01554 $wgExternalStores = false; 01555 01570 $wgExternalServers = array(); 01571 01586 $wgDefaultExternalStore = false; 01587 01594 $wgRevisionCacheExpiry = 0; 01595 # end text storage } 01597 01598 /************************************************************************//** 01599 * @name Performance hacks and limits 01600 * @{ 01601 */ 01603 $wgMiserMode = false; 01605 $wgDisableQueryPages = false; 01607 $wgQueryCacheLimit = 1000; 01609 $wgWantedPagesThreshold = 1; 01611 $wgAllowSlowParserFunctions = false; 01613 $wgAllowSchemaUpdates = true; 01614 01618 $wgUseDumbLinkUpdate = false; 01619 01627 $wgAntiLockFlags = 0; 01628 01632 $wgMaxArticleSize = 2048; 01633 01638 $wgMemoryLimit = "50M"; 01639 # end performance hacks } 01641 01642 /************************************************************************//** 01643 * @name Cache settings 01644 * @{ 01645 */ 01646 01655 $wgCacheDirectory = false; 01656 01677 $wgMainCacheType = CACHE_NONE; 01678 01685 $wgMessageCacheType = CACHE_ANYTHING; 01686 01693 $wgParserCacheType = CACHE_ANYTHING; 01694 01700 $wgSessionCacheType = CACHE_ANYTHING; 01701 01710 $wgLanguageConverterCacheType = CACHE_ANYTHING; 01711 01729 $wgObjectCaches = array( 01730 CACHE_NONE => array( 'class' => 'EmptyBagOStuff' ), 01731 CACHE_DB => array( 'class' => 'SqlBagOStuff', 'table' => 'objectcache' ), 01732 CACHE_DBA => array( 'class' => 'DBABagOStuff' ), 01733 01734 CACHE_ANYTHING => array( 'factory' => 'ObjectCache::newAnything' ), 01735 CACHE_ACCEL => array( 'factory' => 'ObjectCache::newAccelerator' ), 01736 CACHE_MEMCACHED => array( 'factory' => 'ObjectCache::newMemcached' ), 01737 01738 'apc' => array( 'class' => 'APCBagOStuff' ), 01739 'xcache' => array( 'class' => 'XCacheBagOStuff' ), 01740 'wincache' => array( 'class' => 'WinCacheBagOStuff' ), 01741 'memcached-php' => array( 'class' => 'MemcachedPhpBagOStuff' ), 01742 'memcached-pecl' => array( 'class' => 'MemcachedPeclBagOStuff' ), 01743 'hash' => array( 'class' => 'HashBagOStuff' ), 01744 ); 01745 01750 $wgParserCacheExpireTime = 86400; 01751 01756 $wgDBAhandler = 'db3'; 01757 01763 $wgSessionsInMemcached = false; 01764 01771 $wgSessionsInObjectCache = false; 01772 01777 $wgObjectCacheSessionExpiry = 3600; 01778 01785 $wgSessionHandler = null; 01786 01788 $wgMemCachedDebug = false; 01789 01791 $wgMemCachedServers = array( '127.0.0.1:11000' ); 01792 01797 $wgMemCachedPersistent = false; 01798 01802 $wgMemCachedTimeout = 500000; 01803 01808 $wgUseLocalMessageCache = false; 01809 01815 $wgLocalMessageCacheSerialized = true; 01816 01822 $wgAdaptiveMessageCache = false; 01823 01844 $wgLocalisationCacheConf = array( 01845 'class' => 'LocalisationCache', 01846 'store' => 'detect', 01847 'storeClass' => false, 01848 'storeDirectory' => false, 01849 'manualRecache' => false, 01850 ); 01851 01853 $wgCachePages = true; 01854 01863 $wgCacheEpoch = '20030516000000'; 01864 01872 $wgStyleVersion = '303'; 01873 01881 $wgUseFileCache = false; 01882 01889 $wgFileCacheDepth = 2; 01890 01900 $wgEnableParserCache = true; 01901 01906 $wgRenderHashAppend = ''; 01907 01917 $wgEnableSidebarCache = false; 01918 01922 $wgSidebarCacheExpiry = 86400; 01923 01930 $wgUseGzip = false; 01931 01936 $wgUseETag = false; 01937 01943 $wgClockSkewFudge = 5; 01944 01954 $wgInvalidateCacheOnLocalSettingsChange = true; 01955 # end of cache settings 01957 01958 /************************************************************************//** 01959 * @name HTTP proxy (Squid) settings 01960 * 01961 * Many of these settings apply to any HTTP proxy used in front of MediaWiki, 01962 * although they are referred to as Squid settings for historical reasons. 01963 * 01964 * Achieving a high hit ratio with an HTTP proxy requires special 01965 * configuration. See http://www.mediawiki.org/wiki/Manual:Squid_caching for 01966 * more details. 01967 * 01968 * @{ 01969 */ 01970 01975 $wgUseSquid = false; 01976 01978 $wgUseESI = false; 01979 01981 $wgUseXVO = false; 01982 01990 $wgVaryOnXFP = false; 01991 02000 $wgInternalServer = false; 02001 02008 $wgSquidMaxage = 18000; 02009 02013 $wgForcedRawSMaxage = 300; 02014 02023 $wgSquidServers = array(); 02024 02029 $wgSquidServersNoPurge = array(); 02030 02032 $wgMaxSquidPurgeTitles = 400; 02033 02063 $wgHTCPMulticastRouting = array(); 02064 02078 $wgHTCPMulticastAddress = false; 02079 02085 $wgHTCPPort = 4827; 02086 02091 $wgHTCPMulticastTTL = 1; 02092 02094 $wgUsePrivateIPs = false; 02095 # end of HTTP proxy settings 02097 02098 /************************************************************************//** 02099 * @name Language, regional and character encoding settings 02100 * @{ 02101 */ 02102 02104 $wgLanguageCode = 'en'; 02105 02115 $wgGrammarForms = array(); 02116 02118 $wgInterwikiMagic = true; 02119 02121 $wgHideInterlanguageLinks = false; 02122 02124 $wgExtraLanguageNames = array(); 02125 02132 $wgDummyLanguageCodes = array( 02133 'als' => 'gsw', 02134 'bat-smg' => 'sgs', 02135 'be-x-old' => 'be-tarask', 02136 'bh' => 'bho', 02137 'fiu-vro' => 'vro', 02138 'no' => 'nb', 02139 'qqq' => 'qqq', # Used for message documentation. 02140 'qqx' => 'qqx', # Used for viewing message keys. 02141 'roa-rup' => 'rup', 02142 'simple' => 'en', 02143 'zh-classical' => 'lzh', 02144 'zh-min-nan' => 'nan', 02145 'zh-yue' => 'yue', 02146 ); 02147 02155 $wgEditEncoding = ''; 02156 02165 $wgFixArabicUnicode = true; 02166 02176 $wgFixMalayalamUnicode = true; 02177 02188 $wgAllUnicodeFixes = false; 02189 02200 $wgLegacyEncoding = false; 02201 02207 $wgBrowserBlackList = array( 02218 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02219 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02220 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02221 02234 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/', 02235 02240 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/' 02241 ); 02242 02258 $wgLegacySchemaConversion = false; 02259 02264 $wgUseDynamicDates = false; 02269 $wgAmericanDates = false; 02274 $wgTranslateNumerals = true; 02275 02280 $wgUseDatabaseMessages = true; 02281 02285 $wgMsgCacheExpiry = 86400; 02286 02290 $wgMaxMsgCacheEntrySize = 10000; 02291 02293 $wgDisableLangConversion = false; 02294 02296 $wgDisableTitleConversion = false; 02297 02299 $wgCanonicalLanguageLinks = true; 02300 02302 $wgDefaultLanguageVariant = false; 02303 02313 $wgDisabledVariants = array(); 02314 02332 $wgVariantArticlePath = false; 02333 02339 $wgLoginLanguageSelector = false; 02340 02360 $wgForceUIMsgAsContentMsg = array(); 02361 02385 $wgLocaltimezone = null; 02386 02396 $wgLocalTZoffset = null; 02397 02406 $wgBug34832TransitionalRollback = true; 02407 02408 # End of language/charset settings 02410 02411 /*************************************************************************//** 02412 * @name Output format and skin settings 02413 * @{ 02414 */ 02415 02417 $wgMimeType = 'text/html'; 02418 02425 $wgJsMimeType = 'text/javascript'; 02426 02431 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN'; 02432 02438 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'; 02439 02445 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml'; 02446 02453 $wgHtml5 = true; 02454 02463 $wgHtml5Version = null; 02464 02469 $wgAllowRdfaAttributes = false; 02470 02474 $wgAllowMicrodataAttributes = false; 02475 02492 $wgWellFormedXml = true; 02493 02509 $wgXhtmlNamespaces = array(); 02510 02516 $wgShowIPinHeader = true; 02517 02525 $wgSiteNotice = ''; 02526 02530 $wgExtraSubtitle = ''; 02531 02535 $wgSiteSupportPage = ''; 02536 02541 $wgValidateAllHtml = false; 02542 02549 $wgDefaultSkin = 'vector'; 02550 02556 $wgSkipSkin = ''; 02558 $wgSkipSkins = array(); 02559 02572 $wgHandheldStyle = false; 02573 02584 $wgHandheldForIPhone = false; 02585 02591 $wgAllowUserJs = false; 02592 02598 $wgAllowUserCss = false; 02599 02605 $wgAllowUserCssPrefs = true; 02606 02608 $wgUseSiteJs = true; 02609 02611 $wgUseSiteCss = true; 02612 02617 $wgBreakFrames = false; 02618 02638 $wgEditPageFrameOptions = 'DENY'; 02639 02650 $wgApiFrameOptions = 'DENY'; 02651 02655 $wgDisableOutputCompression = false; 02656 02666 $wgExperimentalHtmlIds = false; 02667 02696 $wgFooterIcons = array( 02697 "copyright" => array( 02698 "copyright" => array(), // placeholder for the built in copyright icon 02699 ), 02700 "poweredby" => array( 02701 "mediawiki" => array( 02702 "src" => null, // Defaults to "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" 02703 "url" => "//www.mediawiki.org/", 02704 "alt" => "Powered by MediaWiki", 02705 ) 02706 ), 02707 ); 02708 02715 $wgUseCombinedLoginLink = false; 02716 02722 $wgVectorUseSimpleSearch = false; 02723 02729 $wgVectorUseIconWatch = false; 02730 02734 $wgEdititis = false; 02735 02742 $wgBetterDirectionality = true; 02743 02755 $wgSend404Code = true; 02756 02757 02765 $wgShowRollbackEditCount = 10; 02766 # End of output format settings } 02768 02769 /*************************************************************************/ 02791 $wgResourceModules = array(); 02792 02806 $wgResourceLoaderSources = array(); 02807 02812 $wgResourceBasePath = null; 02813 02819 $wgResourceLoaderMaxage = array( 02820 'versioned' => array( 02821 // Squid/Varnish but also any other public proxy cache between the client and MediaWiki 02822 'server' => 30 * 24 * 60 * 60, // 30 days 02823 // On the client side (e.g. in the browser cache). 02824 'client' => 30 * 24 * 60 * 60, // 30 days 02825 ), 02826 'unversioned' => array( 02827 'server' => 5 * 60, // 5 minutes 02828 'client' => 5 * 60, // 5 minutes 02829 ), 02830 ); 02831 02837 $wgResourceLoaderDebug = false; 02838 02844 $wgResourceLoaderUseESI = false; 02845 02850 $wgResourceLoaderMinifierStatementsOnOwnLine = false; 02851 02857 $wgResourceLoaderMinifierMaxLineLength = 1000; 02858 02863 $wgIncludeLegacyJavaScript = true; 02864 02883 $wgPreloadJavaScriptMwUtil = false; 02884 02910 $wgLegacyJavaScriptGlobals = true; 02911 02923 $wgResourceLoaderMaxQueryLength = -1; 02924 02932 $wgResourceLoaderValidateJS = true; 02933 02942 $wgResourceLoaderValidateStaticJS = false; 02943 02949 $wgResourceLoaderExperimentalAsyncLoading = false; 02950 # End of resource loader settings } 02952 02953 02954 /*************************************************************************/ 02963 $wgMetaNamespace = false; 02964 02972 $wgMetaNamespaceTalk = false; 02973 03000 $wgExtraNamespaces = array(); 03001 03008 $wgExtraGenderNamespaces = array(); 03009 03028 $wgNamespaceAliases = array(); 03029 03056 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+"; 03057 03061 $wgLocalInterwiki = false; 03062 03066 $wgInterwikiExpiry = 10800; 03067 03085 $wgInterwikiCache = false; 03092 $wgInterwikiScopes = 3; 03096 $wgInterwikiFallbackSite = 'wiki'; # end of Interwiki caching settings. 03098 03114 $wgRedirectSources = false; 03115 03123 $wgCapitalLinks = true; 03124 03139 $wgCapitalLinkOverrides = array(); 03140 03144 $wgNamespacesWithSubpages = array( 03145 NS_TALK => true, 03146 NS_USER => true, 03147 NS_USER_TALK => true, 03148 NS_PROJECT_TALK => true, 03149 NS_FILE_TALK => true, 03150 NS_MEDIAWIKI => true, 03151 NS_MEDIAWIKI_TALK => true, 03152 NS_TEMPLATE_TALK => true, 03153 NS_HELP_TALK => true, 03154 NS_CATEGORY_TALK => true 03155 ); 03156 03163 $wgContentNamespaces = array( NS_MAIN ); 03164 03170 $wgMaxRedirects = 1; 03171 03182 $wgInvalidRedirectTargets = array( 'Filepath', 'Mypage', 'Mytalk' ); 03183 # End of title and interwiki settings } 03185 03186 /************************************************************************/ 03213 $wgParserConf = array( 03214 'class' => 'Parser', 03215 #'preprocessorClass' => 'Preprocessor_Hash', 03216 ); 03217 03219 $wgMaxTocLevel = 999; 03220 03225 $wgMaxPPNodeCount = 1000000; 03226 03231 $wgMaxGeneratedPPNodeCount = 1000000; 03232 03233 03240 $wgMaxTemplateDepth = 40; 03241 03243 $wgMaxPPExpandDepth = 40; 03244 03246 $wgUrlProtocols = array( 03247 'http://', 03248 'https://', 03249 'ftp://', 03250 'irc://', 03251 'ircs://', // @bug 28503 03252 'gopher://', 03253 'telnet://', // Well if we're going to support the above.. -ævar 03254 'nntp://', // @bug 3808 RFC 1738 03255 'worldwind://', 03256 'mailto:', 03257 'news:', 03258 'svn://', 03259 'git://', 03260 'mms://', 03261 '//', // for protocol-relative URLs 03262 ); 03263 03267 $wgCleanSignatures = true; 03268 03270 $wgAllowExternalImages = false; 03271 03284 $wgAllowExternalImagesFrom = ''; 03285 03294 $wgEnableImageWhitelist = true; 03295 03304 $wgAllowImageTag = false; 03305 03321 $wgUseTidy = false; 03323 $wgAlwaysUseTidy = false; 03325 $wgTidyBin = 'tidy'; 03327 $wgTidyConf = $IP.'/includes/tidy.conf'; 03329 $wgTidyOpts = ''; 03331 $wgTidyInternal = extension_loaded( 'tidy' ); 03332 03337 $wgDebugTidy = false; 03338 03343 $wgRawHtml = false; 03344 03348 $wgExternalLinkTarget = false; 03349 03356 $wgNoFollowLinks = true; 03357 03362 $wgNoFollowNsExceptions = array(); 03363 03375 $wgNoFollowDomainExceptions = array(); 03376 03380 $wgAllowDisplayTitle = true; 03381 03386 $wgRestrictDisplayTitle = true; 03387 03392 $wgExpensiveParserFunctionLimit = 100; 03393 03398 $wgPreprocessorCacheThreshold = 1000; 03399 03403 $wgEnableScaryTranscluding = false; 03404 03408 $wgTranscludeCacheExpiry = 3600; 03409 # end of parser settings } 03411 03412 /************************************************************************/ 03437 $wgArticleCountMethod = null; 03438 03443 $wgUseCommaCount = false; 03444 03452 $wgHitcounterUpdateFreq = 1; 03453 03460 $wgActiveUserDays = 30; 03461 # End of statistics } 03463 03464 /************************************************************************/ 03470 $wgPasswordSalt = true; 03471 03476 $wgMinimalPasswordLength = 1; 03477 03484 $wgPasswordResetRoutes = array( 03485 'username' => true, 03486 'email' => false, 03487 ); 03488 03492 $wgMaxSigChars = 255; 03493 03498 $wgMaxNameChars = 255; 03499 03504 $wgReservedUsernames = array( 03505 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages 03506 'Conversion script', // Used for the old Wikipedia software upgrade 03507 'Maintenance script', // Maintenance scripts which perform editing, image import script 03508 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade 03509 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php 03510 'msg:double-redirect-fixer', // Automatic double redirect fix 03511 'msg:usermessage-editor', // Default user for leaving user messages 03512 'msg:proxyblocker', // For Special:Blockme 03513 ); 03514 03522 $wgDefaultUserOptions = array( 03523 'ccmeonemails' => 0, 03524 'cols' => 80, 03525 'date' => 'default', 03526 'diffonly' => 0, 03527 'disablemail' => 0, 03528 'disablesuggest' => 0, 03529 'editfont' => 'default', 03530 'editondblclick' => 0, 03531 'editsection' => 1, 03532 'editsectiononrightclick' => 0, 03533 'enotifminoredits' => 0, 03534 'enotifrevealaddr' => 0, 03535 'enotifusertalkpages' => 1, 03536 'enotifwatchlistpages' => 0, 03537 'extendwatchlist' => 0, 03538 'externaldiff' => 0, 03539 'externaleditor' => 0, 03540 'fancysig' => 0, 03541 'forceeditsummary' => 0, 03542 'gender' => 'unknown', 03543 'hideminor' => 0, 03544 'hidepatrolled' => 0, 03545 'imagesize' => 2, 03546 'justify' => 0, 03547 'math' => 1, 03548 'minordefault' => 0, 03549 'newpageshidepatrolled' => 0, 03550 'nocache' => 0, 03551 'noconvertlink' => 0, 03552 'norollbackdiff' => 0, 03553 'numberheadings' => 0, 03554 'previewonfirst' => 0, 03555 'previewontop' => 1, 03556 'quickbar' => 5, 03557 'rcdays' => 7, 03558 'rclimit' => 50, 03559 'rememberpassword' => 0, 03560 'rows' => 25, 03561 'searchlimit' => 20, 03562 'showhiddencats' => 0, 03563 'showjumplinks' => 1, 03564 'shownumberswatching' => 1, 03565 'showtoc' => 1, 03566 'showtoolbar' => 1, 03567 'skin' => false, 03568 'stubthreshold' => 0, 03569 'thumbsize' => 2, 03570 'underline' => 2, 03571 'uselivepreview' => 0, 03572 'usenewrc' => 0, 03573 'watchcreations' => 0, 03574 'watchdefault' => 0, 03575 'watchdeletion' => 0, 03576 'watchlistdays' => 3.0, 03577 'watchlisthideanons' => 0, 03578 'watchlisthidebots' => 0, 03579 'watchlisthideliu' => 0, 03580 'watchlisthideminor' => 0, 03581 'watchlisthideown' => 0, 03582 'watchlisthidepatrolled' => 0, 03583 'watchmoves' => 0, 03584 'wllimit' => 250, 03585 ); 03586 03592 $wgAllowRealName = true; 03593 03595 $wgHiddenPrefs = array(); 03596 03602 $wgInvalidUsernameCharacters = '@'; 03603 03613 $wgUserrightsInterwikiDelimiter = '@'; 03614 03626 $wgExternalAuthType = null; 03627 03635 $wgExternalAuthConf = array(); 03636 03645 $wgAutocreatePolicy = 'login'; 03646 03670 $wgAllowPrefChange = array(); 03671 03678 $wgSecureLogin = false; 03679 # end user accounts } 03681 03682 /************************************************************************/ 03690 $wgAutoblockExpiry = 86400; 03691 03695 $wgBlockAllowsUTEdit = false; 03696 03698 $wgSysopEmailBans = true; 03699 03714 $wgBlockCIDRLimit = array( 03715 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed 03716 'IPv6' => 19, 03717 ); 03718 03726 $wgBlockDisablesLogin = false; 03727 03745 $wgWhitelistRead = false; 03746 03751 $wgEmailConfirmToEdit = false; 03752 03777 $wgGroupPermissions = array(); 03778 03780 // Implicit group for all visitors 03781 $wgGroupPermissions['*']['createaccount'] = true; 03782 $wgGroupPermissions['*']['read'] = true; 03783 $wgGroupPermissions['*']['edit'] = true; 03784 $wgGroupPermissions['*']['createpage'] = true; 03785 $wgGroupPermissions['*']['createtalk'] = true; 03786 $wgGroupPermissions['*']['writeapi'] = true; 03787 //$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled 03788 03789 // Implicit group for all logged-in accounts 03790 $wgGroupPermissions['user']['move'] = true; 03791 $wgGroupPermissions['user']['move-subpages'] = true; 03792 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages 03793 $wgGroupPermissions['user']['movefile'] = true; 03794 $wgGroupPermissions['user']['read'] = true; 03795 $wgGroupPermissions['user']['edit'] = true; 03796 $wgGroupPermissions['user']['createpage'] = true; 03797 $wgGroupPermissions['user']['createtalk'] = true; 03798 $wgGroupPermissions['user']['writeapi'] = true; 03799 $wgGroupPermissions['user']['upload'] = true; 03800 $wgGroupPermissions['user']['reupload'] = true; 03801 $wgGroupPermissions['user']['reupload-shared'] = true; 03802 $wgGroupPermissions['user']['minoredit'] = true; 03803 $wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok" 03804 $wgGroupPermissions['user']['sendemail'] = true; 03805 03806 // Implicit group for accounts that pass $wgAutoConfirmAge 03807 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true; 03808 03809 // Users with bot privilege can have their edits hidden 03810 // from various log pages by default 03811 $wgGroupPermissions['bot']['bot'] = true; 03812 $wgGroupPermissions['bot']['autoconfirmed'] = true; 03813 $wgGroupPermissions['bot']['nominornewtalk'] = true; 03814 $wgGroupPermissions['bot']['autopatrol'] = true; 03815 $wgGroupPermissions['bot']['suppressredirect'] = true; 03816 $wgGroupPermissions['bot']['apihighlimits'] = true; 03817 $wgGroupPermissions['bot']['writeapi'] = true; 03818 #$wgGroupPermissions['bot']['editprotected'] = true; // can edit all protected pages without cascade protection enabled 03819 03820 // Most extra permission abilities go to this group 03821 $wgGroupPermissions['sysop']['block'] = true; 03822 $wgGroupPermissions['sysop']['createaccount'] = true; 03823 $wgGroupPermissions['sysop']['delete'] = true; 03824 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs 03825 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text 03826 $wgGroupPermissions['sysop']['deletedtext'] = true; // can view deleted revision text 03827 $wgGroupPermissions['sysop']['undelete'] = true; 03828 $wgGroupPermissions['sysop']['editinterface'] = true; 03829 $wgGroupPermissions['sysop']['editusercss'] = true; 03830 $wgGroupPermissions['sysop']['edituserjs'] = true; 03831 $wgGroupPermissions['sysop']['import'] = true; 03832 $wgGroupPermissions['sysop']['importupload'] = true; 03833 $wgGroupPermissions['sysop']['move'] = true; 03834 $wgGroupPermissions['sysop']['move-subpages'] = true; 03835 $wgGroupPermissions['sysop']['move-rootuserpages'] = true; 03836 $wgGroupPermissions['sysop']['patrol'] = true; 03837 $wgGroupPermissions['sysop']['autopatrol'] = true; 03838 $wgGroupPermissions['sysop']['protect'] = true; 03839 $wgGroupPermissions['sysop']['proxyunbannable'] = true; 03840 $wgGroupPermissions['sysop']['rollback'] = true; 03841 $wgGroupPermissions['sysop']['upload'] = true; 03842 $wgGroupPermissions['sysop']['reupload'] = true; 03843 $wgGroupPermissions['sysop']['reupload-shared'] = true; 03844 $wgGroupPermissions['sysop']['unwatchedpages'] = true; 03845 $wgGroupPermissions['sysop']['autoconfirmed'] = true; 03846 $wgGroupPermissions['sysop']['ipblock-exempt'] = true; 03847 $wgGroupPermissions['sysop']['blockemail'] = true; 03848 $wgGroupPermissions['sysop']['markbotedits'] = true; 03849 $wgGroupPermissions['sysop']['apihighlimits'] = true; 03850 $wgGroupPermissions['sysop']['browsearchive'] = true; 03851 $wgGroupPermissions['sysop']['noratelimit'] = true; 03852 $wgGroupPermissions['sysop']['movefile'] = true; 03853 $wgGroupPermissions['sysop']['unblockself'] = true; 03854 $wgGroupPermissions['sysop']['suppressredirect'] = true; 03855 #$wgGroupPermissions['sysop']['upload_by_url'] = true; 03856 #$wgGroupPermissions['sysop']['mergehistory'] = true; 03857 03858 // Permission to change users' group assignments 03859 $wgGroupPermissions['bureaucrat']['userrights'] = true; 03860 $wgGroupPermissions['bureaucrat']['noratelimit'] = true; 03861 // Permission to change users' groups assignments across wikis 03862 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true; 03863 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth 03864 #$wgGroupPermissions['bureaucrat']['override-export-depth'] = true; 03865 03866 #$wgGroupPermissions['sysop']['deletelogentry'] = true; 03867 #$wgGroupPermissions['sysop']['deleterevision'] = true; 03868 // To hide usernames from users and Sysops 03869 #$wgGroupPermissions['suppress']['hideuser'] = true; 03870 // To hide revisions/log items from users and Sysops 03871 #$wgGroupPermissions['suppress']['suppressrevision'] = true; 03872 // For private suppression log access 03873 #$wgGroupPermissions['suppress']['suppressionlog'] = true; 03874 03881 # $wgGroupPermissions['developer']['siteadmin'] = true; 03882 03894 $wgRevokePermissions = array(); 03895 03899 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' ); 03900 03923 $wgGroupsAddToSelf = array(); 03924 03926 $wgGroupsRemoveFromSelf = array(); 03927 03935 $wgRestrictionTypes = array( 'create', 'edit', 'move', 'upload' ); 03936 03947 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' ); 03948 03956 $wgNamespaceProtection = array(); 03957 03967 $wgNonincludableNamespaces = array(); 03968 03989 $wgAutoConfirmAge = 0; 03990 04000 $wgAutoConfirmCount = 0; 04001 04025 $wgAutopromote = array( 04026 'autoconfirmed' => array( '&', 04027 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ), 04028 array( APCOND_AGE, &$wgAutoConfirmAge ), 04029 ), 04030 ); 04031 04051 $wgAutopromoteOnce = array( 04052 'onEdit' => array(), 04053 'onView' => array() 04054 ); 04055 04060 $wgAutopromoteOnceLogInRC = true; 04061 04084 $wgAddGroups = array(); 04086 $wgRemoveGroups = array(); 04087 04092 $wgAvailableRights = array(); 04093 04098 $wgDeleteRevisionsLimit = 0; 04099 04104 $wgAccountCreationThrottle = 0; 04105 04117 $wgSpamRegex = array(); 04118 04120 $wgSummarySpamRegex = array(); 04121 04127 $wgEnableDnsBlacklist = false; 04128 04133 $wgEnableSorbs = false; 04134 04158 $wgDnsBlacklistUrls = array( 'http.dnsbl.sorbs.net.' ); 04159 04164 $wgSorbsUrl = array(); 04165 04170 $wgProxyWhitelist = array(); 04171 04192 $wgRateLimits = array( 04193 'edit' => array( 04194 'anon' => null, // for any and all anonymous edits (aggregate) 04195 'user' => null, // for each logged-in user 04196 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user' 04197 'ip' => null, // for each anon and recent account 04198 'subnet' => null, // ... with final octet removed 04199 ), 04200 'move' => array( 04201 'user' => null, 04202 'newbie' => null, 04203 'ip' => null, 04204 'subnet' => null, 04205 ), 04206 'mailpassword' => array( 04207 'anon' => null, 04208 ), 04209 'emailuser' => array( 04210 'user' => null, 04211 ), 04212 ); 04213 04217 $wgRateLimitLog = null; 04218 04223 $wgRateLimitsExcludedIPs = array(); 04224 04229 $wgPutIPinRC = true; 04230 04235 $wgQueryPageDefaultLimit = 50; 04236 04242 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 ); 04243 # end of user rights settings 04245 04246 /************************************************************************/ 04260 $wgBlockOpenProxies = false; 04262 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 ); 04264 $wgProxyScriptPath = "$IP/maintenance/proxy_check.php"; 04266 $wgProxyMemcExpiry = 86400; 04268 $wgSecretKey = false; 04270 $wgProxyList = array(); 04272 $wgProxyKey = false; 04273 # end of proxy scanner settings 04275 04276 /************************************************************************/ 04284 $wgCookieExpiration = 180*86400; 04285 04290 $wgCookieDomain = ''; 04291 04292 04297 $wgCookiePath = '/'; 04298 04305 $wgCookieSecure = 'detect'; 04306 04313 $wgDisableCookieCheck = false; 04314 04320 $wgCookiePrefix = false; 04321 04327 $wgCookieHttpOnly = true; 04328 04333 $wgHttpOnlyBlacklist = array( 04334 // Internet Explorer for Mac; sometimes the cookies work, sometimes 04335 // they don't. It's difficult to predict, as combinations of path 04336 // and expiration options affect its parsing. 04337 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/', 04338 ); 04339 04341 $wgCacheVaryCookies = array(); 04342 04344 $wgSessionName = false; 04345 # end of cookie settings } 04347 04348 /************************************************************************/ 04359 $wgUseTeX = false; 04360 04361 /* @} */ # end LaTeX } 04362 04363 /************************************************************************/ 04376 $wgDebugLogFile = ''; 04377 04381 $wgDebugLogPrefix = ''; 04382 04388 $wgDebugRedirects = false; 04389 04395 $wgDebugRawPage = false; 04396 04405 $wgDebugComments = false; 04406 04412 $wgDebugDBTransactions = false; 04413 04417 $wgDebugDumpSql = false; 04418 04425 $wgDebugLogGroups = array(); 04426 04432 $wgShowDebug = false; 04433 04438 $wgDebugTimestamps = false; 04439 04443 $wgDebugPrintHttpHeaders = true; 04444 04448 $wgSpecialVersionShowHooks = false; 04449 04455 $wgShowSQLErrors = false; 04456 04463 $wgShowExceptionDetails = false; 04464 04468 $wgShowDBErrorBacktrace = false; 04469 04473 $wgLogExceptionBacktrace = true; 04474 04478 $wgShowHostnames = false; 04479 04485 $wgOverrideHostname = false; 04486 04491 $wgDevelopmentWarnings = false; 04492 04498 $wgDeprecationReleaseLimit = false; 04499 04501 $wgProfileLimit = 0.0; 04502 04504 $wgProfileOnly = false; 04505 04514 $wgProfileToDatabase = false; 04515 04517 $wgProfileCallTree = false; 04518 04520 $wgProfilePerHost = false; 04521 04528 $wgUDPProfilerHost = '127.0.0.1'; 04529 04534 $wgUDPProfilerPort = '3811'; 04535 04537 $wgDebugProfiling = false; 04538 04540 $wgDebugFunctionEntry = false; 04541 04548 $wgStatsMethod = 'cache'; 04549 04556 $wgAggregateStatsID = false; 04557 04561 $wgDisableCounters = false; 04562 04569 $wgSiteStatsAsyncFactor = false; 04570 04580 $wgParserTestFiles = array( 04581 "$IP/tests/parser/parserTests.txt", 04582 "$IP/tests/parser/extraParserTests.txt" 04583 ); 04584 04598 $wgParserTestRemote = false; 04599 04603 $wgEnableJavaScriptTest = false; 04604 04608 $wgJavaScriptTestConfig = array( 04609 'qunit' => array( 04610 // Page where documentation can be found relevant to the QUnit test suite being ran. 04611 // Used in the intro paragraph on [[Special:JavaScriptTest/qunit]] for the 04612 // documentation link in the "javascripttest-qunit-intro" message. 04613 'documentation' => '//www.mediawiki.org/wiki/Manual:JavaScript_unit_testing', 04614 // If you are submitting the QUnit test suite to a TestSwarm instance, 04615 // point this to the "inject.js" script of that instance. This is was registers 04616 // the QUnit hooks to extract the test results and push them back up into the 04617 // TestSwarm database. 04618 // @example 'http://localhost/testswarm/js/inject.js' 04619 // @example '//integration.mediawiki.org/testswarm/js/inject.js' 04620 'testswarm-injectjs' => false, 04621 ), 04622 ); 04623 04624 04629 $wgCachePrefix = false; 04630 04638 $wgDebugToolbar = false; 04639 # end of profiling, testing and debugging } 04641 04642 /************************************************************************/ 04650 $wgDisableTextSearch = false; 04651 04656 $wgAdvancedSearchHighlighting = false; 04657 04662 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]'; 04663 04674 $wgCountTotalSearchHits = false; 04675 04685 $wgOpenSearchTemplate = false; 04686 04693 $wgEnableOpenSearchSuggest = true; 04694 04698 $wgSearchSuggestCacheExpiry = 1200; 04699 04704 $wgDisableSearchUpdate = false; 04705 04715 $wgNamespacesToBeSearchedDefault = array( 04716 NS_MAIN => true, 04717 ); 04718 04725 $wgNamespacesToBeSearchedHelp = array( 04726 NS_PROJECT => true, 04727 NS_HELP => true, 04728 ); 04729 04737 $wgSearchEverythingOnlyLoggedIn = false; 04738 04743 $wgDisableInternalSearch = false; 04744 04760 $wgSearchForwardUrl = null; 04761 04767 $wgUseTwoButtonsSearchForm = true; 04768 04774 $wgSitemapNamespaces = false; 04775 04790 $wgSitemapNamespacesPriorities = false; 04791 04797 $wgEnableSearchContributorsByIP = true; 04798 # end of search settings 04800 04801 /************************************************************************/ 04810 $wgDiff3 = '/usr/bin/diff3'; 04811 04815 $wgDiff = '/usr/bin/diff'; 04816 04822 $wgPreviewOnOpenNamespaces = array( 04823 NS_CATEGORY => true 04824 ); 04825 04830 $wgUseExternalEditor = true; 04831 04833 $wgGoToEdit = false; 04834 04840 $wgUniversalEditButton = true; 04841 04847 $wgUseAutomaticEditSummaries = true; 04848 # end edit UI } 04850 04851 /************************************************************************/ 04861 if( !isset( $wgCommandLineMode ) ) { 04862 $wgCommandLineMode = false; 04863 } 04867 $wgCommandLineDarkBg = false; 04868 04874 $wgMaintenanceScripts = array(); 04875 04884 $wgReadOnly = null; 04885 04893 $wgReadOnlyFile = false; 04894 04904 $wgUpgradeKey = false; 04905 04917 $wgGitRepositoryViewers = array( 04918 'https://gerrit.wikimedia.org/r/p/(.*)' => 'https://gerrit.wikimedia.org/r/gitweb?p=$1;h=%H', 04919 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' => 'https://gerrit.wikimedia.org/r/gitweb?p=$1;h=%H', 04920 ); 04921 # End of maintenance } 04923 04924 /************************************************************************/ 04934 $wgRCMaxAge = 13 * 7 * 24 * 3600; 04935 04943 $wgRCFilterByAge = false; 04944 04949 $wgRCLinkLimits = array( 50, 100, 250, 500 ); 04950 $wgRCLinkDays = array( 1, 3, 7, 14, 30 ); 04951 04956 $wgRC2UDPAddress = false; 04957 04961 $wgRC2UDPPort = false; 04962 04969 $wgRC2UDPPrefix = ''; 04970 04975 $wgRC2UDPInterwikiPrefix = false; 04976 04981 $wgRC2UDPOmitBots = false; 04982 04988 $wgEnableNewpagesUserFilter = true; 04989 04991 $wgUseRCPatrol = true; 04992 04994 $wgUseNPPatrol = true; 04995 04997 $wgFeed = true; 04998 05001 $wgFeedLimit = 50; 05002 05010 $wgFeedCacheTimeout = 60; 05011 05014 $wgFeedDiffCutoff = 32768; 05015 05027 $wgOverrideSiteFeed = array(); 05028 05034 $wgFeedClasses = array( 05035 'rss' => 'RSSFeed', 05036 'atom' => 'AtomFeed', 05037 ); 05038 05043 $wgAdvertisedFeedTypes = array( 'atom' ); 05044 05046 $wgRCShowWatchingUsers = false; # UPO 05048 $wgPageShowWatchingUsers = false; 05050 $wgRCShowChangedSize = true; 05051 05057 $wgRCChangedSizeThreshold = 500; 05058 05062 $wgShowUpdatedMarker = true; 05063 05068 $wgDisableAnonTalk = false; 05069 05073 $wgAllowCategorizedRecentChanges = false; 05074 05079 $wgUseTagFilter = true; 05080 # end RC/watchlist } 05082 05083 /************************************************************************/ 05095 $wgRightsPage = null; 05096 05101 $wgRightsUrl = null; 05102 05108 $wgRightsText = null; 05109 05113 $wgRightsIcon = null; 05114 05118 $wgLicenseTerms = false; 05119 05124 $wgCopyrightIcon = null; 05125 05127 $wgUseCopyrightUpload = false; 05128 05136 $wgMaxCredits = 0; 05137 05140 $wgShowCreditsIfMax = true; 05141 # end of copyright and credits settings } 05143 05144 /************************************************************************/ 05157 $wgImportSources = array(); 05158 05166 $wgImportTargetNamespace = null; 05167 05173 $wgExportAllowHistory = true; 05174 05180 $wgExportMaxHistory = 0; 05181 05185 $wgExportAllowListContributors = false; 05186 05198 $wgExportMaxLinkDepth = 0; 05199 05203 $wgExportFromNamespaces = false; 05204 05208 $wgExportAllowAll = false; 05209 # end of import/export } 05211 05212 /*************************************************************************/ 05221 $wgExtensionFunctions = array(); 05222 05239 $wgExtensionMessagesFiles = array(); 05240 05255 $wgParserOutputHooks = array(); 05256 05266 $wgValidSkinNames = array(); 05267 05272 $wgSpecialPages = array(); 05273 05277 $wgAutoloadClasses = array(); 05278 05300 $wgExtensionCredits = array(); 05301 05306 $wgAuth = null; 05307 05335 $wgHooks = array(); 05336 05341 $wgJobClasses = array( 05342 'refreshLinks' => 'RefreshLinksJob', 05343 'refreshLinks2' => 'RefreshLinksJob2', 05344 'htmlCacheUpdate' => 'HTMLCacheUpdateJob', 05345 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible 05346 'sendMail' => 'EmaillingJob', 05347 'enotifNotify' => 'EnotifNotifyJob', 05348 'fixDoubleRedirect' => 'DoubleRedirectJob', 05349 'uploadFromUrl' => 'UploadFromUrlJob', 05350 ); 05351 05362 $wgJobTypesExcludedFromDefaultQueue = array(); 05363 05368 $wgSpecialPageCacheUpdates = array( 05369 'Statistics' => array( 'SiteStatsUpdate', 'cacheUpdate' ) 05370 ); 05371 05379 $wgExceptionHooks = array(); 05380 05388 $wgPagePropLinkInvalidations = array( 05389 'hiddencat' => 'categorylinks', 05390 ); 05391 # End extensions } 05393 05394 /*************************************************************************/ 05402 $wgUseCategoryBrowser = false; 05403 05408 $wgCategoryMagicGallery = true; 05409 05413 $wgCategoryPagingLimit = 200; 05414 05440 $wgCategoryCollation = 'uppercase'; 05441 # End categories } 05443 05444 /*************************************************************************/ 05455 $wgLogTypes = array( 05456 '', 05457 'block', 05458 'protect', 05459 'rights', 05460 'delete', 05461 'upload', 05462 'move', 05463 'import', 05464 'patrol', 05465 'merge', 05466 'suppress', 05467 ); 05468 05476 $wgLogRestrictions = array( 05477 'suppress' => 'suppressionlog' 05478 ); 05479 05502 $wgFilterLogTypes = array( 05503 'patrol' => true 05504 ); 05505 05515 $wgLogNames = array( 05516 '' => 'all-logs-page', 05517 'block' => 'blocklogpage', 05518 'protect' => 'protectlogpage', 05519 'rights' => 'rightslog', 05520 'delete' => 'dellogpage', 05521 'upload' => 'uploadlogpage', 05522 'move' => 'movelogpage', 05523 'import' => 'importlogpage', 05524 'patrol' => 'patrol-log-page', 05525 'merge' => 'mergelog', 05526 'suppress' => 'suppressionlog', 05527 ); 05528 05538 $wgLogHeaders = array( 05539 '' => 'alllogstext', 05540 'block' => 'blocklogtext', 05541 'protect' => 'protectlogtext', 05542 'rights' => 'rightslogtext', 05543 'delete' => 'dellogpagetext', 05544 'upload' => 'uploadlogpagetext', 05545 'move' => 'movelogpagetext', 05546 'import' => 'importlogpagetext', 05547 'patrol' => 'patrol-log-header', 05548 'merge' => 'mergelogpagetext', 05549 'suppress' => 'suppressionlogtext', 05550 ); 05551 05558 $wgLogActions = array( 05559 'block/block' => 'blocklogentry', 05560 'block/unblock' => 'unblocklogentry', 05561 'block/reblock' => 'reblock-logentry', 05562 'protect/protect' => 'protectedarticle', 05563 'protect/modify' => 'modifiedarticleprotection', 05564 'protect/unprotect' => 'unprotectedarticle', 05565 'protect/move_prot' => 'movedarticleprotection', 05566 'rights/rights' => 'rightslogentry', 05567 'rights/autopromote' => 'rightslogentry-autopromote', 05568 'upload/upload' => 'uploadedimage', 05569 'upload/overwrite' => 'overwroteimage', 05570 'upload/revert' => 'uploadedimage', 05571 'import/upload' => 'import-logentry-upload', 05572 'import/interwiki' => 'import-logentry-interwiki', 05573 'merge/merge' => 'pagemerge-logentry', 05574 'suppress/block' => 'blocklogentry', 05575 'suppress/reblock' => 'reblock-logentry', 05576 ); 05577 05584 $wgLogActionsHandlers = array( 05585 'move/move' => 'MoveLogFormatter', 05586 'move/move_redir' => 'MoveLogFormatter', 05587 'delete/delete' => 'DeleteLogFormatter', 05588 'delete/restore' => 'DeleteLogFormatter', 05589 'delete/revision' => 'DeleteLogFormatter', 05590 'delete/event' => 'DeleteLogFormatter', 05591 'suppress/revision' => 'DeleteLogFormatter', 05592 'suppress/event' => 'DeleteLogFormatter', 05593 'suppress/delete' => 'DeleteLogFormatter', 05594 'patrol/patrol' => 'PatrolLogFormatter', 05595 ); 05596 05600 $wgNewUserLog = true; 05601 # end logging } 05603 05604 /*************************************************************************/ 05612 $wgAllowSpecialInclusion = true; 05613 05618 $wgDisableQueryPageUpdate = false; 05619 05624 $wgSpecialPageGroups = array( 05625 'DoubleRedirects' => 'maintenance', 05626 'BrokenRedirects' => 'maintenance', 05627 'Lonelypages' => 'maintenance', 05628 'Uncategorizedpages' => 'maintenance', 05629 'Uncategorizedcategories' => 'maintenance', 05630 'Uncategorizedimages' => 'maintenance', 05631 'Uncategorizedtemplates' => 'maintenance', 05632 'Unusedcategories' => 'maintenance', 05633 'Unusedimages' => 'maintenance', 05634 'Protectedpages' => 'maintenance', 05635 'Protectedtitles' => 'maintenance', 05636 'Unusedtemplates' => 'maintenance', 05637 'Withoutinterwiki' => 'maintenance', 05638 'Longpages' => 'maintenance', 05639 'Shortpages' => 'maintenance', 05640 'Ancientpages' => 'maintenance', 05641 'Deadendpages' => 'maintenance', 05642 'Wantedpages' => 'maintenance', 05643 'Wantedcategories' => 'maintenance', 05644 'Wantedfiles' => 'maintenance', 05645 'Wantedtemplates' => 'maintenance', 05646 'Unwatchedpages' => 'maintenance', 05647 'Fewestrevisions' => 'maintenance', 05648 05649 'Userlogin' => 'login', 05650 'Userlogout' => 'login', 05651 'CreateAccount' => 'login', 05652 05653 'Recentchanges' => 'changes', 05654 'Recentchangeslinked' => 'changes', 05655 'Watchlist' => 'changes', 05656 'Newimages' => 'changes', 05657 'Newpages' => 'changes', 05658 'Log' => 'changes', 05659 'Tags' => 'changes', 05660 05661 'Upload' => 'media', 05662 'Listfiles' => 'media', 05663 'MIMEsearch' => 'media', 05664 'FileDuplicateSearch' => 'media', 05665 'Filepath' => 'media', 05666 05667 'Listusers' => 'users', 05668 'Activeusers' => 'users', 05669 'Listgrouprights' => 'users', 05670 'BlockList' => 'users', 05671 'Contributions' => 'users', 05672 'Emailuser' => 'users', 05673 'Listadmins' => 'users', 05674 'Listbots' => 'users', 05675 'Userrights' => 'users', 05676 'Block' => 'users', 05677 'Unblock' => 'users', 05678 'Preferences' => 'users', 05679 'ChangeEmail' => 'users', 05680 'ChangePassword' => 'users', 05681 'DeletedContributions' => 'users', 05682 'PasswordReset' => 'users', 05683 05684 'Mostlinked' => 'highuse', 05685 'Mostlinkedcategories' => 'highuse', 05686 'Mostlinkedtemplates' => 'highuse', 05687 'Mostcategories' => 'highuse', 05688 'Mostimages' => 'highuse', 05689 'Mostinterwikis' => 'highuse', 05690 'Mostrevisions' => 'highuse', 05691 05692 'Allpages' => 'pages', 05693 'Prefixindex' => 'pages', 05694 'Listredirects' => 'pages', 05695 'Categories' => 'pages', 05696 'Disambiguations' => 'pages', 05697 05698 'Randompage' => 'redirects', 05699 'Randomredirect' => 'redirects', 05700 'Mypage' => 'redirects', 05701 'Mytalk' => 'redirects', 05702 'Mycontributions' => 'redirects', 05703 'Search' => 'redirects', 05704 'LinkSearch' => 'redirects', 05705 05706 'ComparePages' => 'pagetools', 05707 'Movepage' => 'pagetools', 05708 'MergeHistory' => 'pagetools', 05709 'Revisiondelete' => 'pagetools', 05710 'Undelete' => 'pagetools', 05711 'Export' => 'pagetools', 05712 'Import' => 'pagetools', 05713 'Whatlinkshere' => 'pagetools', 05714 05715 'Statistics' => 'wiki', 05716 'Version' => 'wiki', 05717 'Lockdb' => 'wiki', 05718 'Unlockdb' => 'wiki', 05719 'Allmessages' => 'wiki', 05720 'Popularpages' => 'wiki', 05721 05722 'Specialpages' => 'other', 05723 'Blockme' => 'other', 05724 'Booksources' => 'other', 05725 'JavaScriptTest' => 'other', 05726 ); 05727 05730 $wgSortSpecialPages = true; 05731 05736 $wgCountCategorizedImagesAsUsed = false; 05737 05742 $wgMaxRedirectLinksRetrieved = 500; 05743 # end special pages } 05745 05746 /*************************************************************************/ 05761 $wgActions = array( 05762 'credits' => true, 05763 'delete' => true, 05764 'edit' => true, 05765 'history' => true, 05766 'info' => true, 05767 'markpatrolled' => true, 05768 'protect' => true, 05769 'purge' => true, 05770 'raw' => true, 05771 'render' => true, 05772 'revert' => true, 05773 'revisiondelete' => true, 05774 'rollback' => true, 05775 'submit' => true, 05776 'unprotect' => true, 05777 'unwatch' => true, 05778 'view' => true, 05779 'watch' => true, 05780 ); 05781 05786 $wgDisabledActions = array(); 05787 # end actions } 05789 05790 /*************************************************************************/ 05801 $wgDefaultRobotPolicy = 'index,follow'; 05802 05817 $wgNamespaceRobotPolicies = array(); 05818 05845 $wgArticleRobotPolicies = array(); 05846 05857 $wgExemptFromUserRobotsControl = null; 05858 # End robot policy } 05860 05861 /************************************************************************/ 05875 $wgEnableAPI = true; 05876 05882 $wgEnableWriteAPI = true; 05883 05890 $wgAPIModules = array(); 05891 $wgAPIMetaModules = array(); 05892 $wgAPIPropModules = array(); 05893 $wgAPIListModules = array(); 05894 05899 $wgAPIMaxDBRows = 5000; 05900 05905 $wgAPIMaxResultSize = 8388608; 05906 05911 $wgAPIMaxUncachedDiffs = 1; 05912 05917 $wgAPIRequestLog = false; 05918 05922 $wgAPICacheHelpTimeout = 60*60; 05923 05927 $wgUseAjax = true; 05928 05933 $wgAjaxExportList = array(); 05934 05939 $wgAjaxWatch = true; 05940 05944 $wgAjaxUploadDestCheck = true; 05945 05949 $wgAjaxLicensePreview = true; 05950 05971 $wgCrossSiteAJAXdomains = array(); 05972 05979 $wgCrossSiteAJAXdomainExceptions = array(); 05980 # End AJAX and API } 05982 05983 /************************************************************************/ 05991 $wgMaxShellMemory = 102400; 05992 05997 $wgMaxShellFileSize = 102400; 05998 06002 $wgMaxShellTime = 180; 06003 06007 $wgPhpCli = '/usr/bin/php'; 06008 06014 $wgShellLocale = 'en_US.utf8'; 06015 # End shell } 06017 06018 /************************************************************************/ 06026 $wgHTTPTimeout = 25; 06027 06031 $wgAsyncHTTPTimeout = 25; 06032 06036 $wgHTTPProxy = false; 06037 # End HTTP client } 06039 06040 /************************************************************************/ 06052 $wgJobRunRate = 1; 06053 06057 $wgUpdateRowsPerJob = 500; 06058 06062 $wgUpdateRowsPerQuery = 100; 06063 # End job queue } 06065 06066 /************************************************************************/ 06075 $wgHipHopBuildDirectory = false; 06076 06080 $wgHipHopBuildType = 'Debug'; 06081 06086 $wgHipHopCompilerProcs = 'detect'; 06087 06100 $wgExtensionsDirectory = false; 06101 06112 $wgCompiledFiles = array(); 06113 # End of HipHop compilation } 06115 06116 06117 /************************************************************************/ 06126 $wgDeviceDetectionClass = 'DeviceDetection'; 06127 # End of Mobile support } 06129 06130 /************************************************************************/ 06136 $wgExternalDiffEngine = false; 06137 06146 $wgDisableHardRedirects = false; 06147 06152 $wgLinkHolderBatchSize = 1000; 06153 06158 $wgRegisterInternalExternals = false; 06159 06163 $wgMaximumMovedPages = 100; 06164 06169 $wgFixDoubleRedirects = false; 06170 06175 $wgRedirectOnLogin = null; 06176 06197 $wgPoolCounterConf = null; 06198 06202 $wgUploadMaintenance = false; 06203 06207 $wgEnableSelenium = false; 06208 $wgSeleniumTestConfigs = array(); 06209 $wgSeleniumConfigFile = null; 06210 $wgDBtestuser = ''; //db user that has permission to create and drop the test databases only 06211 $wgDBtestpassword = ''; 06212 06218 $wgRequirePasswordforEmailChange = true; 06219