MediaWiki
REL1_19
|
00001 <?php 00024 if( !defined( 'MEDIAWIKI' ) ) { 00025 echo "This file is part of MediaWiki and is not a valid entry point\n"; 00026 die( 1 ); 00027 } 00028 00029 # Create a site configuration object. Not used for much in a default install. 00030 # Note: this (and other things) will break if the autoloader is not enabled. 00031 # Please include includes/AutoLoader.php before including this file. 00032 $wgConf = new SiteConfiguration; 00036 $wgVersion = '1.19.20'; 00037 00039 $wgSitename = 'MediaWiki'; 00040 00057 $wgServer = WebRequest::detectServer(); 00058 00065 $wgCanonicalServer = false; 00066 00067 /************************************************************************/ 00081 $wgScriptPath = '/wiki'; 00082 00099 $wgUsePathInfo = 00100 ( strpos( php_sapi_name(), 'cgi' ) === false ) && 00101 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) && 00102 ( strpos( php_sapi_name(), 'isapi' ) === false ); 00103 00111 $wgScriptExtension = '.php'; 00112 00118 $wgScript = false; 00119 00126 $wgRedirectScript = false; 00127 00133 $wgLoadScript = false; 00134 00135 00138 /************************************************************************/ 00159 $wgStylePath = false; 00160 $wgStyleSheetPath = &$wgStylePath; 00161 00166 $wgLocalStylePath = false; 00167 00173 $wgExtensionAssetsPath = false; 00174 00178 $wgStyleDirectory = false; 00179 00187 $wgArticlePath = false; 00188 00192 $wgUploadPath = false; 00193 00197 $wgUploadStashMaxAge = 6 * 3600; // 6 hours 00198 00202 $wgUploadDirectory = false; 00203 00208 $wgLogo = false; 00209 00213 $wgFavicon = '/favicon.ico'; 00214 00219 $wgAppleTouchIcon = false; 00220 00227 $wgTmpDirectory = false; 00228 00233 $wgUploadBaseUrl = ''; 00234 00241 $wgUploadStashScalerBaseUrl = false; 00242 00251 $wgActionPaths = array(); 00252 00255 /************************************************************************/ 00261 $wgEnableUploads = false; 00262 00264 $wgAllowImageMoving = true; 00265 00269 $wgIllegalFileChars = ":"; 00270 00274 $wgFileStore = array(); 00275 00279 $wgDeletedDirectory = false; // Defaults to $wgUploadDirectory/deleted 00280 00284 $wgImgAuthDetails = false; 00285 00291 $wgImgAuthPublicTest = true; 00292 00367 $wgLocalFileRepo = false; 00368 00370 $wgForeignFileRepos = array(); 00371 00377 $wgUseInstantCommons = false; 00378 00389 $wgFileBackends = array(); 00390 00398 $wgLockManagers = array(); 00399 00411 $wgShowEXIF = function_exists( 'exif_read_data' ); 00412 00418 $wgUpdateCompatibleMetadata = false; 00419 00433 $wgUseSharedUploads = false; 00435 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images"; 00437 $wgFetchCommonsDescriptions = false; 00439 $wgSharedUploadDirectory = "/var/www/wiki3/images"; 00441 $wgSharedUploadDBname = false; 00443 $wgSharedUploadDBprefix = ''; 00445 $wgCacheSharedUploads = true; 00450 $wgAllowCopyUploads = false; 00455 $wgAllowAsyncCopyUploads = false; 00456 00472 $wgMaxUploadSize = 1024*1024*100; # 100MB 00473 00480 $wgUploadNavigationUrl = false; 00481 00487 $wgUploadMissingFileUrl = false; 00488 00497 $wgThumbnailScriptPath = false; 00498 $wgSharedThumbnailScriptPath = false; 00499 00512 $wgHashedUploadDirectory = true; 00513 00519 $wgHashedSharedUploadDirectory = true; 00520 00529 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:"; 00530 00539 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' ); 00540 00542 $wgFileBlacklist = array( 00543 # HTML may contain cookie-stealing JavaScript and web bugs 00544 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht', 00545 # PHP scripts may execute arbitrary code on the server 00546 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 00547 # Other types that may be interpreted by some servers 00548 'shtml', 'jhtml', 'pl', 'py', 'cgi', 00549 # May contain harmful executables for Windows victims 00550 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ); 00551 00556 $wgMimeTypeBlacklist = array( 00557 # HTML may contain cookie-stealing JavaScript and web bugs 00558 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript', 00559 # PHP scripts may execute arbitrary code on the server 00560 'application/x-php', 'text/x-php', 00561 # Other types that may be interpreted by some servers 00562 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh', 00563 # Client-side hazards on Internet Explorer 00564 'text/scriptlet', 'application/x-msdownload', 00565 # Windows metafile, client-side vulnerability on some systems 00566 'application/x-msmetafile', 00567 ); 00568 00574 $wgAllowJavaUploads = false; 00575 00581 $wgCheckFileExtensions = true; 00582 00589 $wgStrictFileExtensions = true; 00590 00596 $wgDisableUploadScriptChecks = false; 00597 00599 $wgUploadSizeWarning = false; 00600 00611 $wgTrustedMediaFormats = array( 00612 MEDIATYPE_BITMAP, //all bitmap formats 00613 MEDIATYPE_AUDIO, //all audio formats 00614 MEDIATYPE_VIDEO, //all plain video formats 00615 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported) 00616 "application/pdf", //PDF files 00617 #"application/x-shockwave-flash", //flash/shockwave movie 00618 ); 00619 00624 $wgMediaHandlers = array( 00625 'image/jpeg' => 'JpegHandler', 00626 'image/png' => 'PNGHandler', 00627 'image/gif' => 'GIFHandler', 00628 'image/tiff' => 'TiffHandler', 00629 'image/x-ms-bmp' => 'BmpHandler', 00630 'image/x-bmp' => 'BmpHandler', 00631 'image/x-xcf' => 'XCFHandler', 00632 'image/svg+xml' => 'SvgHandler', // official 00633 'image/svg' => 'SvgHandler', // compat 00634 'image/vnd.djvu' => 'DjVuHandler', // official 00635 'image/x.djvu' => 'DjVuHandler', // compat 00636 'image/x-djvu' => 'DjVuHandler', // compat 00637 ); 00638 00647 $wgUseImageMagick = false; 00649 $wgImageMagickConvertCommand = '/usr/bin/convert'; 00651 $wgImageMagickIdentifyCommand = '/usr/bin/identify'; 00652 00654 $wgSharpenParameter = '0x0.4'; 00655 00657 $wgSharpenReductionThreshold = 0.85; 00658 00663 $wgImageMagickTempDir = false; 00664 00677 $wgCustomConvertCommand = false; 00678 00682 $wgExiv2Command = '/usr/bin/exiv2'; 00683 00693 $wgSVGConverters = array( 00694 'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output', 00695 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output', 00696 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output', 00697 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input', 00698 'rsvg' => '$path/rsvg -w$width -h$height $input $output', 00699 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output', 00700 'ImagickExt' => array( 'SvgHandler::rasterizeImagickExt' ), 00701 ); 00703 $wgSVGConverter = 'ImageMagick'; 00705 $wgSVGConverterPath = ''; 00707 $wgSVGMaxSize = 2048; 00710 $wgSVGMetadataCutoff = 262144; 00711 00719 $wgAllowTitlesInSVG = false; 00720 00734 $wgMaxImageArea = 1.25e7; 00741 $wgMaxAnimatedGifArea = 1.25e7; 00755 $wgTiffThumbnailType = false; 00756 00763 $wgThumbnailEpoch = '20030516000000'; 00764 00776 $wgIgnoreImageErrors = false; 00777 00785 $wgGenerateThumbnailOnParse = true; 00786 00790 $wgShowArchiveThumbnails = true; 00791 00793 $wgUseImageResize = true; 00794 00800 $wgEnableAutoRotation = null; 00801 00807 $wgAntivirus = null; 00808 00843 $wgAntivirusSetup = array( 00844 00845 #setup for clamav 00846 'clamav' => array ( 00847 'command' => "clamscan --no-summary ", 00848 00849 'codemap' => array ( 00850 "0" => AV_NO_VIRUS, # no virus 00851 "1" => AV_VIRUS_FOUND, # virus found 00852 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune) 00853 "*" => AV_SCAN_FAILED, # else scan failed 00854 ), 00855 00856 'messagepattern' => '/.*?:(.*)/sim', 00857 ), 00858 00859 #setup for f-prot 00860 'f-prot' => array ( 00861 'command' => "f-prot ", 00862 00863 'codemap' => array ( 00864 "0" => AV_NO_VIRUS, # no virus 00865 "3" => AV_VIRUS_FOUND, # virus found 00866 "6" => AV_VIRUS_FOUND, # virus found 00867 "*" => AV_SCAN_FAILED, # else scan failed 00868 ), 00869 00870 'messagepattern' => '/.*?Infection:(.*)$/m', 00871 ), 00872 ); 00873 00874 00876 $wgAntivirusRequired = true; 00877 00879 $wgVerifyMimeType = true; 00880 00882 $wgMimeTypeFile = "includes/mime.types"; 00883 #$wgMimeTypeFile= "/etc/mime.types"; 00884 #$wgMimeTypeFile= null; #use built-in defaults only. 00885 00887 $wgMimeInfoFile= "includes/mime.info"; 00888 #$wgMimeInfoFile= null; #use built-in defaults only. 00889 00895 $wgLoadFileinfoExtension = false; 00896 00906 $wgMimeDetectorCommand = null; 00907 00913 $wgTrivialMimeDetection = false; 00914 00919 $wgXMLMimeTypes = array( 00920 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml', 00921 'svg' => 'image/svg+xml', 00922 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram', 00923 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml? 00924 'html' => 'text/html', // application/xhtml+xml? 00925 ); 00926 00935 $wgImageLimits = array( 00936 array( 320, 240 ), 00937 array( 640, 480 ), 00938 array( 800, 600 ), 00939 array( 1024, 768 ), 00940 array( 1280, 1024 ), 00941 array( 10000, 10000 ) 00942 ); 00943 00949 $wgThumbLimits = array( 00950 120, 00951 150, 00952 180, 00953 200, 00954 250, 00955 300 00956 ); 00957 00961 $wgGalleryOptions = array ( 00962 'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize 00963 'imageWidth' => 120, // Width of the cells containing images in galleries (in "px") 00964 'imageHeight' => 120, // Height of the cells containing images in galleries (in "px") 00965 'captionLength' => 25, // Length of caption to truncate (in characters) 00966 'showBytes' => true, // Show the filesize in bytes in categories 00967 ); 00968 00974 $wgThumbUpright = 0.75; 00975 00979 $wgDirectoryMode = 0777; 00980 00986 # $wgDjvuDump = 'djvudump'; 00987 $wgDjvuDump = null; 00988 00993 # $wgDjvuRenderer = 'ddjvu'; 00994 $wgDjvuRenderer = null; 00995 01000 # $wgDjvuTxt = 'djvutxt'; 01001 $wgDjvuTxt = null; 01002 01012 # $wgDjvuToXML = 'djvutoxml'; 01013 $wgDjvuToXML = null; 01014 01015 01021 $wgDjvuPostProcessor = 'pnmtojpeg'; 01025 $wgDjvuOutputExtension = 'jpg'; 01026 # end of file uploads } 01028 01029 /************************************************************************/ 01034 $serverName = substr( $wgServer, strrpos( $wgServer, '/' ) + 1 ); 01035 01039 $wgEmergencyContact = 'wikiadmin@' . $serverName; 01040 01046 $wgPasswordSender = 'apache@' . $serverName; 01047 01048 unset( $serverName ); # Don't leak local variables to global scope 01049 01053 $wgPasswordSenderName = 'MediaWiki Mail'; 01054 01060 $wgNoReplyAddress = '[email protected]'; 01061 01067 $wgEnableEmail = true; 01068 01073 $wgEnableUserEmail = true; 01074 01083 $wgUserEmailUseReplyTo = false; 01084 01089 $wgPasswordReminderResendTime = 24; 01090 01094 $wgNewPasswordExpiry = 3600 * 24 * 7; 01095 01099 $wgUserEmailConfirmationTokenExpiry = 7 * 24 * 60 * 60; 01100 01114 $wgSMTP = false; 01115 01120 $wgAdditionalMailParams = null; 01121 01126 $wgEnotifFromEditor = false; 01127 01128 // TODO move UPO to preferences probably ? 01129 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion 01130 # If set to false, the corresponding input form on the user preference page is suppressed 01131 # It call this to be a "user-preferences-option (UPO)" 01132 01138 $wgEmailAuthentication = true; 01139 01143 $wgEnotifWatchlist = false; 01144 01149 $wgEnotifUserTalk = false; 01150 01155 $wgEnotifRevealEditorAddress = false; 01156 01161 $wgEnotifMinorEdits = true; 01162 01170 $wgEnotifImpersonal = false; 01171 01176 $wgEnotifMaxRecips = 500; 01177 01182 $wgEnotifUseJobQ = false; 01183 01187 $wgEnotifUseRealName = false; 01188 01193 $wgUsersNotifiedOnAllChanges = array(); 01194 01195 # end of email settings 01197 01198 /************************************************************************//** 01199 * @name Database settings 01200 * @{ 01201 */ 01203 $wgDBserver = 'localhost'; 01205 $wgDBport = 5432; 01207 $wgDBname = 'my_wiki'; 01209 $wgDBuser = 'wikiuser'; 01211 $wgDBpassword = ''; 01213 $wgDBtype = 'mysql'; 01214 01216 $wgDBadminuser = null; 01218 $wgDBadminpassword = null; 01219 01226 $wgSearchType = null; 01227 01229 $wgDBprefix = ''; 01231 $wgDBTableOptions = 'ENGINE=InnoDB'; 01232 01239 $wgSQLMode = ''; 01240 01242 $wgDBmwschema = 'mediawiki'; 01243 01245 $wgSQLiteDataDir = ''; 01246 01252 $wgAllDBsAreLocalhost = false; 01253 01272 $wgSharedDB = null; 01273 01275 $wgSharedPrefix = false; 01277 $wgSharedTables = array( 'user', 'user_properties' ); 01278 01322 $wgDBservers = false; 01323 01334 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' ); 01335 01337 $wgMasterWaitTimeout = 10; 01338 01340 $wgDBerrorLog = false; 01341 01343 $wgDBClusterTimeout = 10; 01344 01349 $wgDBAvgStatusPoll = 2000; 01350 01352 $wgDBtransactions = false; 01353 01370 $wgDBmysql5 = false; 01371 01377 $wgLocalDatabases = array(); 01378 01384 $wgSlaveLagWarning = 10; 01386 $wgSlaveLagCritical = 30; 01387 01391 $wgOldChangeTagsIndex = false; 01392 # End of DB settings } 01394 01395 01396 /************************************************************************//** 01397 * @name Text storage 01398 * @{ 01399 */ 01400 01407 $wgCompressRevisions = false; 01408 01418 $wgExternalStores = false; 01419 01425 $wgExternalServers = array(); 01426 01438 $wgDefaultExternalStore = false; 01439 01446 $wgRevisionCacheExpiry = 0; 01447 # end text storage } 01449 01450 /************************************************************************//** 01451 * @name Performance hacks and limits 01452 * @{ 01453 */ 01455 $wgMiserMode = false; 01457 $wgDisableQueryPages = false; 01459 $wgQueryCacheLimit = 1000; 01461 $wgWantedPagesThreshold = 1; 01463 $wgAllowSlowParserFunctions = false; 01465 $wgAllowSchemaUpdates = true; 01466 01470 $wgUseDumbLinkUpdate = false; 01471 01486 $wgAntiLockFlags = 0; 01487 01491 $wgMaxArticleSize = 2048; 01492 01497 $wgMemoryLimit = "50M"; 01498 # end performance hacks } 01500 01501 /************************************************************************//** 01502 * @name Cache settings 01503 * @{ 01504 */ 01505 01514 $wgCacheDirectory = false; 01515 01536 $wgMainCacheType = CACHE_NONE; 01537 01544 $wgMessageCacheType = CACHE_ANYTHING; 01545 01552 $wgParserCacheType = CACHE_ANYTHING; 01553 01570 $wgObjectCaches = array( 01571 CACHE_NONE => array( 'class' => 'EmptyBagOStuff' ), 01572 CACHE_DB => array( 'class' => 'SqlBagOStuff', 'table' => 'objectcache' ), 01573 CACHE_DBA => array( 'class' => 'DBABagOStuff' ), 01574 01575 CACHE_ANYTHING => array( 'factory' => 'ObjectCache::newAnything' ), 01576 CACHE_ACCEL => array( 'factory' => 'ObjectCache::newAccelerator' ), 01577 CACHE_MEMCACHED => array( 'factory' => 'ObjectCache::newMemcached' ), 01578 01579 'apc' => array( 'class' => 'APCBagOStuff' ), 01580 'xcache' => array( 'class' => 'XCacheBagOStuff' ), 01581 'wincache' => array( 'class' => 'WinCacheBagOStuff' ), 01582 'memcached-php' => array( 'class' => 'MemcachedPhpBagOStuff' ), 01583 'hash' => array( 'class' => 'HashBagOStuff' ), 01584 ); 01585 01590 $wgParserCacheExpireTime = 86400; 01591 01595 $wgDBAhandler = 'db3'; 01596 01602 $wgSessionsInMemcached = false; 01603 01610 $wgSessionHandler = null; 01611 01613 $wgMemCachedDebug = false; 01614 01616 $wgMemCachedServers = array( '127.0.0.1:11000' ); 01617 01622 $wgMemCachedPersistent = false; 01623 01627 $wgMemCachedTimeout = 100000; 01628 01633 $wgUseLocalMessageCache = false; 01634 01640 $wgLocalMessageCacheSerialized = true; 01641 01647 $wgAdaptiveMessageCache = false; 01648 01669 $wgLocalisationCacheConf = array( 01670 'class' => 'LocalisationCache', 01671 'store' => 'detect', 01672 'storeClass' => false, 01673 'storeDirectory' => false, 01674 'manualRecache' => false, 01675 ); 01676 01678 $wgCachePages = true; 01679 01686 $wgCacheEpoch = '20030516000000'; 01687 01694 $wgStyleVersion = '303'; 01695 01703 $wgUseFileCache = false; 01704 01709 $wgFileCacheDirectory = false; 01710 01717 $wgFileCacheDepth = 2; 01718 01728 $wgEnableParserCache = true; 01729 01734 $wgRenderHashAppend = ''; 01735 01745 $wgEnableSidebarCache = false; 01746 01750 $wgSidebarCacheExpiry = 86400; 01751 01760 $wgUseGzip = false; 01761 01766 $wgUseETag = false; 01767 01773 $wgClockSkewFudge = 5; 01774 01784 $wgInvalidateCacheOnLocalSettingsChange = true; 01785 # end of cache settings 01787 01788 /************************************************************************//** 01789 * @name HTTP proxy (Squid) settings 01790 * 01791 * Many of these settings apply to any HTTP proxy used in front of MediaWiki, 01792 * although they are referred to as Squid settings for historical reasons. 01793 * 01794 * Achieving a high hit ratio with an HTTP proxy requires special 01795 * configuration. See http://www.mediawiki.org/wiki/Manual:Squid_caching for 01796 * more details. 01797 * 01798 * @{ 01799 */ 01800 01805 $wgUseSquid = false; 01806 01808 $wgUseESI = false; 01809 01811 $wgUseXVO = false; 01812 01820 $wgVaryOnXFP = false; 01821 01828 $wgInternalServer = false; 01829 01836 $wgSquidMaxage = 18000; 01837 01841 $wgForcedRawSMaxage = 300; 01842 01851 $wgSquidServers = array(); 01852 01857 $wgSquidServersNoPurge = array(); 01858 01860 $wgMaxSquidPurgeTitles = 400; 01861 01868 $wgHTCPMulticastAddress = false; 01869 01874 $wgHTCPPort = 4827; 01875 01880 $wgHTCPMulticastTTL = 1; 01881 01883 $wgUsePrivateIPs = false; 01884 # end of HTTP proxy settings 01886 01887 /************************************************************************//** 01888 * @name Language, regional and character encoding settings 01889 * @{ 01890 */ 01891 01893 $wgLanguageCode = 'en'; 01894 01903 $wgGrammarForms = array(); 01904 01906 $wgInterwikiMagic = true; 01907 01909 $wgHideInterlanguageLinks = false; 01910 01912 $wgExtraLanguageNames = array(); 01913 01920 $wgDummyLanguageCodes = array( 01921 'als' => 'gsw', 01922 'bat-smg' => 'sgs', 01923 'be-x-old' => 'be-tarask', 01924 'bh' => 'bho', 01925 'fiu-vro' => 'vro', 01926 'no' => 'nb', 01927 'qqq' => 'qqq', # Used for message documentation. 01928 'qqx' => 'qqx', # Used for viewing message keys. 01929 'roa-rup' => 'rup', 01930 'simple' => 'en', 01931 'zh-classical' => 'lzh', 01932 'zh-min-nan' => 'nan', 01933 'zh-yue' => 'yue', 01934 ); 01935 01943 $wgEditEncoding = ''; 01944 01953 $wgFixArabicUnicode = true; 01954 01964 $wgFixMalayalamUnicode = true; 01965 01976 $wgAllUnicodeFixes = false; 01977 01988 $wgLegacyEncoding = false; 01989 01995 $wgBrowserBlackList = array( 02006 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02007 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02008 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/', 02009 02022 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/', 02023 02028 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/' 02029 ); 02030 02046 $wgLegacySchemaConversion = false; 02047 02052 $wgUseDynamicDates = false; 02057 $wgAmericanDates = false; 02062 $wgTranslateNumerals = true; 02063 02068 $wgUseDatabaseMessages = true; 02069 02073 $wgMsgCacheExpiry = 86400; 02074 02078 $wgMaxMsgCacheEntrySize = 10000; 02079 02081 $wgDisableLangConversion = false; 02082 02084 $wgDisableTitleConversion = false; 02085 02087 $wgCanonicalLanguageLinks = true; 02088 02090 $wgDefaultLanguageVariant = false; 02091 02105 $wgDisabledVariants = array(); 02106 02121 $wgVariantArticlePath = false; 02122 02128 $wgLoginLanguageSelector = false; 02129 02145 $wgForceUIMsgAsContentMsg = array(); 02146 02166 $wgLocaltimezone = null; 02167 02177 $wgLocalTZoffset = null; 02178 02187 $wgBug34832TransitionalRollback = true; 02188 02189 # End of language/charset settings 02191 02192 /*************************************************************************//** 02193 * @name Output format and skin settings 02194 * @{ 02195 */ 02196 02198 $wgMimeType = 'text/html'; 02199 02206 $wgJsMimeType = 'text/javascript'; 02207 02212 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN'; 02213 02219 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'; 02220 02226 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml'; 02227 02234 $wgHtml5 = true; 02235 02244 $wgHtml5Version = null; 02245 02250 $wgAllowRdfaAttributes = false; 02251 02255 $wgAllowMicrodataAttributes = false; 02256 02260 $wgCleanupPresentationalAttributes = true; 02261 02278 $wgWellFormedXml = true; 02279 02291 $wgXhtmlNamespaces = array(); 02292 02298 $wgShowIPinHeader = true; 02299 02307 $wgSiteNotice = ''; 02308 02312 $wgExtraSubtitle = ''; 02313 02317 $wgSiteSupportPage = ''; 02318 02323 $wgValidateAllHtml = false; 02324 02331 $wgDefaultSkin = 'vector'; 02332 02338 $wgSkipSkin = ''; 02340 $wgSkipSkins = array(); 02341 02354 $wgHandheldStyle = false; 02355 02366 $wgHandheldForIPhone = false; 02367 02373 $wgAllowUserJs = false; 02374 02380 $wgAllowUserCss = false; 02381 02387 $wgAllowUserCssPrefs = true; 02388 02390 $wgUseSiteJs = true; 02391 02393 $wgUseSiteCss = true; 02394 02399 $wgBreakFrames = false; 02400 02420 $wgEditPageFrameOptions = 'DENY'; 02421 02432 $wgApiFrameOptions = 'DENY'; 02433 02437 $wgDisableOutputCompression = false; 02438 02448 $wgExperimentalHtmlIds = false; 02449 02477 $wgFooterIcons = array( 02478 "copyright" => array( 02479 "copyright" => array(), // placeholder for the built in copyright icon 02480 ), 02481 "poweredby" => array( 02482 "mediawiki" => array( 02483 "src" => null, // Defaults to "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" 02484 "url" => "//www.mediawiki.org/", 02485 "alt" => "Powered by MediaWiki", 02486 ) 02487 ), 02488 ); 02489 02495 $wgUseCombinedLoginLink = true; 02496 02502 $wgVectorUseSimpleSearch = false; 02503 02509 $wgVectorUseIconWatch = false; 02510 02514 $wgEdititis = false; 02515 02522 $wgBetterDirectionality = true; 02523 02535 $wgSend404Code = true; 02536 # End of output format settings } 02538 02539 /*************************************************************************/ 02557 $wgResourceModules = array(); 02558 02570 $wgResourceLoaderSources = array(); 02571 02576 $wgResourceBasePath = null; 02577 02581 $wgResourceLoaderMaxage = array( 02582 'versioned' => array( 02583 // Squid/Varnish but also any other public proxy cache between the client and MediaWiki 02584 'server' => 30 * 24 * 60 * 60, // 30 days 02585 // On the client side (e.g. in the browser cache). 02586 'client' => 30 * 24 * 60 * 60, // 30 days 02587 ), 02588 'unversioned' => array( 02589 'server' => 5 * 60, // 5 minutes 02590 'client' => 5 * 60, // 5 minutes 02591 ), 02592 ); 02593 02598 $wgResourceLoaderDebug = false; 02599 02605 $wgResourceLoaderUseESI = false; 02606 02611 $wgResourceLoaderMinifierStatementsOnOwnLine = false; 02612 02618 $wgResourceLoaderMinifierMaxLineLength = 1000; 02619 02624 $wgIncludeLegacyJavaScript = true; 02625 02637 $wgPreloadJavaScriptMwUtil = false; 02638 02650 $wgLegacyJavaScriptGlobals = true; 02651 02663 $wgResourceLoaderMaxQueryLength = -1; 02664 02672 $wgResourceLoaderValidateJS = true; 02673 02682 $wgResourceLoaderValidateStaticJS = false; 02683 02689 $wgResourceLoaderExperimentalAsyncLoading = false; 02690 # End of resource loader settings } 02692 02693 02694 /*************************************************************************/ 02703 $wgMetaNamespace = false; 02704 02712 $wgMetaNamespaceTalk = false; 02713 02728 # $wgExtraNamespaces = array( 02729 # 100 => "Hilfe", 02730 # 101 => "Hilfe_Diskussion", 02731 # 102 => "Aide", 02732 # 103 => "Discussion_Aide" 02733 # ); 02734 $wgExtraNamespaces = array(); 02735 02742 $wgExtraGenderNamespaces = array(); 02743 02758 $wgNamespaceAliases = array(); 02759 02786 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+"; 02787 02791 $wgLocalInterwiki = false; 02792 02796 $wgInterwikiExpiry = 10800; 02797 02814 $wgInterwikiCache = false; 02815 $wgInterwikiScopes = 3; 02816 $wgInterwikiFallbackSite = 'wiki'; 02817 02830 $wgRedirectSources = false; 02831 02838 $wgCapitalLinks = true; 02839 02850 $wgCapitalLinkOverrides = array(); 02851 02855 $wgNamespacesWithSubpages = array( 02856 NS_TALK => true, 02857 NS_USER => true, 02858 NS_USER_TALK => true, 02859 NS_PROJECT_TALK => true, 02860 NS_FILE_TALK => true, 02861 NS_MEDIAWIKI => true, 02862 NS_MEDIAWIKI_TALK => true, 02863 NS_TEMPLATE_TALK => true, 02864 NS_HELP_TALK => true, 02865 NS_CATEGORY_TALK => true 02866 ); 02867 02874 $wgContentNamespaces = array( NS_MAIN ); 02875 02881 $wgMaxRedirects = 1; 02882 02893 $wgInvalidRedirectTargets = array( 'Filepath', 'Mypage', 'Mytalk' ); 02894 # End of title and interwiki settings } 02896 02897 /************************************************************************/ 02924 $wgParserConf = array( 02925 'class' => 'Parser', 02926 #'preprocessorClass' => 'Preprocessor_Hash', 02927 ); 02928 02930 $wgMaxTocLevel = 999; 02931 02935 $wgMaxPPNodeCount = 1000000; 02936 02943 $wgMaxTemplateDepth = 40; 02944 02946 $wgMaxPPExpandDepth = 40; 02947 02949 $wgUrlProtocols = array( 02950 'http://', 02951 'https://', 02952 'ftp://', 02953 'irc://', 02954 'ircs://', // @bug 28503 02955 'gopher://', 02956 'telnet://', // Well if we're going to support the above.. -ævar 02957 'nntp://', // @bug 3808 RFC 1738 02958 'worldwind://', 02959 'mailto:', 02960 'news:', 02961 'svn://', 02962 'git://', 02963 'mms://', 02964 '//', // for protocol-relative URLs 02965 ); 02966 02970 $wgCleanSignatures = true; 02971 02973 $wgAllowExternalImages = false; 02974 02987 $wgAllowExternalImagesFrom = ''; 02988 02997 $wgEnableImageWhitelist = true; 02998 03007 $wgAllowImageTag = false; 03008 03024 $wgUseTidy = false; 03026 $wgAlwaysUseTidy = false; 03028 $wgTidyBin = 'tidy'; 03030 $wgTidyConf = $IP.'/includes/tidy.conf'; 03032 $wgTidyOpts = ''; 03034 $wgTidyInternal = extension_loaded( 'tidy' ); 03035 03040 $wgDebugTidy = false; 03041 03046 $wgRawHtml = false; 03047 03051 $wgExternalLinkTarget = false; 03052 03059 $wgNoFollowLinks = true; 03060 03065 $wgNoFollowNsExceptions = array(); 03066 03078 $wgNoFollowDomainExceptions = array(); 03079 03083 $wgAllowDisplayTitle = true; 03084 03089 $wgRestrictDisplayTitle = true; 03090 03095 $wgExpensiveParserFunctionLimit = 100; 03096 03101 $wgPreprocessorCacheThreshold = 1000; 03102 03106 $wgEnableScaryTranscluding = false; 03107 03111 $wgTranscludeCacheExpiry = 3600; 03112 # end of parser settings } 03114 03115 /************************************************************************/ 03140 $wgArticleCountMethod = null; 03141 03146 $wgUseCommaCount = false; 03147 03155 $wgHitcounterUpdateFreq = 1; 03156 03163 $wgActiveUserDays = 30; 03164 # End of statistics } 03166 03167 /************************************************************************/ 03173 $wgPasswordSalt = true; 03174 03179 $wgMinimalPasswordLength = 1; 03180 03187 $wgPasswordResetRoutes = array( 03188 'username' => true, 03189 'email' => false, 03190 ); 03191 03195 $wgMaxSigChars = 255; 03196 03201 $wgMaxNameChars = 255; 03202 03207 $wgReservedUsernames = array( 03208 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages 03209 'Conversion script', // Used for the old Wikipedia software upgrade 03210 'Maintenance script', // Maintenance scripts which perform editing, image import script 03211 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade 03212 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php 03213 'msg:double-redirect-fixer', // Automatic double redirect fix 03214 'msg:usermessage-editor', // Default user for leaving user messages 03215 'msg:proxyblocker', // For Special:Blockme 03216 ); 03217 03225 $wgDefaultUserOptions = array( 03226 'ccmeonemails' => 0, 03227 'cols' => 80, 03228 'date' => 'default', 03229 'diffonly' => 0, 03230 'disablemail' => 0, 03231 'disablesuggest' => 0, 03232 'editfont' => 'default', 03233 'editondblclick' => 0, 03234 'editsection' => 1, 03235 'editsectiononrightclick' => 0, 03236 'enotifminoredits' => 0, 03237 'enotifrevealaddr' => 0, 03238 'enotifusertalkpages' => 1, 03239 'enotifwatchlistpages' => 0, 03240 'extendwatchlist' => 0, 03241 'externaldiff' => 0, 03242 'externaleditor' => 0, 03243 'fancysig' => 0, 03244 'forceeditsummary' => 0, 03245 'gender' => 'unknown', 03246 'hideminor' => 0, 03247 'hidepatrolled' => 0, 03248 'highlightbroken' => 1, 03249 'imagesize' => 2, 03250 'justify' => 0, 03251 'math' => 1, 03252 'minordefault' => 0, 03253 'newpageshidepatrolled' => 0, 03254 'nocache' => 0, 03255 'noconvertlink' => 0, 03256 'norollbackdiff' => 0, 03257 'numberheadings' => 0, 03258 'previewonfirst' => 0, 03259 'previewontop' => 1, 03260 'quickbar' => 5, 03261 'rcdays' => 7, 03262 'rclimit' => 50, 03263 'rememberpassword' => 0, 03264 'rows' => 25, 03265 'searchlimit' => 20, 03266 'showhiddencats' => 0, 03267 'showjumplinks' => 1, 03268 'shownumberswatching' => 1, 03269 'showtoc' => 1, 03270 'showtoolbar' => 1, 03271 'skin' => false, 03272 'stubthreshold' => 0, 03273 'thumbsize' => 2, 03274 'underline' => 2, 03275 'uselivepreview' => 0, 03276 'usenewrc' => 0, 03277 'watchcreations' => 0, 03278 'watchdefault' => 0, 03279 'watchdeletion' => 0, 03280 'watchlistdays' => 3.0, 03281 'watchlisthideanons' => 0, 03282 'watchlisthidebots' => 0, 03283 'watchlisthideliu' => 0, 03284 'watchlisthideminor' => 0, 03285 'watchlisthideown' => 0, 03286 'watchlisthidepatrolled' => 0, 03287 'watchmoves' => 0, 03288 'wllimit' => 250, 03289 ); 03290 03296 $wgAllowRealName = true; 03297 03299 $wgHiddenPrefs = array(); 03300 03306 $wgInvalidUsernameCharacters = '@'; 03307 03317 $wgUserrightsInterwikiDelimiter = '@'; 03318 03330 $wgExternalAuthType = null; 03331 03339 $wgExternalAuthConf = array(); 03340 03349 $wgAutocreatePolicy = 'login'; 03350 03374 $wgAllowPrefChange = array(); 03375 03382 $wgSecureLogin = false; 03383 # end user accounts } 03385 03386 /************************************************************************/ 03394 $wgAutoblockExpiry = 86400; 03395 03399 $wgBlockAllowsUTEdit = false; 03400 03402 $wgSysopEmailBans = true; 03403 03411 $wgBlockCIDRLimit = array( 03412 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed 03413 'IPv6' => 64, # 2^64 = ~1.8x10^19 addresses 03414 ); 03415 03423 $wgBlockDisablesLogin = false; 03424 03441 $wgWhitelistRead = false; 03442 03447 $wgEmailConfirmToEdit = false; 03448 03472 $wgGroupPermissions = array(); 03473 03475 // Implicit group for all visitors 03476 $wgGroupPermissions['*']['createaccount'] = true; 03477 $wgGroupPermissions['*']['read'] = true; 03478 $wgGroupPermissions['*']['edit'] = true; 03479 $wgGroupPermissions['*']['createpage'] = true; 03480 $wgGroupPermissions['*']['createtalk'] = true; 03481 $wgGroupPermissions['*']['writeapi'] = true; 03482 //$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled 03483 03484 // Implicit group for all logged-in accounts 03485 $wgGroupPermissions['user']['move'] = true; 03486 $wgGroupPermissions['user']['move-subpages'] = true; 03487 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages 03488 $wgGroupPermissions['user']['movefile'] = true; 03489 $wgGroupPermissions['user']['read'] = true; 03490 $wgGroupPermissions['user']['edit'] = true; 03491 $wgGroupPermissions['user']['createpage'] = true; 03492 $wgGroupPermissions['user']['createtalk'] = true; 03493 $wgGroupPermissions['user']['writeapi'] = true; 03494 $wgGroupPermissions['user']['upload'] = true; 03495 $wgGroupPermissions['user']['reupload'] = true; 03496 $wgGroupPermissions['user']['reupload-shared'] = true; 03497 $wgGroupPermissions['user']['minoredit'] = true; 03498 $wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok" 03499 $wgGroupPermissions['user']['sendemail'] = true; 03500 03501 // Implicit group for accounts that pass $wgAutoConfirmAge 03502 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true; 03503 03504 // Users with bot privilege can have their edits hidden 03505 // from various log pages by default 03506 $wgGroupPermissions['bot']['bot'] = true; 03507 $wgGroupPermissions['bot']['autoconfirmed'] = true; 03508 $wgGroupPermissions['bot']['nominornewtalk'] = true; 03509 $wgGroupPermissions['bot']['autopatrol'] = true; 03510 $wgGroupPermissions['bot']['suppressredirect'] = true; 03511 $wgGroupPermissions['bot']['apihighlimits'] = true; 03512 $wgGroupPermissions['bot']['writeapi'] = true; 03513 #$wgGroupPermissions['bot']['editprotected'] = true; // can edit all protected pages without cascade protection enabled 03514 03515 // Most extra permission abilities go to this group 03516 $wgGroupPermissions['sysop']['block'] = true; 03517 $wgGroupPermissions['sysop']['createaccount'] = true; 03518 $wgGroupPermissions['sysop']['delete'] = true; 03519 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs 03520 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text 03521 $wgGroupPermissions['sysop']['deletedtext'] = true; // can view deleted revision text 03522 $wgGroupPermissions['sysop']['undelete'] = true; 03523 $wgGroupPermissions['sysop']['editinterface'] = true; 03524 $wgGroupPermissions['sysop']['editusercss'] = true; 03525 $wgGroupPermissions['sysop']['edituserjs'] = true; 03526 $wgGroupPermissions['sysop']['import'] = true; 03527 $wgGroupPermissions['sysop']['importupload'] = true; 03528 $wgGroupPermissions['sysop']['move'] = true; 03529 $wgGroupPermissions['sysop']['move-subpages'] = true; 03530 $wgGroupPermissions['sysop']['move-rootuserpages'] = true; 03531 $wgGroupPermissions['sysop']['patrol'] = true; 03532 $wgGroupPermissions['sysop']['autopatrol'] = true; 03533 $wgGroupPermissions['sysop']['protect'] = true; 03534 $wgGroupPermissions['sysop']['proxyunbannable'] = true; 03535 $wgGroupPermissions['sysop']['rollback'] = true; 03536 $wgGroupPermissions['sysop']['upload'] = true; 03537 $wgGroupPermissions['sysop']['reupload'] = true; 03538 $wgGroupPermissions['sysop']['reupload-shared'] = true; 03539 $wgGroupPermissions['sysop']['unwatchedpages'] = true; 03540 $wgGroupPermissions['sysop']['autoconfirmed'] = true; 03541 $wgGroupPermissions['sysop']['upload_by_url'] = true; 03542 $wgGroupPermissions['sysop']['ipblock-exempt'] = true; 03543 $wgGroupPermissions['sysop']['blockemail'] = true; 03544 $wgGroupPermissions['sysop']['markbotedits'] = true; 03545 $wgGroupPermissions['sysop']['apihighlimits'] = true; 03546 $wgGroupPermissions['sysop']['browsearchive'] = true; 03547 $wgGroupPermissions['sysop']['noratelimit'] = true; 03548 $wgGroupPermissions['sysop']['movefile'] = true; 03549 $wgGroupPermissions['sysop']['unblockself'] = true; 03550 $wgGroupPermissions['sysop']['suppressredirect'] = true; 03551 #$wgGroupPermissions['sysop']['mergehistory'] = true; 03552 03553 // Permission to change users' group assignments 03554 $wgGroupPermissions['bureaucrat']['userrights'] = true; 03555 $wgGroupPermissions['bureaucrat']['noratelimit'] = true; 03556 // Permission to change users' groups assignments across wikis 03557 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true; 03558 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth 03559 #$wgGroupPermissions['bureaucrat']['override-export-depth'] = true; 03560 03561 #$wgGroupPermissions['sysop']['deleterevision'] = true; 03562 // To hide usernames from users and Sysops 03563 #$wgGroupPermissions['suppress']['hideuser'] = true; 03564 // To hide revisions/log items from users and Sysops 03565 #$wgGroupPermissions['suppress']['suppressrevision'] = true; 03566 // For private suppression log access 03567 #$wgGroupPermissions['suppress']['suppressionlog'] = true; 03568 03575 # $wgGroupPermissions['developer']['siteadmin'] = true; 03576 03587 $wgRevokePermissions = array(); 03588 03592 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' ); 03593 03612 $wgGroupsAddToSelf = array(); 03613 03615 $wgGroupsRemoveFromSelf = array(); 03616 03624 $wgRestrictionTypes = array( 'create', 'edit', 'move', 'upload' ); 03625 03636 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' ); 03637 03645 $wgNamespaceProtection = array(); 03646 03653 $wgNonincludableNamespaces = array(); 03654 03671 $wgAutoConfirmAge = 0; 03672 03681 $wgAutoConfirmCount = 0; 03682 03703 $wgAutopromote = array( 03704 'autoconfirmed' => array( '&', 03705 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ), 03706 array( APCOND_AGE, &$wgAutoConfirmAge ), 03707 ), 03708 ); 03709 03724 $wgAutopromoteOnce = array( 03725 'onEdit' => array(), 03726 'onView' => array() 03727 ); 03728 03733 $wgAutopromoteOnceLogInRC = true; 03734 03750 $wgAddGroups = array(); 03752 $wgRemoveGroups = array(); 03753 03758 $wgAvailableRights = array(); 03759 03764 $wgDeleteRevisionsLimit = 0; 03765 03768 $wgAccountCreationThrottle = 0; 03769 03780 $wgSpamRegex = array(); 03781 03783 $wgSummarySpamRegex = array(); 03784 03798 $wgFilterCallback = false; 03799 03804 $wgEnableDnsBlacklist = false; 03805 03810 $wgEnableSorbs = false; 03811 03829 $wgDnsBlacklistUrls = array( 'http.dnsbl.sorbs.net.' ); 03830 03835 $wgSorbsUrl = array(); 03836 03841 $wgProxyWhitelist = array(); 03842 03852 $wgRateLimits = array( 03853 'edit' => array( 03854 'anon' => null, // for any and all anonymous edits (aggregate) 03855 'user' => null, // for each logged-in user 03856 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user' 03857 'ip' => null, // for each anon and recent account 03858 'subnet' => null, // ... with final octet removed 03859 ), 03860 'move' => array( 03861 'user' => null, 03862 'newbie' => null, 03863 'ip' => null, 03864 'subnet' => null, 03865 ), 03866 'mailpassword' => array( 03867 'anon' => null, 03868 ), 03869 'emailuser' => array( 03870 'user' => null, 03871 ), 03872 ); 03873 03877 $wgRateLimitLog = null; 03878 03883 $wgRateLimitsExcludedIPs = array(); 03884 03889 $wgPutIPinRC = true; 03890 03895 $wgQueryPageDefaultLimit = 50; 03896 03901 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 ); 03902 # end of user rights settings 03904 03905 /************************************************************************/ 03919 $wgBlockOpenProxies = false; 03921 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 ); 03923 $wgProxyScriptPath = "$IP/maintenance/proxy_check.php"; 03925 $wgProxyMemcExpiry = 86400; 03927 $wgSecretKey = false; 03929 $wgProxyList = array(); 03931 $wgProxyKey = false; 03932 # end of proxy scanner settings 03934 03935 /************************************************************************/ 03943 $wgCookieExpiration = 180*86400; 03944 03949 $wgCookieDomain = ''; 03950 03951 03956 $wgCookiePath = '/'; 03957 03964 $wgCookieSecure = 'detect'; 03965 03972 $wgDisableCookieCheck = false; 03973 03979 $wgCookiePrefix = false; 03980 03986 $wgCookieHttpOnly = true; 03987 03992 $wgHttpOnlyBlacklist = array( 03993 // Internet Explorer for Mac; sometimes the cookies work, sometimes 03994 // they don't. It's difficult to predict, as combinations of path 03995 // and expiration options affect its parsing. 03996 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/', 03997 ); 03998 04000 $wgCacheVaryCookies = array(); 04001 04003 $wgSessionName = false; 04004 # end of cookie settings } 04006 04007 /************************************************************************/ 04018 $wgUseTeX = false; 04019 04020 /* @} */ # end LaTeX } 04021 04022 /************************************************************************/ 04035 $wgDebugLogFile = ''; 04036 04040 $wgDebugLogPrefix = ''; 04041 04047 $wgDebugRedirects = false; 04048 04054 $wgDebugRawPage = false; 04055 04064 $wgDebugComments = false; 04065 04069 $wgDebugDumpSql = false; 04070 04077 $wgDebugLogGroups = array(); 04078 04084 $wgShowDebug = false; 04085 04090 $wgDebugTimestamps = false; 04091 04095 $wgDebugPrintHttpHeaders = true; 04096 04100 $wgSpecialVersionShowHooks = false; 04101 04107 $wgShowSQLErrors = false; 04108 04115 $wgShowExceptionDetails = false; 04116 04120 $wgShowDBErrorBacktrace = false; 04121 04125 $wgShowHostnames = false; 04126 04131 $wgDevelopmentWarnings = false; 04132 04138 $wgDeprecationReleaseLimit = '1.17'; 04139 04141 $wgProfileLimit = 0.0; 04142 04144 $wgProfileOnly = false; 04145 04154 $wgProfileToDatabase = false; 04155 04157 $wgProfileCallTree = false; 04158 04160 $wgProfilePerHost = false; 04161 04168 $wgUDPProfilerHost = '127.0.0.1'; 04169 04174 $wgUDPProfilerPort = '3811'; 04175 04177 $wgDebugProfiling = false; 04178 04180 $wgDebugFunctionEntry = false; 04181 04188 $wgStatsMethod = 'cache'; 04189 04196 $wgAggregateStatsID = false; 04197 04201 $wgDisableCounters = false; 04202 04212 $wgParserTestFiles = array( 04213 "$IP/tests/parser/parserTests.txt", 04214 "$IP/tests/parser/extraParserTests.txt" 04215 ); 04216 04230 $wgParserTestRemote = false; 04231 04235 $wgEnableJavaScriptTest = false; 04236 04240 $wgJavaScriptTestConfig = array( 04241 'qunit' => array( 04242 'documentation' => '//www.mediawiki.org/wiki/Manual:JavaScript_unit_testing', 04243 ), 04244 ); 04245 04246 04251 $wgCachePrefix = false; 04252 04260 $wgDebugToolbar = false; 04261 # end of profiling, testing and debugging } 04263 04264 /************************************************************************/ 04272 $wgDisableTextSearch = false; 04273 04278 $wgAdvancedSearchHighlighting = false; 04279 04284 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]'; 04285 04296 $wgCountTotalSearchHits = false; 04297 04307 $wgOpenSearchTemplate = false; 04308 04314 $wgEnableMWSuggest = false; 04315 04321 $wgEnableOpenSearchSuggest = true; 04322 04326 $wgSearchSuggestCacheExpiry = 1200; 04327 04334 $wgMWSuggestTemplate = false; 04335 04340 $wgDisableSearchUpdate = false; 04341 04350 $wgNamespacesToBeSearchedDefault = array( 04351 NS_MAIN => true, 04352 ); 04353 04360 $wgNamespacesToBeSearchedHelp = array( 04361 NS_PROJECT => true, 04362 NS_HELP => true, 04363 ); 04364 04370 $wgSearchEverythingOnlyLoggedIn = false; 04371 04376 $wgDisableInternalSearch = false; 04377 04389 $wgSearchForwardUrl = null; 04390 04396 $wgUseTwoButtonsSearchForm = true; 04397 04403 $wgSitemapNamespaces = false; 04404 04417 $wgSitemapNamespacesPriorities = false; 04418 04424 $wgEnableSearchContributorsByIP = true; 04425 # end of search settings 04427 04428 /************************************************************************/ 04437 $wgDiff3 = '/usr/bin/diff3'; 04438 04442 $wgDiff = '/usr/bin/diff'; 04443 04449 $wgPreviewOnOpenNamespaces = array( 04450 NS_CATEGORY => true 04451 ); 04452 04457 $wgUseExternalEditor = true; 04458 04460 $wgGoToEdit = false; 04461 04467 $wgUniversalEditButton = true; 04468 04474 $wgUseAutomaticEditSummaries = true; 04475 # end edit UI } 04477 04478 /************************************************************************/ 04488 if( !isset( $wgCommandLineMode ) ) { 04489 $wgCommandLineMode = false; 04490 } 04494 $wgCommandLineDarkBg = false; 04495 04501 $wgMaintenanceScripts = array(); 04502 04511 $wgReadOnly = null; 04512 04520 $wgReadOnlyFile = false; 04521 04531 $wgUpgradeKey = false; 04532 # End of maintenance } 04534 04535 /************************************************************************/ 04545 $wgRCMaxAge = 13 * 7 * 24 * 3600; 04546 04554 $wgRCFilterByAge = false; 04555 04560 $wgRCLinkLimits = array( 50, 100, 250, 500 ); 04561 $wgRCLinkDays = array( 1, 3, 7, 14, 30 ); 04562 04567 $wgRC2UDPAddress = false; 04568 04572 $wgRC2UDPPort = false; 04573 04580 $wgRC2UDPPrefix = ''; 04581 04586 $wgRC2UDPInterwikiPrefix = false; 04587 04592 $wgRC2UDPOmitBots = false; 04593 04599 $wgEnableNewpagesUserFilter = true; 04600 04602 $wgUseRCPatrol = true; 04603 04605 $wgUseNPPatrol = true; 04606 04608 $wgFeed = true; 04609 04612 $wgFeedLimit = 50; 04613 04621 $wgFeedCacheTimeout = 60; 04622 04625 $wgFeedDiffCutoff = 32768; 04626 04633 $wgOverrideSiteFeed = array(); 04634 04640 $wgFeedClasses = array( 04641 'rss' => 'RSSFeed', 04642 'atom' => 'AtomFeed', 04643 ); 04644 04649 $wgAdvertisedFeedTypes = array( 'atom' ); 04650 04652 $wgRCShowWatchingUsers = false; # UPO 04654 $wgPageShowWatchingUsers = false; 04656 $wgRCShowChangedSize = true; 04657 04663 $wgRCChangedSizeThreshold = 500; 04664 04668 $wgShowUpdatedMarker = true; 04669 04674 $wgDisableAnonTalk = false; 04675 04679 $wgAllowCategorizedRecentChanges = false; 04680 04685 $wgUseTagFilter = true; 04686 # end RC/watchlist } 04688 04689 /************************************************************************/ 04701 $wgRightsPage = null; 04702 04707 $wgRightsUrl = null; 04708 04714 $wgRightsText = null; 04715 04719 $wgRightsIcon = null; 04720 04724 $wgLicenseTerms = false; 04725 04730 $wgCopyrightIcon = null; 04731 04733 $wgUseCopyrightUpload = false; 04734 04742 $wgMaxCredits = 0; 04743 04746 $wgShowCreditsIfMax = true; 04747 # end of copyright and credits settings } 04749 04750 /************************************************************************/ 04763 $wgImportSources = array(); 04764 04772 $wgImportTargetNamespace = null; 04773 04779 $wgExportAllowHistory = true; 04780 04786 $wgExportMaxHistory = 0; 04787 04791 $wgExportAllowListContributors = false; 04792 04804 $wgExportMaxLinkDepth = 0; 04805 04809 $wgExportFromNamespaces = false; 04810 04814 $wgExportAllowAll = false; 04815 # end of import/export } 04817 04818 /*************************************************************************/ 04826 $wgExtensionFunctions = array(); 04827 04843 $wgExtensionMessagesFiles = array(); 04844 04857 $wgParserOutputHooks = array(); 04858 04868 $wgValidSkinNames = array(); 04869 04874 $wgSpecialPages = array(); 04875 04879 $wgAutoloadClasses = array(); 04880 04902 $wgExtensionCredits = array(); 04903 04908 $wgAuth = null; 04909 04919 $wgHooks = array(); 04920 04925 $wgJobClasses = array( 04926 'refreshLinks' => 'RefreshLinksJob', 04927 'refreshLinks2' => 'RefreshLinksJob2', 04928 'htmlCacheUpdate' => 'HTMLCacheUpdateJob', 04929 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible 04930 'sendMail' => 'EmaillingJob', 04931 'enotifNotify' => 'EnotifNotifyJob', 04932 'fixDoubleRedirect' => 'DoubleRedirectJob', 04933 'uploadFromUrl' => 'UploadFromUrlJob', 04934 ); 04935 04946 $wgJobTypesExcludedFromDefaultQueue = array(); 04947 04952 $wgSpecialPageCacheUpdates = array( 04953 'Statistics' => array( 'SiteStatsUpdate', 'cacheUpdate' ) 04954 ); 04955 04963 $wgExceptionHooks = array(); 04964 04972 $wgPagePropLinkInvalidations = array( 04973 'hiddencat' => 'categorylinks', 04974 ); 04975 # End extensions } 04977 04978 /*************************************************************************/ 04986 $wgUseCategoryBrowser = false; 04987 04992 $wgCategoryMagicGallery = true; 04993 04997 $wgCategoryPagingLimit = 200; 04998 05024 $wgCategoryCollation = 'uppercase'; 05025 # End categories } 05027 05028 /*************************************************************************/ 05039 $wgLogTypes = array( 05040 '', 05041 'block', 05042 'protect', 05043 'rights', 05044 'delete', 05045 'upload', 05046 'move', 05047 'import', 05048 'patrol', 05049 'merge', 05050 'suppress', 05051 ); 05052 05060 $wgLogRestrictions = array( 05061 'suppress' => 'suppressionlog' 05062 ); 05063 05084 $wgFilterLogTypes = array( 05085 'patrol' => true 05086 ); 05087 05097 $wgLogNames = array( 05098 '' => 'all-logs-page', 05099 'block' => 'blocklogpage', 05100 'protect' => 'protectlogpage', 05101 'rights' => 'rightslog', 05102 'delete' => 'dellogpage', 05103 'upload' => 'uploadlogpage', 05104 'move' => 'movelogpage', 05105 'import' => 'importlogpage', 05106 'patrol' => 'patrol-log-page', 05107 'merge' => 'mergelog', 05108 'suppress' => 'suppressionlog', 05109 ); 05110 05120 $wgLogHeaders = array( 05121 '' => 'alllogstext', 05122 'block' => 'blocklogtext', 05123 'protect' => 'protectlogtext', 05124 'rights' => 'rightslogtext', 05125 'delete' => 'dellogpagetext', 05126 'upload' => 'uploadlogpagetext', 05127 'move' => 'movelogpagetext', 05128 'import' => 'importlogpagetext', 05129 'patrol' => 'patrol-log-header', 05130 'merge' => 'mergelogpagetext', 05131 'suppress' => 'suppressionlogtext', 05132 ); 05133 05140 $wgLogActions = array( 05141 'block/block' => 'blocklogentry', 05142 'block/unblock' => 'unblocklogentry', 05143 'block/reblock' => 'reblock-logentry', 05144 'protect/protect' => 'protectedarticle', 05145 'protect/modify' => 'modifiedarticleprotection', 05146 'protect/unprotect' => 'unprotectedarticle', 05147 'protect/move_prot' => 'movedarticleprotection', 05148 'rights/rights' => 'rightslogentry', 05149 'rights/autopromote' => 'rightslogentry-autopromote', 05150 'upload/upload' => 'uploadedimage', 05151 'upload/overwrite' => 'overwroteimage', 05152 'upload/revert' => 'uploadedimage', 05153 'import/upload' => 'import-logentry-upload', 05154 'import/interwiki' => 'import-logentry-interwiki', 05155 'merge/merge' => 'pagemerge-logentry', 05156 'suppress/block' => 'blocklogentry', 05157 'suppress/reblock' => 'reblock-logentry', 05158 ); 05159 05166 $wgLogActionsHandlers = array( 05167 // move, move_redir 05168 'move/*' => 'MoveLogFormatter', 05169 // delete, restore, revision, event 05170 'delete/*' => 'DeleteLogFormatter', 05171 'suppress/revision' => 'DeleteLogFormatter', 05172 'suppress/event' => 'DeleteLogFormatter', 05173 'suppress/delete' => 'DeleteLogFormatter', 05174 'patrol/patrol' => 'PatrolLogFormatter', 05175 ); 05176 05180 $wgNewUserLog = true; 05181 # end logging } 05183 05184 /*************************************************************************/ 05192 $wgAllowSpecialInclusion = true; 05193 05198 $wgDisableQueryPageUpdate = false; 05199 05204 $wgSpecialPageGroups = array( 05205 'DoubleRedirects' => 'maintenance', 05206 'BrokenRedirects' => 'maintenance', 05207 'Lonelypages' => 'maintenance', 05208 'Uncategorizedpages' => 'maintenance', 05209 'Uncategorizedcategories' => 'maintenance', 05210 'Uncategorizedimages' => 'maintenance', 05211 'Uncategorizedtemplates' => 'maintenance', 05212 'Unusedcategories' => 'maintenance', 05213 'Unusedimages' => 'maintenance', 05214 'Protectedpages' => 'maintenance', 05215 'Protectedtitles' => 'maintenance', 05216 'Unusedtemplates' => 'maintenance', 05217 'Withoutinterwiki' => 'maintenance', 05218 'Longpages' => 'maintenance', 05219 'Shortpages' => 'maintenance', 05220 'Ancientpages' => 'maintenance', 05221 'Deadendpages' => 'maintenance', 05222 'Wantedpages' => 'maintenance', 05223 'Wantedcategories' => 'maintenance', 05224 'Wantedfiles' => 'maintenance', 05225 'Wantedtemplates' => 'maintenance', 05226 'Unwatchedpages' => 'maintenance', 05227 'Fewestrevisions' => 'maintenance', 05228 05229 'Userlogin' => 'login', 05230 'Userlogout' => 'login', 05231 'CreateAccount' => 'login', 05232 05233 'Recentchanges' => 'changes', 05234 'Recentchangeslinked' => 'changes', 05235 'Watchlist' => 'changes', 05236 'Newimages' => 'changes', 05237 'Newpages' => 'changes', 05238 'Log' => 'changes', 05239 'Tags' => 'changes', 05240 05241 'Upload' => 'media', 05242 'Listfiles' => 'media', 05243 'MIMEsearch' => 'media', 05244 'FileDuplicateSearch' => 'media', 05245 'Filepath' => 'media', 05246 05247 'Listusers' => 'users', 05248 'Activeusers' => 'users', 05249 'Listgrouprights' => 'users', 05250 'BlockList' => 'users', 05251 'Contributions' => 'users', 05252 'Emailuser' => 'users', 05253 'Listadmins' => 'users', 05254 'Listbots' => 'users', 05255 'Userrights' => 'users', 05256 'Block' => 'users', 05257 'Unblock' => 'users', 05258 'Preferences' => 'users', 05259 'ChangeEmail' => 'users', 05260 'ChangePassword' => 'users', 05261 'DeletedContributions' => 'users', 05262 'PasswordReset' => 'users', 05263 05264 'Mostlinked' => 'highuse', 05265 'Mostlinkedcategories' => 'highuse', 05266 'Mostlinkedtemplates' => 'highuse', 05267 'Mostcategories' => 'highuse', 05268 'Mostimages' => 'highuse', 05269 'Mostrevisions' => 'highuse', 05270 05271 'Allpages' => 'pages', 05272 'Prefixindex' => 'pages', 05273 'Listredirects' => 'pages', 05274 'Categories' => 'pages', 05275 'Disambiguations' => 'pages', 05276 05277 'Randompage' => 'redirects', 05278 'Randomredirect' => 'redirects', 05279 'Mypage' => 'redirects', 05280 'Mytalk' => 'redirects', 05281 'Mycontributions' => 'redirects', 05282 'Search' => 'redirects', 05283 'LinkSearch' => 'redirects', 05284 05285 'ComparePages' => 'pagetools', 05286 'Movepage' => 'pagetools', 05287 'MergeHistory' => 'pagetools', 05288 'Revisiondelete' => 'pagetools', 05289 'Undelete' => 'pagetools', 05290 'Export' => 'pagetools', 05291 'Import' => 'pagetools', 05292 'Whatlinkshere' => 'pagetools', 05293 05294 'Statistics' => 'wiki', 05295 'Version' => 'wiki', 05296 'Lockdb' => 'wiki', 05297 'Unlockdb' => 'wiki', 05298 'Allmessages' => 'wiki', 05299 'Popularpages' => 'wiki', 05300 05301 'Specialpages' => 'other', 05302 'Blockme' => 'other', 05303 'Booksources' => 'other', 05304 'JavaScriptTest' => 'other', 05305 ); 05306 05309 $wgSortSpecialPages = true; 05310 05315 $wgCountCategorizedImagesAsUsed = false; 05316 05321 $wgMaxRedirectLinksRetrieved = 500; 05322 # end special pages } 05324 05325 /*************************************************************************/ 05340 $wgActions = array( 05341 'credits' => true, 05342 'delete' => true, 05343 'edit' => true, 05344 'history' => true, 05345 'info' => true, 05346 'markpatrolled' => true, 05347 'protect' => true, 05348 'purge' => true, 05349 'raw' => true, 05350 'render' => true, 05351 'revert' => true, 05352 'revisiondelete' => true, 05353 'rollback' => true, 05354 'submit' => true, 05355 'unprotect' => true, 05356 'unwatch' => true, 05357 'view' => true, 05358 'watch' => true, 05359 ); 05360 05365 $wgDisabledActions = array(); 05366 05370 $wgAllowPageInfo = false; 05371 # end actions } 05373 05374 /*************************************************************************/ 05385 $wgDefaultRobotPolicy = 'index,follow'; 05386 05399 $wgNamespaceRobotPolicies = array(); 05400 05418 $wgArticleRobotPolicies = array(); 05419 05427 $wgExemptFromUserRobotsControl = null; 05428 # End robot policy } 05430 05431 /************************************************************************/ 05445 $wgEnableAPI = true; 05446 05452 $wgEnableWriteAPI = true; 05453 05459 $wgAPIModules = array(); 05460 $wgAPIMetaModules = array(); 05461 $wgAPIPropModules = array(); 05462 $wgAPIListModules = array(); 05463 05468 $wgAPIMaxDBRows = 5000; 05469 05474 $wgAPIMaxResultSize = 8388608; 05475 05480 $wgAPIMaxUncachedDiffs = 1; 05481 05486 $wgAPIRequestLog = false; 05487 05491 $wgAPICacheHelpTimeout = 60*60; 05492 05496 $wgUseAjax = true; 05497 05502 $wgAjaxExportList = array(); 05503 05508 $wgAjaxWatch = true; 05509 05513 $wgAjaxUploadDestCheck = true; 05514 05518 $wgAjaxLicensePreview = true; 05519 05539 $wgCrossSiteAJAXdomains = array(); 05540 05547 $wgCrossSiteAJAXdomainExceptions = array(); 05548 # End AJAX and API } 05550 05551 /************************************************************************/ 05559 $wgMaxShellMemory = 102400; 05560 05565 $wgMaxShellFileSize = 102400; 05566 05570 $wgMaxShellTime = 180; 05571 05575 $wgPhpCli = '/usr/bin/php'; 05576 05582 $wgShellLocale = 'en_US.utf8'; 05583 # End shell } 05585 05586 /************************************************************************/ 05594 $wgHTTPTimeout = 25; 05595 05599 $wgAsyncHTTPTimeout = 25; 05600 05604 $wgHTTPProxy = false; 05605 # End HTTP client } 05607 05608 /************************************************************************/ 05620 $wgJobRunRate = 1; 05621 05625 $wgUpdateRowsPerJob = 500; 05626 05630 $wgUpdateRowsPerQuery = 100; 05631 # End job queue } 05633 05634 /************************************************************************/ 05643 $wgHipHopBuildDirectory = false; 05644 05648 $wgHipHopBuildType = 'Debug'; 05649 05654 $wgHipHopCompilerProcs = 'detect'; 05655 05667 $wgExtensionsDirectory = false; 05668 05679 $wgCompiledFiles = array(); 05680 # End of HipHop compilation } 05682 05683 05684 /************************************************************************/ 05690 $wgExternalDiffEngine = false; 05691 05698 $wgDisableHardRedirects = false; 05699 05704 $wgLinkHolderBatchSize = 1000; 05705 05710 $wgRegisterInternalExternals = false; 05711 05715 $wgMaximumMovedPages = 100; 05716 05721 $wgFixDoubleRedirects = false; 05722 05727 $wgRedirectOnLogin = null; 05728 05746 $wgPoolCounterConf = null; 05747 05751 $wgUploadMaintenance = false; 05752 05756 $wgEnableSelenium = false; 05757 $wgSeleniumTestConfigs = array(); 05758 $wgSeleniumConfigFile = null; 05759 $wgDBtestuser = ''; //db user that has permission to create and drop the test databases only 05760 $wgDBtestpassword = ''; 05761