MediaWiki
master
|
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.21alpha'; 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 00427 $wgLocalFileRepo = false; 00428 00430 $wgForeignFileRepos = array(); 00431 00437 $wgUseInstantCommons = false; 00438 00450 $wgFileBackends = array(); 00451 00459 $wgLockManagers = array(); 00460 00473 $wgShowEXIF = function_exists( 'exif_read_data' ); 00474 00480 $wgUpdateCompatibleMetadata = false; 00481 00495 $wgUseSharedUploads = false; 00496 00498 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images"; 00499 00501 $wgFetchCommonsDescriptions = false; 00502 00504 $wgSharedUploadDirectory = "/var/www/wiki3/images"; 00505 00507 $wgSharedUploadDBname = false; 00508 00510 $wgSharedUploadDBprefix = ''; 00511 00513 $wgCacheSharedUploads = true; 00514 00520 $wgAllowCopyUploads = false; 00521 00526 $wgAllowAsyncCopyUploads = false; 00527 00533 $wgCopyUploadsDomains = array(); 00534 00540 $wgCopyUploadsFromSpecialUpload = false; 00541 00546 $wgCopyUploadProxy = false; 00547 00565 $wgMaxUploadSize = 1024*1024*100; # 100MB 00566 00577 $wgUploadNavigationUrl = false; 00578 00584 $wgUploadMissingFileUrl = false; 00585 00597 $wgThumbnailScriptPath = false; 00601 $wgSharedThumbnailScriptPath = false; 00602 00616 $wgHashedUploadDirectory = true; 00617 00623 $wgHashedSharedUploadDirectory = true; 00624 00633 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:"; 00634 00643 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' ); 00644 00650 $wgFileBlacklist = array( 00651 # HTML may contain cookie-stealing JavaScript and web bugs 00652 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht', 00653 # PHP scripts may execute arbitrary code on the server 00654 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 00655 # Other types that may be interpreted by some servers 00656 'shtml', 'jhtml', 'pl', 'py', 'cgi', 00657 # May contain harmful executables for Windows victims 00658 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ); 00659 00664 $wgMimeTypeBlacklist = array( 00665 # HTML may contain cookie-stealing JavaScript and web bugs 00666 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript', 00667 # PHP scripts may execute arbitrary code on the server 00668 'application/x-php', 'text/x-php', 00669 # Other types that may be interpreted by some servers 00670 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh', 00671 # Client-side hazards on Internet Explorer 00672 'text/scriptlet', 'application/x-msdownload', 00673 # Windows metafile, client-side vulnerability on some systems 00674 'application/x-msmetafile', 00675 ); 00676 00682 $wgAllowJavaUploads = false; 00683 00689 $wgCheckFileExtensions = true; 00690 00697 $wgStrictFileExtensions = true; 00698 00705 $wgDisableUploadScriptChecks = false; 00706 00710 $wgUploadSizeWarning = false; 00711 00722 $wgTrustedMediaFormats = array( 00723 MEDIATYPE_BITMAP, //all bitmap formats 00724 MEDIATYPE_AUDIO, //all audio formats 00725 MEDIATYPE_VIDEO, //all plain video formats 00726 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported) 00727 "application/pdf", //PDF files 00728 #"application/x-shockwave-flash", //flash/shockwave movie 00729 ); 00730 00735 $wgMediaHandlers = array( 00736 'image/jpeg' => 'JpegHandler', 00737 'image/png' => 'PNGHandler', 00738 'image/gif' => 'GIFHandler', 00739 'image/tiff' => 'TiffHandler', 00740 'image/x-ms-bmp' => 'BmpHandler', 00741 'image/x-bmp' => 'BmpHandler', 00742 'image/x-xcf' => 'XCFHandler', 00743 'image/svg+xml' => 'SvgHandler', // official 00744 'image/svg' => 'SvgHandler', // compat 00745 'image/vnd.djvu' => 'DjVuHandler', // official 00746 'image/x.djvu' => 'DjVuHandler', // compat 00747 'image/x-djvu' => 'DjVuHandler', // compat 00748 ); 00749 00756 $wgContentHandlers = array( 00757 // the usual case 00758 CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler', 00759 // dumb version, no syntax highlighting 00760 CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler', 00761 // dumb version, no syntax highlighting 00762 CONTENT_MODEL_CSS => 'CssContentHandler', 00763 // plain text, for use by extensions etc 00764 CONTENT_MODEL_TEXT => 'TextContentHandler', 00765 ); 00766 00775 $wgUseImageMagick = false; 00777 $wgImageMagickConvertCommand = '/usr/bin/convert'; 00779 $wgImageMagickIdentifyCommand = '/usr/bin/identify'; 00780 00782 $wgSharpenParameter = '0x0.4'; 00783 00785 $wgSharpenReductionThreshold = 0.85; 00786 00791 $wgImageMagickTempDir = false; 00792 00805 $wgCustomConvertCommand = false; 00806 00811 $wgExiv2Command = '/usr/bin/exiv2'; 00812 00822 $wgSVGConverters = array( 00823 'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output', 00824 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output', 00825 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output', 00826 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input', 00827 'rsvg' => '$path/rsvg -w$width -h$height $input $output', 00828 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output', 00829 'ImagickExt' => array( 'SvgHandler::rasterizeImagickExt' ), 00830 ); 00831 00833 $wgSVGConverter = 'ImageMagick'; 00834 00836 $wgSVGConverterPath = ''; 00837 00839 $wgSVGMaxSize = 2048; 00840 00844 $wgSVGMetadataCutoff = 262144; 00845 00857 $wgAllowTitlesInSVG = false; 00858 00872 $wgMaxImageArea = 1.25e7; 00879 $wgMaxAnimatedGifArea = 1.25e7; 00893 $wgTiffThumbnailType = false; 00894 00901 $wgThumbnailEpoch = '20030516000000'; 00902 00914 $wgIgnoreImageErrors = false; 00915 00923 $wgGenerateThumbnailOnParse = true; 00924 00928 $wgShowArchiveThumbnails = true; 00929 00931 $wgUseImageResize = true; 00932 00938 $wgEnableAutoRotation = null; 00939 00945 $wgAntivirus = null; 00946 00981 $wgAntivirusSetup = array( 00982 00983 #setup for clamav 00984 'clamav' => array ( 00985 'command' => "clamscan --no-summary ", 00986 00987 'codemap' => array ( 00988 "0" => AV_NO_VIRUS, # no virus 00989 "1" => AV_VIRUS_FOUND, # virus found 00990 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune) 00991 "*" => AV_SCAN_FAILED, # else scan failed 00992 ), 00993 00994 'messagepattern' => '/.*?:(.*)/sim', 00995 ), 00996 ); 00997 00998 01000 $wgAntivirusRequired = true; 01001 01003 $wgVerifyMimeType = true; 01004 01006 $wgMimeTypeFile = "includes/mime.types"; 01007 #$wgMimeTypeFile= "/etc/mime.types"; 01008 #$wgMimeTypeFile= null; #use built-in defaults only. 01009 01011 $wgMimeInfoFile= "includes/mime.info"; 01012 #$wgMimeInfoFile= null; #use built-in defaults only. 01013 01019 $wgLoadFileinfoExtension = false; 01020 01031 $wgMimeDetectorCommand = null; 01032 01038 $wgTrivialMimeDetection = false; 01039 01044 $wgXMLMimeTypes = array( 01045 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml', 01046 'svg' => 'image/svg+xml', 01047 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram', 01048 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml? 01049 'html' => 'text/html', // application/xhtml+xml? 01050 ); 01051 01060 $wgImageLimits = array( 01061 array( 320, 240 ), 01062 array( 640, 480 ), 01063 array( 800, 600 ), 01064 array( 1024, 768 ), 01065 array( 1280, 1024 ) 01066 ); 01067 01073 $wgThumbLimits = array( 01074 120, 01075 150, 01076 180, 01077 200, 01078 250, 01079 300 01080 ); 01081 01085 $wgGalleryOptions = array ( 01086 'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize 01087 'imageWidth' => 120, // Width of the cells containing images in galleries (in "px") 01088 'imageHeight' => 120, // Height of the cells containing images in galleries (in "px") 01089 'captionLength' => 25, // Length of caption to truncate (in characters) 01090 'showBytes' => true, // Show the filesize in bytes in categories 01091 ); 01092 01098 $wgThumbUpright = 0.75; 01099 01103 $wgDirectoryMode = 0777; 01104 01113 $wgResponsiveImages = true; 01114 01123 # $wgDjvuDump = 'djvudump'; 01124 $wgDjvuDump = null; 01125 01130 # $wgDjvuRenderer = 'ddjvu'; 01131 $wgDjvuRenderer = null; 01132 01137 # $wgDjvuTxt = 'djvutxt'; 01138 $wgDjvuTxt = null; 01139 01154 $wgDjvuToXML = null; 01155 01161 $wgDjvuPostProcessor = 'pnmtojpeg'; 01165 $wgDjvuOutputExtension = 'jpg'; # end of DJvu } 01167 # end of file uploads } 01169 01170 /************************************************************************/ 01175 $serverName = substr( $wgServer, strrpos( $wgServer, '/' ) + 1 ); 01176 01180 $wgEmergencyContact = 'wikiadmin@' . $serverName; 01181 01187 $wgPasswordSender = 'apache@' . $serverName; 01188 01189 unset( $serverName ); # Don't leak local variables to global scope 01190 01194 $wgPasswordSenderName = 'MediaWiki Mail'; 01195 01201 $wgNoReplyAddress = '[email protected]'; 01202 01208 $wgEnableEmail = true; 01209 01214 $wgEnableUserEmail = true; 01215 01224 $wgUserEmailUseReplyTo = false; 01225 01230 $wgPasswordReminderResendTime = 24; 01231 01235 $wgNewPasswordExpiry = 3600 * 24 * 7; 01236 01240 $wgUserEmailConfirmationTokenExpiry = 7 * 24 * 60 * 60; 01241 01259 $wgSMTP = false; 01260 01265 $wgAdditionalMailParams = null; 01266 01271 $wgEnotifFromEditor = false; 01272 01273 // TODO move UPO to preferences probably ? 01274 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion 01275 # If set to false, the corresponding input form on the user preference page is suppressed 01276 # It call this to be a "user-preferences-option (UPO)" 01277 01283 $wgEmailAuthentication = true; 01284 01288 $wgEnotifWatchlist = false; 01289 01294 $wgEnotifUserTalk = false; 01295 01300 $wgEnotifRevealEditorAddress = false; 01301 01306 $wgEnotifMinorEdits = true; 01307 01315 $wgEnotifImpersonal = false; 01316 01321 $wgEnotifMaxRecips = 500; 01322 01327 $wgEnotifUseJobQ = false; 01328 01332 $wgEnotifUseRealName = false; 01333 01338 $wgUsersNotifiedOnAllChanges = array(); 01339 01340 # end of email settings 01342 01343 /************************************************************************//** 01344 * @name Database settings 01345 * @{ 01346 */ 01348 $wgDBserver = 'localhost'; 01350 $wgDBport = 5432; 01352 $wgDBname = 'my_wiki'; 01354 $wgDBuser = 'wikiuser'; 01356 $wgDBpassword = ''; 01358 $wgDBtype = 'mysql'; 01360 $wgDBssl = false; 01362 $wgDBcompress = false; 01363 01365 $wgDBadminuser = null; 01367 $wgDBadminpassword = null; 01368 01375 $wgSearchType = null; 01376 01378 $wgDBprefix = ''; 01380 $wgDBTableOptions = 'ENGINE=InnoDB'; 01381 01388 $wgSQLMode = ''; 01389 01391 $wgDBmwschema = 'mediawiki'; 01392 01394 $wgSQLiteDataDir = ''; 01395 01401 $wgAllDBsAreLocalhost = false; 01402 01425 $wgSharedDB = null; 01426 01428 $wgSharedPrefix = false; 01430 $wgSharedTables = array( 'user', 'user_properties' ); 01431 01478 $wgDBservers = false; 01479 01490 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' ); 01491 01493 $wgMasterWaitTimeout = 10; 01494 01496 $wgDBerrorLog = false; 01497 01516 $wgDBerrorLogTZ = false; 01517 01519 $wgDBClusterTimeout = 10; 01520 01526 $wgDBAvgStatusPoll = 2000; 01527 01544 $wgDBmysql5 = false; 01545 01551 $wgLocalDatabases = array(); 01552 01558 $wgSlaveLagWarning = 10; 01560 $wgSlaveLagCritical = 30; 01561 01565 $wgOldChangeTagsIndex = false; 01566 # End of DB settings } 01568 01569 01570 /************************************************************************//** 01571 * @name Text storage 01572 * @{ 01573 */ 01574 01581 $wgCompressRevisions = false; 01582 01594 $wgExternalStores = false; 01595 01610 $wgExternalServers = array(); 01611 01626 $wgDefaultExternalStore = false; 01627 01634 $wgRevisionCacheExpiry = 0; 01635 # end text storage } 01637 01638 /************************************************************************//** 01639 * @name Performance hacks and limits 01640 * @{ 01641 */ 01643 $wgMiserMode = false; 01645 $wgDisableQueryPages = false; 01647 $wgQueryCacheLimit = 1000; 01649 $wgWantedPagesThreshold = 1; 01651 $wgAllowSlowParserFunctions = false; 01653 $wgAllowSchemaUpdates = true; 01654 01658 $wgUseDumbLinkUpdate = false; 01659 01667 $wgAntiLockFlags = 0; 01668 01672 $wgMaxArticleSize = 2048; 01673 01678 $wgMemoryLimit = "50M"; 01679 # end performance hacks } 01681 01682 /************************************************************************//** 01683 * @name Cache settings 01684 * @{ 01685 */ 01686 01695 $wgCacheDirectory = false; 01696 01717 $wgMainCacheType = CACHE_NONE; 01718 01725 $wgMessageCacheType = CACHE_ANYTHING; 01726 01733 $wgParserCacheType = CACHE_ANYTHING; 01734 01740 $wgSessionCacheType = CACHE_ANYTHING; 01741 01750 $wgLanguageConverterCacheType = CACHE_ANYTHING; 01751 01769 $wgObjectCaches = array( 01770 CACHE_NONE => array( 'class' => 'EmptyBagOStuff' ), 01771 CACHE_DB => array( 'class' => 'SqlBagOStuff', 'table' => 'objectcache' ), 01772 CACHE_DBA => array( 'class' => 'DBABagOStuff' ), 01773 01774 CACHE_ANYTHING => array( 'factory' => 'ObjectCache::newAnything' ), 01775 CACHE_ACCEL => array( 'factory' => 'ObjectCache::newAccelerator' ), 01776 CACHE_MEMCACHED => array( 'factory' => 'ObjectCache::newMemcached' ), 01777 01778 'apc' => array( 'class' => 'APCBagOStuff' ), 01779 'xcache' => array( 'class' => 'XCacheBagOStuff' ), 01780 'wincache' => array( 'class' => 'WinCacheBagOStuff' ), 01781 'memcached-php' => array( 'class' => 'MemcachedPhpBagOStuff' ), 01782 'memcached-pecl' => array( 'class' => 'MemcachedPeclBagOStuff' ), 01783 'hash' => array( 'class' => 'HashBagOStuff' ), 01784 ); 01785 01790 $wgParserCacheExpireTime = 86400; 01791 01796 $wgDBAhandler = 'db3'; 01797 01803 $wgSessionsInMemcached = false; 01804 01811 $wgSessionsInObjectCache = false; 01812 01817 $wgObjectCacheSessionExpiry = 3600; 01818 01825 $wgSessionHandler = null; 01826 01828 $wgMemCachedDebug = false; 01829 01831 $wgMemCachedServers = array( '127.0.0.1:11000' ); 01832 01837 $wgMemCachedPersistent = false; 01838 01842 $wgMemCachedTimeout = 500000; 01843 01848 $wgUseLocalMessageCache = false; 01849 01855 $wgLocalMessageCacheSerialized = true; 01856 01863 $wgAdaptiveMessageCache = false; 01864 01885 $wgLocalisationCacheConf = array( 01886 'class' => 'LocalisationCache', 01887 'store' => 'detect', 01888 'storeClass' => false, 01889 'storeDirectory' => false, 01890 'manualRecache' => false, 01891 ); 01892 01894 $wgCachePages = true; 01895 01904 $wgCacheEpoch = '20030516000000'; 01905 01913 $wgStyleVersion = '303'; 01914 01922 $wgUseFileCache = false; 01923 01930 $wgFileCacheDepth = 2; 01931 01941 $wgEnableParserCache = true; 01942 01947 $wgRenderHashAppend = ''; 01948 01958 $wgEnableSidebarCache = false; 01959 01963 $wgSidebarCacheExpiry = 86400; 01964 01971 $wgUseGzip = false; 01972 01977 $wgUseETag = false; 01978 01984 $wgClockSkewFudge = 5; 01985 01995 $wgInvalidateCacheOnLocalSettingsChange = true; 01996 # end of cache settings 01998 01999 /************************************************************************//** 02000 * @name HTTP proxy (Squid) settings 02001 * 02002 * Many of these settings apply to any HTTP proxy used in front of MediaWiki, 02003 * although they are referred to as Squid settings for historical reasons. 02004 * 02005 * Achieving a high hit ratio with an HTTP proxy requires special 02006 * configuration. See http://www.mediawiki.org/wiki/Manual:Squid_caching for 02007 * more details. 02008 * 02009 * @{ 02010 */ 02011 02016 $wgUseSquid = false; 02017 02019 $wgUseESI = false; 02020 02022 $wgUseXVO = false; 02023 02031 $wgVaryOnXFP = false; 02032 02041 $wgInternalServer = false; 02042 02049 $wgSquidMaxage = 18000; 02050 02054 $wgForcedRawSMaxage = 300; 02055 02064 $wgSquidServers = array(); 02065 02070 $wgSquidServersNoPurge = array(); 02071 02073 $wgMaxSquidPurgeTitles = 400; 02074 02094 $wgSquidPurgeUseHostHeader = true; 02095 02125 $wgHTCPMulticastRouting = array(); 02126 02140 $wgHTCPMulticastAddress = false; 02141 02147 $wgHTCPPort = 4827; 02148 02153 $wgHTCPMulticastTTL = 1; 02154 02156 $wgUsePrivateIPs = false; 02157 # end of HTTP proxy settings 02159 02160 /************************************************************************//** 02161 * @name Language, regional and character encoding settings 02162 * @{ 02163 */ 02164 02166 $wgLanguageCode = 'en'; 02167 02177 $wgGrammarForms = array(); 02178 02180 $wgInterwikiMagic = true; 02181 02183 $wgHideInterlanguageLinks = false; 02184 02186 $wgExtraLanguageNames = array(); 02187 02194 $wgDummyLanguageCodes = array( 02195 'als' => 'gsw', 02196 'bat-smg' => 'sgs', 02197 'be-x-old' => 'be-tarask', 02198 'bh' => 'bho', 02199 'fiu-vro' => 'vro', 02200 'no' => 'nb', 02201 'qqq' => 'qqq', # Used for message documentation. 02202 'qqx' => 'qqx', # Used for viewing message keys. 02203 'roa-rup' => 'rup', 02204 'simple' => 'en', 02205 'zh-classical' => 'lzh', 02206 'zh-min-nan' => 'nan', 02207 'zh-yue' => 'yue', 02208 ); 02209 02217 $wgEditEncoding = ''; 02218 02227 $wgFixArabicUnicode = true; 02228 02238 $wgFixMalayalamUnicode = true; 02239 02250 $wgAllUnicodeFixes = false; 02251 02262 $wgLegacyEncoding = false; 02263 02269 $wgBrowserBlackList = array( 02280 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02281 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02282 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02283 02296 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/', 02297 02302 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/' 02303 ); 02304 02320 $wgLegacySchemaConversion = false; 02321 02326 $wgUseDynamicDates = false; 02331 $wgAmericanDates = false; 02336 $wgTranslateNumerals = true; 02337 02342 $wgUseDatabaseMessages = true; 02343 02347 $wgMsgCacheExpiry = 86400; 02348 02352 $wgMaxMsgCacheEntrySize = 10000; 02353 02355 $wgDisableLangConversion = false; 02356 02358 $wgDisableTitleConversion = false; 02359 02361 $wgCanonicalLanguageLinks = true; 02362 02364 $wgDefaultLanguageVariant = false; 02365 02375 $wgDisabledVariants = array(); 02376 02394 $wgVariantArticlePath = false; 02395 02401 $wgLoginLanguageSelector = false; 02402 02422 $wgForceUIMsgAsContentMsg = array(); 02423 02447 $wgLocaltimezone = null; 02448 02458 $wgLocalTZoffset = null; 02459 02468 $wgBug34832TransitionalRollback = true; 02469 02470 # End of language/charset settings 02472 02473 /*************************************************************************//** 02474 * @name Output format and skin settings 02475 * @{ 02476 */ 02477 02479 $wgMimeType = 'text/html'; 02480 02487 $wgJsMimeType = 'text/javascript'; 02488 02493 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN'; 02494 02500 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'; 02501 02507 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml'; 02508 02515 $wgHtml5 = true; 02516 02525 $wgHtml5Version = null; 02526 02531 $wgAllowRdfaAttributes = false; 02532 02536 $wgAllowMicrodataAttributes = false; 02537 02541 $wgCleanupPresentationalAttributes = true; 02542 02559 $wgWellFormedXml = true; 02560 02576 $wgXhtmlNamespaces = array(); 02577 02583 $wgShowIPinHeader = true; 02584 02592 $wgSiteNotice = ''; 02593 02597 $wgExtraSubtitle = ''; 02598 02602 $wgSiteSupportPage = ''; 02603 02608 $wgValidateAllHtml = false; 02609 02616 $wgDefaultSkin = 'vector'; 02617 02623 $wgSkipSkin = ''; 02625 $wgSkipSkins = array(); 02626 02639 $wgHandheldStyle = false; 02640 02651 $wgHandheldForIPhone = false; 02652 02658 $wgAllowUserJs = false; 02659 02665 $wgAllowUserCss = false; 02666 02672 $wgAllowUserCssPrefs = true; 02673 02675 $wgUseSiteJs = true; 02676 02678 $wgUseSiteCss = true; 02679 02684 $wgBreakFrames = false; 02685 02705 $wgEditPageFrameOptions = 'DENY'; 02706 02717 $wgApiFrameOptions = 'DENY'; 02718 02722 $wgDisableOutputCompression = false; 02723 02733 $wgExperimentalHtmlIds = false; 02734 02763 $wgFooterIcons = array( 02764 "copyright" => array( 02765 "copyright" => array(), // placeholder for the built in copyright icon 02766 ), 02767 "poweredby" => array( 02768 "mediawiki" => array( 02769 "src" => null, // Defaults to "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" 02770 "url" => "//www.mediawiki.org/", 02771 "alt" => "Powered by MediaWiki", 02772 ) 02773 ), 02774 ); 02775 02782 $wgUseCombinedLoginLink = false; 02783 02789 $wgVectorCombineUserTalk = false; 02790 02796 $wgVectorUseSimpleSearch = true; 02797 02803 $wgVectorUseIconWatch = false; 02804 02808 $wgEdititis = false; 02809 02816 $wgBetterDirectionality = true; 02817 02829 $wgSend404Code = true; 02830 02831 02839 $wgShowRollbackEditCount = 10; 02840 # End of output format settings } 02842 02843 /*************************************************************************/ 02865 $wgResourceModules = array(); 02866 02880 $wgResourceLoaderSources = array(); 02881 02886 $wgResourceBasePath = null; 02887 02893 $wgResourceLoaderMaxage = array( 02894 'versioned' => array( 02895 // Squid/Varnish but also any other public proxy cache between the client and MediaWiki 02896 'server' => 30 * 24 * 60 * 60, // 30 days 02897 // On the client side (e.g. in the browser cache). 02898 'client' => 30 * 24 * 60 * 60, // 30 days 02899 ), 02900 'unversioned' => array( 02901 'server' => 5 * 60, // 5 minutes 02902 'client' => 5 * 60, // 5 minutes 02903 ), 02904 ); 02905 02911 $wgResourceLoaderDebug = false; 02912 02918 $wgResourceLoaderUseESI = false; 02919 02924 $wgResourceLoaderMinifierStatementsOnOwnLine = false; 02925 02931 $wgResourceLoaderMinifierMaxLineLength = 1000; 02932 02937 $wgIncludeLegacyJavaScript = true; 02938 02957 $wgPreloadJavaScriptMwUtil = false; 02958 02984 $wgLegacyJavaScriptGlobals = true; 02985 02997 $wgResourceLoaderMaxQueryLength = -1; 02998 03006 $wgResourceLoaderValidateJS = true; 03007 03016 $wgResourceLoaderValidateStaticJS = false; 03017 03023 $wgResourceLoaderExperimentalAsyncLoading = false; 03024 # End of resource loader settings } 03026 03027 03028 /*************************************************************************/ 03037 $wgMetaNamespace = false; 03038 03046 $wgMetaNamespaceTalk = false; 03047 03074 $wgExtraNamespaces = array(); 03075 03082 $wgExtraGenderNamespaces = array(); 03083 03102 $wgNamespaceAliases = array(); 03103 03130 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+"; 03131 03135 $wgLocalInterwiki = false; 03136 03140 $wgInterwikiExpiry = 10800; 03141 03159 $wgInterwikiCache = false; 03166 $wgInterwikiScopes = 3; 03170 $wgInterwikiFallbackSite = 'wiki'; # end of Interwiki caching settings. 03172 03188 $wgRedirectSources = false; 03189 03197 $wgCapitalLinks = true; 03198 03213 $wgCapitalLinkOverrides = array(); 03214 03218 $wgNamespacesWithSubpages = array( 03219 NS_TALK => true, 03220 NS_USER => true, 03221 NS_USER_TALK => true, 03222 NS_PROJECT_TALK => true, 03223 NS_FILE_TALK => true, 03224 NS_MEDIAWIKI => true, 03225 NS_MEDIAWIKI_TALK => true, 03226 NS_TEMPLATE_TALK => true, 03227 NS_HELP_TALK => true, 03228 NS_CATEGORY_TALK => true 03229 ); 03230 03237 $wgContentNamespaces = array( NS_MAIN ); 03238 03244 $wgMaxRedirects = 1; 03245 03256 $wgInvalidRedirectTargets = array( 'Filepath', 'Mypage', 'Mytalk' ); 03257 # End of title and interwiki settings } 03259 03260 /************************************************************************/ 03287 $wgParserConf = array( 03288 'class' => 'Parser', 03289 #'preprocessorClass' => 'Preprocessor_Hash', 03290 ); 03291 03293 $wgMaxTocLevel = 999; 03294 03299 $wgMaxPPNodeCount = 1000000; 03300 03310 $wgMaxGeneratedPPNodeCount = 1000000; 03311 03312 03319 $wgMaxTemplateDepth = 40; 03320 03322 $wgMaxPPExpandDepth = 40; 03323 03325 $wgUrlProtocols = array( 03326 'http://', 03327 'https://', 03328 'ftp://', 03329 'irc://', 03330 'ircs://', // @bug 28503 03331 'gopher://', 03332 'telnet://', // Well if we're going to support the above.. -ævar 03333 'nntp://', // @bug 3808 RFC 1738 03334 'worldwind://', 03335 'mailto:', 03336 'news:', 03337 'svn://', 03338 'git://', 03339 'mms://', 03340 '//', // for protocol-relative URLs 03341 ); 03342 03346 $wgCleanSignatures = true; 03347 03349 $wgAllowExternalImages = false; 03350 03363 $wgAllowExternalImagesFrom = ''; 03364 03373 $wgEnableImageWhitelist = true; 03374 03383 $wgAllowImageTag = false; 03384 03400 $wgUseTidy = false; 03402 $wgAlwaysUseTidy = false; 03404 $wgTidyBin = 'tidy'; 03406 $wgTidyConf = $IP.'/includes/tidy.conf'; 03408 $wgTidyOpts = ''; 03410 $wgTidyInternal = extension_loaded( 'tidy' ); 03411 03416 $wgDebugTidy = false; 03417 03422 $wgRawHtml = false; 03423 03427 $wgExternalLinkTarget = false; 03428 03435 $wgNoFollowLinks = true; 03436 03441 $wgNoFollowNsExceptions = array(); 03442 03454 $wgNoFollowDomainExceptions = array(); 03455 03459 $wgAllowDisplayTitle = true; 03460 03465 $wgRestrictDisplayTitle = true; 03466 03471 $wgExpensiveParserFunctionLimit = 100; 03472 03477 $wgPreprocessorCacheThreshold = 1000; 03478 03482 $wgEnableScaryTranscluding = false; 03483 03487 $wgTranscludeCacheExpiry = 3600; 03488 # end of parser settings } 03490 03491 /************************************************************************/ 03516 $wgArticleCountMethod = null; 03517 03522 $wgUseCommaCount = false; 03523 03531 $wgHitcounterUpdateFreq = 1; 03532 03539 $wgActiveUserDays = 30; 03540 # End of statistics } 03542 03543 /************************************************************************/ 03549 $wgPasswordSalt = true; 03550 03555 $wgMinimalPasswordLength = 1; 03556 03563 $wgPasswordResetRoutes = array( 03564 'username' => true, 03565 'email' => false, 03566 ); 03567 03571 $wgMaxSigChars = 255; 03572 03577 $wgMaxNameChars = 255; 03578 03583 $wgReservedUsernames = array( 03584 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages 03585 'Conversion script', // Used for the old Wikipedia software upgrade 03586 'Maintenance script', // Maintenance scripts which perform editing, image import script 03587 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade 03588 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php 03589 'msg:double-redirect-fixer', // Automatic double redirect fix 03590 'msg:usermessage-editor', // Default user for leaving user messages 03591 'msg:proxyblocker', // For Special:Blockme 03592 ); 03593 03601 $wgDefaultUserOptions = array( 03602 'ccmeonemails' => 0, 03603 'cols' => 80, 03604 'date' => 'default', 03605 'diffonly' => 0, 03606 'disablemail' => 0, 03607 'disablesuggest' => 0, 03608 'editfont' => 'default', 03609 'editondblclick' => 0, 03610 'editsection' => 1, 03611 'editsectiononrightclick' => 0, 03612 'enotifminoredits' => 0, 03613 'enotifrevealaddr' => 0, 03614 'enotifusertalkpages' => 1, 03615 'enotifwatchlistpages' => 0, 03616 'extendwatchlist' => 0, 03617 'externaldiff' => 0, 03618 'externaleditor' => 0, 03619 'fancysig' => 0, 03620 'forceeditsummary' => 0, 03621 'gender' => 'unknown', 03622 'hideminor' => 0, 03623 'hidepatrolled' => 0, 03624 'imagesize' => 2, 03625 'justify' => 0, 03626 'math' => 1, 03627 'minordefault' => 0, 03628 'newpageshidepatrolled' => 0, 03629 'nocache' => 0, 03630 'noconvertlink' => 0, 03631 'norollbackdiff' => 0, 03632 'numberheadings' => 0, 03633 'previewonfirst' => 0, 03634 'previewontop' => 1, 03635 'quickbar' => 5, 03636 'rcdays' => 7, 03637 'rclimit' => 50, 03638 'rememberpassword' => 0, 03639 'rows' => 25, 03640 'searchlimit' => 20, 03641 'showhiddencats' => 0, 03642 'showjumplinks' => 1, 03643 'shownumberswatching' => 1, 03644 'showtoc' => 1, 03645 'showtoolbar' => 1, 03646 'skin' => false, 03647 'stubthreshold' => 0, 03648 'thumbsize' => 2, 03649 'underline' => 2, 03650 'uselivepreview' => 0, 03651 'usenewrc' => 0, 03652 'watchcreations' => 0, 03653 'watchdefault' => 0, 03654 'watchdeletion' => 0, 03655 'watchlistdays' => 3.0, 03656 'watchlisthideanons' => 0, 03657 'watchlisthidebots' => 0, 03658 'watchlisthideliu' => 0, 03659 'watchlisthideminor' => 0, 03660 'watchlisthideown' => 0, 03661 'watchlisthidepatrolled' => 0, 03662 'watchmoves' => 0, 03663 'wllimit' => 250, 03664 ); 03665 03667 $wgHiddenPrefs = array(); 03668 03674 $wgInvalidUsernameCharacters = '@'; 03675 03685 $wgUserrightsInterwikiDelimiter = '@'; 03686 03698 $wgExternalAuthType = null; 03699 03707 $wgExternalAuthConf = array(); 03708 03717 $wgAutocreatePolicy = 'login'; 03718 03742 $wgAllowPrefChange = array(); 03743 03750 $wgSecureLogin = false; 03751 # end user accounts } 03753 03754 /************************************************************************/ 03762 $wgAutoblockExpiry = 86400; 03763 03767 $wgBlockAllowsUTEdit = false; 03768 03770 $wgSysopEmailBans = true; 03771 03786 $wgBlockCIDRLimit = array( 03787 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed 03788 'IPv6' => 19, 03789 ); 03790 03798 $wgBlockDisablesLogin = false; 03799 03817 $wgWhitelistRead = false; 03818 03823 $wgEmailConfirmToEdit = false; 03824 03849 $wgGroupPermissions = array(); 03850 03852 // Implicit group for all visitors 03853 $wgGroupPermissions['*']['createaccount'] = true; 03854 $wgGroupPermissions['*']['read'] = true; 03855 $wgGroupPermissions['*']['edit'] = true; 03856 $wgGroupPermissions['*']['createpage'] = true; 03857 $wgGroupPermissions['*']['createtalk'] = true; 03858 $wgGroupPermissions['*']['writeapi'] = true; 03859 //$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled 03860 03861 // Implicit group for all logged-in accounts 03862 $wgGroupPermissions['user']['move'] = true; 03863 $wgGroupPermissions['user']['move-subpages'] = true; 03864 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages 03865 $wgGroupPermissions['user']['movefile'] = true; 03866 $wgGroupPermissions['user']['read'] = true; 03867 $wgGroupPermissions['user']['edit'] = true; 03868 $wgGroupPermissions['user']['createpage'] = true; 03869 $wgGroupPermissions['user']['createtalk'] = true; 03870 $wgGroupPermissions['user']['writeapi'] = true; 03871 $wgGroupPermissions['user']['upload'] = true; 03872 $wgGroupPermissions['user']['reupload'] = true; 03873 $wgGroupPermissions['user']['reupload-shared'] = true; 03874 $wgGroupPermissions['user']['minoredit'] = true; 03875 $wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok" 03876 $wgGroupPermissions['user']['sendemail'] = true; 03877 03878 // Implicit group for accounts that pass $wgAutoConfirmAge 03879 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true; 03880 03881 // Users with bot privilege can have their edits hidden 03882 // from various log pages by default 03883 $wgGroupPermissions['bot']['bot'] = true; 03884 $wgGroupPermissions['bot']['autoconfirmed'] = true; 03885 $wgGroupPermissions['bot']['nominornewtalk'] = true; 03886 $wgGroupPermissions['bot']['autopatrol'] = true; 03887 $wgGroupPermissions['bot']['suppressredirect'] = true; 03888 $wgGroupPermissions['bot']['apihighlimits'] = true; 03889 $wgGroupPermissions['bot']['writeapi'] = true; 03890 #$wgGroupPermissions['bot']['editprotected'] = true; // can edit all protected pages without cascade protection enabled 03891 03892 // Most extra permission abilities go to this group 03893 $wgGroupPermissions['sysop']['block'] = true; 03894 $wgGroupPermissions['sysop']['createaccount'] = true; 03895 $wgGroupPermissions['sysop']['delete'] = true; 03896 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs 03897 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text 03898 $wgGroupPermissions['sysop']['deletedtext'] = true; // can view deleted revision text 03899 $wgGroupPermissions['sysop']['undelete'] = true; 03900 $wgGroupPermissions['sysop']['editinterface'] = true; 03901 $wgGroupPermissions['sysop']['editusercss'] = true; 03902 $wgGroupPermissions['sysop']['edituserjs'] = true; 03903 $wgGroupPermissions['sysop']['import'] = true; 03904 $wgGroupPermissions['sysop']['importupload'] = true; 03905 $wgGroupPermissions['sysop']['move'] = true; 03906 $wgGroupPermissions['sysop']['move-subpages'] = true; 03907 $wgGroupPermissions['sysop']['move-rootuserpages'] = true; 03908 $wgGroupPermissions['sysop']['patrol'] = true; 03909 $wgGroupPermissions['sysop']['autopatrol'] = true; 03910 $wgGroupPermissions['sysop']['protect'] = true; 03911 $wgGroupPermissions['sysop']['proxyunbannable'] = true; 03912 $wgGroupPermissions['sysop']['rollback'] = true; 03913 $wgGroupPermissions['sysop']['upload'] = true; 03914 $wgGroupPermissions['sysop']['reupload'] = true; 03915 $wgGroupPermissions['sysop']['reupload-shared'] = true; 03916 $wgGroupPermissions['sysop']['unwatchedpages'] = true; 03917 $wgGroupPermissions['sysop']['autoconfirmed'] = true; 03918 $wgGroupPermissions['sysop']['ipblock-exempt'] = true; 03919 $wgGroupPermissions['sysop']['blockemail'] = true; 03920 $wgGroupPermissions['sysop']['markbotedits'] = true; 03921 $wgGroupPermissions['sysop']['apihighlimits'] = true; 03922 $wgGroupPermissions['sysop']['browsearchive'] = true; 03923 $wgGroupPermissions['sysop']['noratelimit'] = true; 03924 $wgGroupPermissions['sysop']['movefile'] = true; 03925 $wgGroupPermissions['sysop']['unblockself'] = true; 03926 $wgGroupPermissions['sysop']['suppressredirect'] = true; 03927 #$wgGroupPermissions['sysop']['upload_by_url'] = true; 03928 #$wgGroupPermissions['sysop']['mergehistory'] = true; 03929 03930 // Permission to change users' group assignments 03931 $wgGroupPermissions['bureaucrat']['userrights'] = true; 03932 $wgGroupPermissions['bureaucrat']['noratelimit'] = true; 03933 // Permission to change users' groups assignments across wikis 03934 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true; 03935 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth 03936 #$wgGroupPermissions['bureaucrat']['override-export-depth'] = true; 03937 03938 #$wgGroupPermissions['sysop']['deletelogentry'] = true; 03939 #$wgGroupPermissions['sysop']['deleterevision'] = true; 03940 // To hide usernames from users and Sysops 03941 #$wgGroupPermissions['suppress']['hideuser'] = true; 03942 // To hide revisions/log items from users and Sysops 03943 #$wgGroupPermissions['suppress']['suppressrevision'] = true; 03944 // For private suppression log access 03945 #$wgGroupPermissions['suppress']['suppressionlog'] = true; 03946 03953 # $wgGroupPermissions['developer']['siteadmin'] = true; 03954 03966 $wgRevokePermissions = array(); 03967 03971 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' ); 03972 03995 $wgGroupsAddToSelf = array(); 03996 03998 $wgGroupsRemoveFromSelf = array(); 03999 04007 $wgRestrictionTypes = array( 'create', 'edit', 'move', 'upload' ); 04008 04019 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' ); 04020 04028 $wgNamespaceProtection = array(); 04029 04039 $wgNonincludableNamespaces = array(); 04040 04061 $wgAutoConfirmAge = 0; 04062 04072 $wgAutoConfirmCount = 0; 04073 04097 $wgAutopromote = array( 04098 'autoconfirmed' => array( '&', 04099 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ), 04100 array( APCOND_AGE, &$wgAutoConfirmAge ), 04101 ), 04102 ); 04103 04123 $wgAutopromoteOnce = array( 04124 'onEdit' => array(), 04125 'onView' => array() 04126 ); 04127 04132 $wgAutopromoteOnceLogInRC = true; 04133 04156 $wgAddGroups = array(); 04158 $wgRemoveGroups = array(); 04159 04164 $wgAvailableRights = array(); 04165 04170 $wgDeleteRevisionsLimit = 0; 04171 04176 $wgAccountCreationThrottle = 0; 04177 04189 $wgSpamRegex = array(); 04190 04192 $wgSummarySpamRegex = array(); 04193 04199 $wgEnableDnsBlacklist = false; 04200 04205 $wgEnableSorbs = false; 04206 04230 $wgDnsBlacklistUrls = array( 'http.dnsbl.sorbs.net.' ); 04231 04236 $wgSorbsUrl = array(); 04237 04242 $wgProxyWhitelist = array(); 04243 04264 $wgRateLimits = array( 04265 'edit' => array( 04266 'anon' => null, // for any and all anonymous edits (aggregate) 04267 'user' => null, // for each logged-in user 04268 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user' 04269 'ip' => null, // for each anon and recent account 04270 'subnet' => null, // ... with final octet removed 04271 ), 04272 'move' => array( 04273 'user' => null, 04274 'newbie' => null, 04275 'ip' => null, 04276 'subnet' => null, 04277 ), 04278 'mailpassword' => array( 04279 'anon' => null, 04280 ), 04281 'emailuser' => array( 04282 'user' => null, 04283 ), 04284 ); 04285 04289 $wgRateLimitLog = null; 04290 04295 $wgRateLimitsExcludedIPs = array(); 04296 04301 $wgPutIPinRC = true; 04302 04307 $wgQueryPageDefaultLimit = 50; 04308 04314 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 ); 04315 # end of user rights settings 04317 04318 /************************************************************************/ 04332 $wgBlockOpenProxies = false; 04334 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 ); 04336 $wgProxyScriptPath = "$IP/maintenance/proxy_check.php"; 04338 $wgProxyMemcExpiry = 86400; 04340 $wgSecretKey = false; 04341 04351 $wgProxyList = array(); 04352 04356 $wgProxyKey = false; 04357 # end of proxy scanner settings 04359 04360 /************************************************************************/ 04368 $wgCookieExpiration = 180*86400; 04369 04374 $wgCookieDomain = ''; 04375 04376 04381 $wgCookiePath = '/'; 04382 04389 $wgCookieSecure = 'detect'; 04390 04397 $wgDisableCookieCheck = false; 04398 04404 $wgCookiePrefix = false; 04405 04411 $wgCookieHttpOnly = true; 04412 04417 $wgHttpOnlyBlacklist = array( 04418 // Internet Explorer for Mac; sometimes the cookies work, sometimes 04419 // they don't. It's difficult to predict, as combinations of path 04420 // and expiration options affect its parsing. 04421 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/', 04422 ); 04423 04425 $wgCacheVaryCookies = array(); 04426 04428 $wgSessionName = false; 04429 # end of cookie settings } 04431 04432 /************************************************************************/ 04443 $wgUseTeX = false; 04444 04445 /* @} */ # end LaTeX } 04446 04447 /************************************************************************/ 04460 $wgDebugLogFile = ''; 04461 04465 $wgDebugLogPrefix = ''; 04466 04472 $wgDebugRedirects = false; 04473 04479 $wgDebugRawPage = false; 04480 04489 $wgDebugComments = false; 04490 04496 $wgDebugDBTransactions = false; 04497 04501 $wgDebugDumpSql = false; 04502 04509 $wgDebugLogGroups = array(); 04510 04516 $wgShowDebug = false; 04517 04522 $wgDebugTimestamps = false; 04523 04527 $wgDebugPrintHttpHeaders = true; 04528 04532 $wgSpecialVersionShowHooks = false; 04533 04539 $wgShowSQLErrors = false; 04540 04547 $wgShowExceptionDetails = false; 04548 04552 $wgShowDBErrorBacktrace = false; 04553 04557 $wgLogExceptionBacktrace = true; 04558 04562 $wgShowHostnames = false; 04563 04569 $wgOverrideHostname = false; 04570 04575 $wgDevelopmentWarnings = false; 04576 04582 $wgDeprecationReleaseLimit = false; 04583 04585 $wgProfileLimit = 0.0; 04586 04588 $wgProfileOnly = false; 04589 04598 $wgProfileToDatabase = false; 04599 04601 $wgProfileCallTree = false; 04602 04604 $wgProfilePerHost = false; 04605 04612 $wgUDPProfilerHost = '127.0.0.1'; 04613 04618 $wgUDPProfilerPort = '3811'; 04619 04621 $wgDebugProfiling = false; 04622 04624 $wgDebugFunctionEntry = false; 04625 04632 $wgStatsMethod = 'cache'; 04633 04640 $wgAggregateStatsID = false; 04641 04645 $wgDisableCounters = false; 04646 04653 $wgSiteStatsAsyncFactor = false; 04654 04664 $wgParserTestFiles = array( 04665 "$IP/tests/parser/parserTests.txt", 04666 "$IP/tests/parser/extraParserTests.txt" 04667 ); 04668 04682 $wgParserTestRemote = false; 04683 04687 $wgEnableJavaScriptTest = false; 04688 04692 $wgJavaScriptTestConfig = array( 04693 'qunit' => array( 04694 // Page where documentation can be found relevant to the QUnit test suite being ran. 04695 // Used in the intro paragraph on [[Special:JavaScriptTest/qunit]] for the 04696 // documentation link in the "javascripttest-qunit-intro" message. 04697 'documentation' => '//www.mediawiki.org/wiki/Manual:JavaScript_unit_testing', 04698 // If you are submitting the QUnit test suite to a TestSwarm instance, 04699 // point this to the "inject.js" script of that instance. This is was registers 04700 // the QUnit hooks to extract the test results and push them back up into the 04701 // TestSwarm database. 04702 // @example 'http://localhost/testswarm/js/inject.js' 04703 // @example '//integration.mediawiki.org/testswarm/js/inject.js' 04704 'testswarm-injectjs' => false, 04705 ), 04706 ); 04707 04708 04713 $wgCachePrefix = false; 04714 04722 $wgDebugToolbar = false; 04723 # end of profiling, testing and debugging } 04725 04726 /************************************************************************/ 04734 $wgDisableTextSearch = false; 04735 04740 $wgAdvancedSearchHighlighting = false; 04741 04746 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]'; 04747 04758 $wgCountTotalSearchHits = false; 04759 04769 $wgOpenSearchTemplate = false; 04770 04777 $wgEnableOpenSearchSuggest = true; 04778 04782 $wgSearchSuggestCacheExpiry = 1200; 04783 04788 $wgDisableSearchUpdate = false; 04789 04799 $wgNamespacesToBeSearchedDefault = array( 04800 NS_MAIN => true, 04801 ); 04802 04809 $wgNamespacesToBeSearchedHelp = array( 04810 NS_PROJECT => true, 04811 NS_HELP => true, 04812 ); 04813 04821 $wgSearchEverythingOnlyLoggedIn = false; 04822 04827 $wgDisableInternalSearch = false; 04828 04844 $wgSearchForwardUrl = null; 04845 04851 $wgUseTwoButtonsSearchForm = true; 04852 04858 $wgSitemapNamespaces = false; 04859 04874 $wgSitemapNamespacesPriorities = false; 04875 04881 $wgEnableSearchContributorsByIP = true; 04882 # end of search settings 04884 04885 /************************************************************************/ 04894 $wgDiff3 = '/usr/bin/diff3'; 04895 04899 $wgDiff = '/usr/bin/diff'; 04900 04906 $wgPreviewOnOpenNamespaces = array( 04907 NS_CATEGORY => true 04908 ); 04909 04914 $wgUseExternalEditor = true; 04915 04917 $wgGoToEdit = false; 04918 04924 $wgUniversalEditButton = true; 04925 04931 $wgUseAutomaticEditSummaries = true; 04932 # end edit UI } 04934 04935 /************************************************************************/ 04945 if( !isset( $wgCommandLineMode ) ) { 04946 $wgCommandLineMode = false; 04947 } 04951 $wgCommandLineDarkBg = false; 04952 04958 $wgMaintenanceScripts = array(); 04959 04968 $wgReadOnly = null; 04969 04977 $wgReadOnlyFile = false; 04978 04988 $wgUpgradeKey = false; 04989 05001 $wgGitRepositoryViewers = array( 05002 'https://gerrit.wikimedia.org/r/p/(.*)' => 'https://gerrit.wikimedia.org/r/gitweb?p=$1;h=%H', 05003 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' => 'https://gerrit.wikimedia.org/r/gitweb?p=$1;h=%H', 05004 ); 05005 # End of maintenance } 05007 05008 /************************************************************************/ 05018 $wgRCMaxAge = 13 * 7 * 24 * 3600; 05019 05027 $wgRCFilterByAge = false; 05028 05033 $wgRCLinkLimits = array( 50, 100, 250, 500 ); 05034 $wgRCLinkDays = array( 1, 3, 7, 14, 30 ); 05035 05040 $wgRC2UDPAddress = false; 05041 05045 $wgRC2UDPPort = false; 05046 05053 $wgRC2UDPPrefix = ''; 05054 05059 $wgRC2UDPInterwikiPrefix = false; 05060 05065 $wgRC2UDPOmitBots = false; 05066 05072 $wgEnableNewpagesUserFilter = true; 05073 05075 $wgUseRCPatrol = true; 05076 05078 $wgUseNPPatrol = true; 05079 05081 $wgFeed = true; 05082 05085 $wgFeedLimit = 50; 05086 05094 $wgFeedCacheTimeout = 60; 05095 05098 $wgFeedDiffCutoff = 32768; 05099 05111 $wgOverrideSiteFeed = array(); 05112 05118 $wgFeedClasses = array( 05119 'rss' => 'RSSFeed', 05120 'atom' => 'AtomFeed', 05121 ); 05122 05127 $wgAdvertisedFeedTypes = array( 'atom' ); 05128 05130 $wgRCShowWatchingUsers = false; # UPO 05132 $wgPageShowWatchingUsers = false; 05134 $wgRCShowChangedSize = true; 05135 05141 $wgRCChangedSizeThreshold = 500; 05142 05146 $wgShowUpdatedMarker = true; 05147 05152 $wgDisableAnonTalk = false; 05153 05157 $wgAllowCategorizedRecentChanges = false; 05158 05163 $wgUseTagFilter = true; 05164 # end RC/watchlist } 05166 05167 /************************************************************************/ 05179 $wgRightsPage = null; 05180 05185 $wgRightsUrl = null; 05186 05192 $wgRightsText = null; 05193 05197 $wgRightsIcon = null; 05198 05202 $wgLicenseTerms = false; 05203 05208 $wgCopyrightIcon = null; 05209 05211 $wgUseCopyrightUpload = false; 05212 05220 $wgMaxCredits = 0; 05221 05224 $wgShowCreditsIfMax = true; 05225 # end of copyright and credits settings } 05227 05228 /************************************************************************/ 05241 $wgImportSources = array(); 05242 05250 $wgImportTargetNamespace = null; 05251 05257 $wgExportAllowHistory = true; 05258 05264 $wgExportMaxHistory = 0; 05265 05269 $wgExportAllowListContributors = false; 05270 05282 $wgExportMaxLinkDepth = 0; 05283 05287 $wgExportFromNamespaces = false; 05288 05292 $wgExportAllowAll = false; 05293 # end of import/export } 05295 05296 /*************************************************************************/ 05305 $wgExtensionFunctions = array(); 05306 05323 $wgExtensionMessagesFiles = array(); 05324 05339 $wgParserOutputHooks = array(); 05340 05350 $wgValidSkinNames = array(); 05351 05356 $wgSpecialPages = array(); 05357 05361 $wgAutoloadClasses = array(); 05362 05384 $wgExtensionCredits = array(); 05385 05390 $wgAuth = null; 05391 05419 $wgHooks = array(); 05420 05425 $wgJobClasses = array( 05426 'refreshLinks' => 'RefreshLinksJob', 05427 'refreshLinks2' => 'RefreshLinksJob2', 05428 'htmlCacheUpdate' => 'HTMLCacheUpdateJob', 05429 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible 05430 'sendMail' => 'EmaillingJob', 05431 'enotifNotify' => 'EnotifNotifyJob', 05432 'fixDoubleRedirect' => 'DoubleRedirectJob', 05433 'uploadFromUrl' => 'UploadFromUrlJob', 05434 'null' => 'NullJob' 05435 ); 05436 05447 $wgJobTypesExcludedFromDefaultQueue = array(); 05448 05453 $wgJobTypeConf = array( 05454 'default' => array( 'class' => 'JobQueueDB', 'order' => 'random' ), 05455 ); 05456 05461 $wgSpecialPageCacheUpdates = array( 05462 'Statistics' => array( 'SiteStatsUpdate', 'cacheUpdate' ) 05463 ); 05464 05472 $wgExceptionHooks = array(); 05473 05481 $wgPagePropLinkInvalidations = array( 05482 'hiddencat' => 'categorylinks', 05483 ); 05484 # End extensions } 05486 05487 /*************************************************************************/ 05495 $wgUseCategoryBrowser = false; 05496 05501 $wgCategoryMagicGallery = true; 05502 05506 $wgCategoryPagingLimit = 200; 05507 05533 $wgCategoryCollation = 'uppercase'; 05534 # End categories } 05536 05537 /*************************************************************************/ 05548 $wgLogTypes = array( 05549 '', 05550 'block', 05551 'protect', 05552 'rights', 05553 'delete', 05554 'upload', 05555 'move', 05556 'import', 05557 'patrol', 05558 'merge', 05559 'suppress', 05560 ); 05561 05569 $wgLogRestrictions = array( 05570 'suppress' => 'suppressionlog' 05571 ); 05572 05595 $wgFilterLogTypes = array( 05596 'patrol' => true 05597 ); 05598 05608 $wgLogNames = array( 05609 '' => 'all-logs-page', 05610 'block' => 'blocklogpage', 05611 'protect' => 'protectlogpage', 05612 'rights' => 'rightslog', 05613 'delete' => 'dellogpage', 05614 'upload' => 'uploadlogpage', 05615 'move' => 'movelogpage', 05616 'import' => 'importlogpage', 05617 'patrol' => 'patrol-log-page', 05618 'merge' => 'mergelog', 05619 'suppress' => 'suppressionlog', 05620 ); 05621 05631 $wgLogHeaders = array( 05632 '' => 'alllogstext', 05633 'block' => 'blocklogtext', 05634 'protect' => 'protectlogtext', 05635 'rights' => 'rightslogtext', 05636 'delete' => 'dellogpagetext', 05637 'upload' => 'uploadlogpagetext', 05638 'move' => 'movelogpagetext', 05639 'import' => 'importlogpagetext', 05640 'patrol' => 'patrol-log-header', 05641 'merge' => 'mergelogpagetext', 05642 'suppress' => 'suppressionlogtext', 05643 ); 05644 05651 $wgLogActions = array( 05652 'block/block' => 'blocklogentry', 05653 'block/unblock' => 'unblocklogentry', 05654 'block/reblock' => 'reblock-logentry', 05655 'protect/protect' => 'protectedarticle', 05656 'protect/modify' => 'modifiedarticleprotection', 05657 'protect/unprotect' => 'unprotectedarticle', 05658 'protect/move_prot' => 'movedarticleprotection', 05659 'upload/upload' => 'uploadedimage', 05660 'upload/overwrite' => 'overwroteimage', 05661 'upload/revert' => 'uploadedimage', 05662 'import/upload' => 'import-logentry-upload', 05663 'import/interwiki' => 'import-logentry-interwiki', 05664 'merge/merge' => 'pagemerge-logentry', 05665 'suppress/block' => 'blocklogentry', 05666 'suppress/reblock' => 'reblock-logentry', 05667 ); 05668 05675 $wgLogActionsHandlers = array( 05676 'move/move' => 'MoveLogFormatter', 05677 'move/move_redir' => 'MoveLogFormatter', 05678 'delete/delete' => 'DeleteLogFormatter', 05679 'delete/restore' => 'DeleteLogFormatter', 05680 'delete/revision' => 'DeleteLogFormatter', 05681 'delete/event' => 'DeleteLogFormatter', 05682 'suppress/revision' => 'DeleteLogFormatter', 05683 'suppress/event' => 'DeleteLogFormatter', 05684 'suppress/delete' => 'DeleteLogFormatter', 05685 'patrol/patrol' => 'PatrolLogFormatter', 05686 'rights/rights' => 'RightsLogFormatter', 05687 'rights/autopromote' => 'RightsLogFormatter', 05688 ); 05689 05693 $wgNewUserLog = true; 05694 # end logging } 05696 05697 /*************************************************************************/ 05705 $wgAllowSpecialInclusion = true; 05706 05711 $wgDisableQueryPageUpdate = false; 05712 05717 $wgSpecialPageGroups = array( 05718 'DoubleRedirects' => 'maintenance', 05719 'BrokenRedirects' => 'maintenance', 05720 'Lonelypages' => 'maintenance', 05721 'Uncategorizedpages' => 'maintenance', 05722 'Uncategorizedcategories' => 'maintenance', 05723 'Uncategorizedimages' => 'maintenance', 05724 'Uncategorizedtemplates' => 'maintenance', 05725 'Unusedcategories' => 'maintenance', 05726 'Unusedimages' => 'maintenance', 05727 'Protectedpages' => 'maintenance', 05728 'Protectedtitles' => 'maintenance', 05729 'Unusedtemplates' => 'maintenance', 05730 'Withoutinterwiki' => 'maintenance', 05731 'Longpages' => 'maintenance', 05732 'Shortpages' => 'maintenance', 05733 'Ancientpages' => 'maintenance', 05734 'Deadendpages' => 'maintenance', 05735 'Wantedpages' => 'maintenance', 05736 'Wantedcategories' => 'maintenance', 05737 'Wantedfiles' => 'maintenance', 05738 'Wantedtemplates' => 'maintenance', 05739 'Unwatchedpages' => 'maintenance', 05740 'Fewestrevisions' => 'maintenance', 05741 05742 'Userlogin' => 'login', 05743 'Userlogout' => 'login', 05744 'CreateAccount' => 'login', 05745 05746 'Recentchanges' => 'changes', 05747 'Recentchangeslinked' => 'changes', 05748 'Watchlist' => 'changes', 05749 'Newimages' => 'changes', 05750 'Newpages' => 'changes', 05751 'Log' => 'changes', 05752 'Tags' => 'changes', 05753 05754 'Upload' => 'media', 05755 'Listfiles' => 'media', 05756 'MIMEsearch' => 'media', 05757 'FileDuplicateSearch' => 'media', 05758 'Filepath' => 'media', 05759 05760 'Listusers' => 'users', 05761 'Activeusers' => 'users', 05762 'Listgrouprights' => 'users', 05763 'BlockList' => 'users', 05764 'Contributions' => 'users', 05765 'Emailuser' => 'users', 05766 'Listadmins' => 'users', 05767 'Listbots' => 'users', 05768 'Userrights' => 'users', 05769 'Block' => 'users', 05770 'Unblock' => 'users', 05771 'Preferences' => 'users', 05772 'ChangeEmail' => 'users', 05773 'ChangePassword' => 'users', 05774 'DeletedContributions' => 'users', 05775 'PasswordReset' => 'users', 05776 05777 'Mostlinked' => 'highuse', 05778 'Mostlinkedcategories' => 'highuse', 05779 'Mostlinkedtemplates' => 'highuse', 05780 'Mostcategories' => 'highuse', 05781 'Mostimages' => 'highuse', 05782 'Mostinterwikis' => 'highuse', 05783 'Mostrevisions' => 'highuse', 05784 05785 'Allpages' => 'pages', 05786 'Prefixindex' => 'pages', 05787 'Listredirects' => 'pages', 05788 'Categories' => 'pages', 05789 'Disambiguations' => 'pages', 05790 05791 'Randompage' => 'redirects', 05792 'Randomredirect' => 'redirects', 05793 'Mypage' => 'redirects', 05794 'Mytalk' => 'redirects', 05795 'Mycontributions' => 'redirects', 05796 'Search' => 'redirects', 05797 'LinkSearch' => 'redirects', 05798 05799 'ComparePages' => 'pagetools', 05800 'Movepage' => 'pagetools', 05801 'MergeHistory' => 'pagetools', 05802 'Revisiondelete' => 'pagetools', 05803 'Undelete' => 'pagetools', 05804 'Export' => 'pagetools', 05805 'Import' => 'pagetools', 05806 'Whatlinkshere' => 'pagetools', 05807 05808 'Statistics' => 'wiki', 05809 'Version' => 'wiki', 05810 'Lockdb' => 'wiki', 05811 'Unlockdb' => 'wiki', 05812 'Allmessages' => 'wiki', 05813 'Popularpages' => 'wiki', 05814 05815 'Specialpages' => 'other', 05816 'Blockme' => 'other', 05817 'Booksources' => 'other', 05818 'JavaScriptTest' => 'other', 05819 ); 05820 05823 $wgSortSpecialPages = true; 05824 05829 $wgCountCategorizedImagesAsUsed = false; 05830 05835 $wgMaxRedirectLinksRetrieved = 500; 05836 # end special pages } 05838 05839 /*************************************************************************/ 05854 $wgActions = array( 05855 'credits' => true, 05856 'delete' => true, 05857 'edit' => true, 05858 'history' => true, 05859 'info' => true, 05860 'markpatrolled' => true, 05861 'protect' => true, 05862 'purge' => true, 05863 'raw' => true, 05864 'render' => true, 05865 'revert' => true, 05866 'revisiondelete' => true, 05867 'rollback' => true, 05868 'submit' => true, 05869 'unprotect' => true, 05870 'unwatch' => true, 05871 'view' => true, 05872 'watch' => true, 05873 ); 05874 05879 $wgDisabledActions = array(); 05880 # end actions } 05882 05883 /*************************************************************************/ 05894 $wgDefaultRobotPolicy = 'index,follow'; 05895 05910 $wgNamespaceRobotPolicies = array(); 05911 05938 $wgArticleRobotPolicies = array(); 05939 05950 $wgExemptFromUserRobotsControl = null; 05951 # End robot policy } 05953 05954 /************************************************************************/ 05968 $wgEnableAPI = true; 05969 05975 $wgEnableWriteAPI = true; 05976 05983 $wgAPIModules = array(); 05984 $wgAPIMetaModules = array(); 05985 $wgAPIPropModules = array(); 05986 $wgAPIListModules = array(); 05987 $wgAPIGeneratorModules = array(); 05988 05993 $wgAPIMaxDBRows = 5000; 05994 05999 $wgAPIMaxResultSize = 8388608; 06000 06005 $wgAPIMaxUncachedDiffs = 1; 06006 06011 $wgAPIRequestLog = false; 06012 06016 $wgAPICacheHelpTimeout = 60*60; 06017 06021 $wgUseAjax = true; 06022 06027 $wgAjaxExportList = array(); 06028 06033 $wgAjaxWatch = true; 06034 06038 $wgAjaxUploadDestCheck = true; 06039 06043 $wgAjaxLicensePreview = true; 06044 06065 $wgCrossSiteAJAXdomains = array(); 06066 06073 $wgCrossSiteAJAXdomainExceptions = array(); 06074 # End AJAX and API } 06076 06077 /************************************************************************/ 06085 $wgMaxShellMemory = 102400; 06086 06091 $wgMaxShellFileSize = 102400; 06092 06096 $wgMaxShellTime = 180; 06097 06101 $wgPhpCli = '/usr/bin/php'; 06102 06108 $wgShellLocale = 'en_US.utf8'; 06109 # End shell } 06111 06112 /************************************************************************/ 06120 $wgHTTPTimeout = 25; 06121 06125 $wgAsyncHTTPTimeout = 25; 06126 06130 $wgHTTPProxy = false; 06131 # End HTTP client } 06133 06134 /************************************************************************/ 06146 $wgJobRunRate = 1; 06147 06151 $wgUpdateRowsPerJob = 500; 06152 06156 $wgUpdateRowsPerQuery = 100; 06157 # End job queue } 06159 06160 /************************************************************************/ 06169 $wgHipHopBuildDirectory = false; 06170 06174 $wgHipHopBuildType = 'Debug'; 06175 06180 $wgHipHopCompilerProcs = 'detect'; 06181 06194 $wgExtensionsDirectory = false; 06195 06206 $wgCompiledFiles = array(); 06207 # End of HipHop compilation } 06209 06210 06211 /************************************************************************/ 06220 $wgDeviceDetectionClass = 'DeviceDetection'; 06221 # End of Mobile support } 06223 06224 /************************************************************************/ 06230 $wgExternalDiffEngine = false; 06231 06240 $wgDisableHardRedirects = false; 06241 06246 $wgLinkHolderBatchSize = 1000; 06247 06252 $wgRegisterInternalExternals = false; 06253 06257 $wgMaximumMovedPages = 100; 06258 06263 $wgFixDoubleRedirects = false; 06264 06269 $wgRedirectOnLogin = null; 06270 06291 $wgPoolCounterConf = null; 06292 06296 $wgUploadMaintenance = false; 06297 06301 $wgEnableSelenium = false; 06302 $wgSeleniumTestConfigs = array(); 06303 $wgSeleniumConfigFile = null; 06304 $wgDBtestuser = ''; //db user that has permission to create and drop the test databases only 06305 $wgDBtestpassword = ''; 06306 06314 $wgNamespaceContentModels = array(); 06315 06325 $wgContentHandlerTextFallback = 'ignore'; 06326 06340 $wgContentHandlerUseDB = false; 06341 06352 $wgTextModelsToParse = array( 06353 CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed. 06354 CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments. 06355 CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments. 06356 ); 06357 06363 $wgRequirePasswordforEmailChange = true; 06364 06370 $wgSiteTypes = array(); 06371 $wgSiteTypes['mediawiki'] = 'MediaWikiSite'; 06372