X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=5748f7aa69feeefcb0538d6f53af767c79d0a636;hb=2fc68d9bd7cfadb837707429be25a4f8350a7c37;hp=301f9a31ac9c23a365229823f4c7c2978c54267c;hpb=751bb307894a4f573276b0463059b4e468159da7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 301f9a31ac..5748f7aa69 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1,8 +1,11 @@ '; +$wgPasswordSender = 'MediaWiki Mail '; /** * dummy address which should be accepted during mail send action @@ -396,6 +432,8 @@ $wgDBprefix = ''; $wgDBschema = 'mediawiki'; /**#@-*/ +/** Live high performance sites should disable this - some checks acquire giant mysql locks */ +$wgCheckDBSchema = true; /** @@ -425,6 +463,12 @@ $wgSharedDB = null; # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php) # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php) # +# max lag: (optional) Maximum replication lag before a slave will taken out of rotation +# max threads: (optional) Maximum number of running threads +# +# These and any other user-defined properties will be assigned to the mLBInfo member +# variable of the Database object. +# # Leave at false to use the single-server variables above $wgDBservers = false; @@ -447,13 +491,32 @@ $wgDBClusterTimeout = 10; $wgDBminWordLen = 4; /** Set to true if using InnoDB tables */ $wgDBtransactions = false; -/** Set to true to use enhanced fulltext search */ -$wgDBmysql4 = false; +/** Set to true for compatibility with extensions that might be checking. + * MySQL 3.23.x is no longer supported. */ +$wgDBmysql4 = true; + +/** + * Set to true to engage MySQL 4.1/5.0 charset-related features; + * for now will just cause sending of 'SET NAMES=utf8' on connect. + * + * WARNING: THIS IS EXPERIMENTAL! + * + * May break if you're not using the table defs from mysql5/tables.sql. + * May break if you're upgrading an existing wiki if set differently. + * Broken symptoms likely to include incorrect behavior with page titles, + * usernames, comments etc containing non-ASCII characters. + * Might also cause failures on the object cache and other things. + * + * Even correct usage may cause failures with Unicode supplementary + * characters (those not in the Basic Multilingual Plane) unless MySQL + * has enhanced their Unicode support. + */ +$wgDBmysql5 = false; /** * Other wikis on this site, can be administered from a single developer * account. - * Array, interwiki prefix => database name + * Array numeric key => database name */ $wgLocalDatabases = array(); @@ -465,6 +528,8 @@ $wgMainCacheType = CACHE_NONE; $wgMessageCacheType = CACHE_ANYTHING; $wgParserCacheType = CACHE_ANYTHING; +$wgParserCacheExpireTime = 86400; + $wgSessionsInMemcached = false; $wgLinkCacheMemcached = false; # Not fully tested @@ -472,11 +537,22 @@ $wgLinkCacheMemcached = false; # Not fully tested * Memcached-specific settings * See docs/memcached.txt */ +$wgUseMemCached = false; $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working $wgMemCachedServers = array( '127.0.0.1:11000' ); $wgMemCachedDebug = false; +$wgMemCachedPersistent = false; +/** + * Directory for local copy of message cache, for use in addition to memcached + */ +$wgLocalMessageCache = false; +/** + * Directory for compiled constant message array databases + * WARNING: turning anything on will just break things, aaaaaah!!!! + */ +$wgCachedMessageArrays = false; # Language settings # @@ -550,10 +626,6 @@ $wgMsgCacheExpiry = 86400; # Whether to enable language variant conversion. $wgDisableLangConversion = false; -# Use article validation feature; turned off by default -$wgUseValidation = false; -$wgValidationForAnons = true ; - # Whether to use zhdaemon to perform Chinese text processing # zhdaemon is under developement, so normally you don't want to # use it unless for testing @@ -576,6 +648,26 @@ $wgMetaNamespaceTalk = false; $wgLocalInterwiki = 'w'; $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table +/** Interwiki caching settings. + $wgInterwikiCache specifies path to constant database file + This cdb database is generated by dumpInterwiki from maintenance + and has such key formats: + dbname:key - a simple key (e.g. enwiki:meta) + _sitename:key - site-scope key (e.g. wiktionary:meta) + __global:key - global-scope key (e.g. __global:meta) + __sites:dbname - site mapping (e.g. __sites:enwiki) + Sites mapping just specifies site name, other keys provide + "local url" data layout. + $wgInterwikiScopes specify number of domains to check for messages: + 1 - Just wiki(db)-level + 2 - wiki and global levels + 3 - site levels + $wgInterwikiFallbackSite - if unable to resolve from cache +*/ +$wgInterwikiCache = false; +$wgInterwikiScopes = 3; +$wgInterwikiFallbackSite = 'wiki'; + /** * If local interwikis are set up which allow redirects, * set this regexp to restrict URLs which will be displayed @@ -593,6 +685,7 @@ $wgRedirectSources = false; $wgShowIPinHeader = true; # For non-logged in users $wgMaxNameChars = 255; # Maximum number of bytes in username +$wgMaxArticleSize = 2048; # Maximum article size in kilobytes $wgExtraSubtitle = ''; $wgSiteSupportPage = ''; # A page where you users can receive donations @@ -611,10 +704,22 @@ $wgDebugRedirects = false; $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS $wgDebugComments = false; -$wgReadOnly = false; +$wgReadOnly = null; $wgLogQueries = false; + +/** + * Write SQL queries to the debug log + */ $wgDebugDumpSql = false; +/** + * Set to an array of log group keys to filenames. + * If set, wfDebugLog() output for that group will go to that file instead + * of the regular $wgDebugLogFile. Useful for enabling selective logging + * in production. + */ +$wgDebugLogGroups = array(); + /** * Whether to show "we're sorry, but there has been a database error" pages. * Displaying errors aids in debugging, but may display information useful @@ -622,12 +727,6 @@ $wgDebugDumpSql = false; */ $wgShowSQLErrors = false; -# Should [[Category:Dog]] on a page associate it with the -# category "Dog"? (a link to that category page will be -# added to the article, clicking it reveals a list of -# all articles in the category) -$wgUseCategoryMagic = true; - /** * disable experimental dmoz-like category browsing. Output things like: * Encyclopedia > Music > Style of Music > Jazz @@ -667,21 +766,28 @@ $wgUseCommaCount = false; */ $wgHitcounterUpdateFreq = 1; -# User rights settings -# -# It's not 100% safe, there could be security hole using that one. Use at your -# own risks. - -$wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( "Main Page", "Special:Userlogin", "Wikipedia:Help"); - -$wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor' - +# Basic user rights and block settings $wgSysopUserBans = true; # Allow sysops to ban logged-in users $wgSysopRangeBans = true; # Allow sysops to ban IP ranges - $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page +# Pages anonymous user may see as an array, e.g.: +# array ( "Main Page", "Special:Userlogin", "Wikipedia:Help"); +# NOTE: This will only work if $wgGroupPermissions['*']['read'] +# is false -- see below. Otherwise, ALL pages are accessible, +# regardless of this setting. +# Also note that this will only protect _pages in the wiki_. +# Uploaded files will remain readable. Make your upload +# directory name unguessable, or use .htaccess to protect it. +$wgWhitelistRead = false; + +/** + * Should editors be required to have a validated e-mail + * address before being allowed to edit? + */ +$wgEmailConfirmToEdit=false; + /** * Permission keys given to users in each group. * All users are implicitly in the '*' group including anonymous visitors; @@ -689,24 +795,44 @@ $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user tal * combined with the permissions of all groups that a given user is listed * in in the user_groups table. * + * Functionality to make pages inaccessible has not been extensively tested + * for security. Use at your own risk! + * * This replaces wgWhitelistAccount and wgWhitelistEdit */ $wgGroupPermissions = array(); +// Implicit group for all visitors $wgGroupPermissions['*' ]['createaccount'] = true; $wgGroupPermissions['*' ]['read'] = true; $wgGroupPermissions['*' ]['edit'] = true; +$wgGroupPermissions['*' ]['createpage'] = true; +$wgGroupPermissions['*' ]['createtalk'] = true; +// Implicit group for all logged-in accounts $wgGroupPermissions['user' ]['move'] = true; $wgGroupPermissions['user' ]['read'] = true; $wgGroupPermissions['user' ]['edit'] = true; +$wgGroupPermissions['user' ]['createpage'] = true; +$wgGroupPermissions['user' ]['createtalk'] = true; $wgGroupPermissions['user' ]['upload'] = true; +$wgGroupPermissions['user' ]['reupload'] = true; +$wgGroupPermissions['user' ]['reupload-shared'] = true; +$wgGroupPermissions['user' ]['minoredit'] = true; +// Implicit group for accounts that pass $wgAutoConfirmAge +$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true; + +// Users with bot privilege can have their edits hidden +// from various log pages by default $wgGroupPermissions['bot' ]['bot'] = true; +$wgGroupPermissions['bot' ]['autoconfirmed'] = true; +// Most extra permission abilities go to this group $wgGroupPermissions['sysop']['block'] = true; $wgGroupPermissions['sysop']['createaccount'] = true; $wgGroupPermissions['sysop']['delete'] = true; +$wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text $wgGroupPermissions['sysop']['editinterface'] = true; $wgGroupPermissions['sysop']['import'] = true; $wgGroupPermissions['sysop']['importupload'] = true; @@ -715,10 +841,17 @@ $wgGroupPermissions['sysop']['patrol'] = true; $wgGroupPermissions['sysop']['protect'] = true; $wgGroupPermissions['sysop']['rollback'] = true; $wgGroupPermissions['sysop']['upload'] = true; +$wgGroupPermissions['sysop']['reupload'] = true; +$wgGroupPermissions['sysop']['reupload-shared'] = true; +$wgGroupPermissions['sysop']['unwatchedpages'] = true; +$wgGroupPermissions['sysop']['autoconfirmed'] = true; +// Permission to change users' group assignments $wgGroupPermissions['bureaucrat']['userrights'] = true; -// Used by the Special:Renameuser extension -$wgGroupPermissions['bureaucrat']['renameuser'] = true; + +// Experimental permissions, not ready for production use +//$wgGroupPermissions['sysop']['deleterevision'] = true; +//$wgGroupPermissions['bureaucrat']['hiderevision'] = true; /** * The developer group is deprecated, but can be activated if need be @@ -728,6 +861,35 @@ $wgGroupPermissions['bureaucrat']['renameuser'] = true; */ # $wgGroupPermissions['developer']['siteadmin'] = true; +/** + * Set of available actions that can be restricted via Special:Protect + * You probably shouldn't change this. + * Translated trough restriction-* messages. + */ +$wgRestrictionTypes = array( 'edit', 'move' ); + +/** + * Set of permission keys that can be selected via Special:Protect. + * 'autoconfirm' allows all registerd users if $wgAutoConfirmAge is 0. + */ +$wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' ); + + +/** + * Number of seconds an account is required to age before + * it's given the implicit 'autoconfirm' group membership. + * This can be used to limit privileges of new accounts. + * + * Accounts created by earlier versions of the software + * may not have a recorded creation date, and will always + * be considered to pass the age test. + * + * When left at 0, all registered accounts will pass. + */ +$wgAutoConfirmAge = 0; +//$wgAutoConfirmAge = 600; // ten minutes +//$wgAutoConfirmAge = 3600*24; // one day + # Proxy scanner settings @@ -768,6 +930,8 @@ $wgCachePages = true; /** * Set this to current time to invalidate all prior cached pages. Affects both * client- and server-side caching. + * You can get the current date on your server by using the command: + * date +%Y%m%d%H%M%S */ $wgCacheEpoch = '20030516000000'; @@ -878,11 +1042,21 @@ $wgHTCPMulticastTTL = 1; */ $wgCookieDomain = ''; $wgCookiePath = '/'; +$wgCookieSecure = ($wgProto == 'https'); $wgDisableCookieCheck = false; /** Whether to allow inline image pointing to other websites */ $wgAllowExternalImages = true; +/** If the above is false, you can specify an exception here. Image URLs + * that start with this string are then rendered, while all others are not. + * You can use this to set up a trusted, simple repository of images. + * + * Example: + * $wgAllowExternalImagesFrom = 'http://127.0.0.1/'; + */ +$wgAllowExternalImagesFrom = ''; + /** Disable database-intensive features */ $wgMiserMode = false; /** Disable all query pages if miser mode is on, not just some */ @@ -891,6 +1065,8 @@ $wgDisableQueryPages = false; $wgUseWatchlistCache = false; /** The hour or so mentioned above */ $wgWLCacheTimeout = 3600; +/** Number of links to a page required before it is deemed "wanted" */ +$wgWantedPagesThreshold = 1; /** * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of @@ -918,6 +1094,12 @@ $wgProfileToDatabase = false; $wgProfileSampleRate = 1; /** If true, print a raw call tree instead of per-function report */ $wgProfileCallTree = false; +/** If not empty, specifies profiler type to load */ +$wgProfilerType = ''; + +/** Settings for UDP profiler */ +$wgUDPProfilerHost = '127.0.0.1'; +$wgUDPProfilerPort = '3811'; /** Detects non-matching wfProfileIn/wfProfileOut calls */ $wgDebugProfiling = false; @@ -928,6 +1110,7 @@ $wgDebugSquid = false; $wgDisableCounters = false; $wgDisableTextSearch = false; +$wgDisableSearchContext = false; /** * If you've disabled search semi-permanently, this also disables updates to the * table. If you ever re-enable, be sure to rebuild the search table. @@ -960,8 +1143,8 @@ $wgUseDumbLinkUpdate = false; * ALF_PRELOAD_EXISTENCE * Preload cur_id during replaceLinkHolders * ALF_NO_LINK_LOCK - * Don't use locking reads when updating the link table. This is - * necessary for wikis with a high edit rate for performance + * Don't use locking reads when updating the link table. This is + * necessary for wikis with a high edit rate for performance * reasons, but may cause link table inconsistency * ALF_NO_BLOCK_LOCK * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic @@ -1009,7 +1192,9 @@ $wgMimeTypeBlacklist= array( # PHP scripts may execute arbitrary code on the server 'application/x-php', 'text/x-php', # Other types that may be interpreted by some servers - 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh' + 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh', + # Windows metafile, client-side vulnerability on some systems + 'application/x-msmetafile' ); /** This is a flag to determine whether or not to check file extensions on upload. */ @@ -1059,8 +1244,9 @@ $wgUseImageResize = false; /** * Resizing can be done using PHP's internal image libraries or using - * ImageMagick. The later supports more file formats than PHP, which only - * supports PNG, GIF, JPG, XBM and WBMP. + * ImageMagick or another third-party converter, e.g. GraphicMagick. + * These support more file formats than PHP, which only supports PNG, + * GIF, JPG, XBM and WBMP. * * Use Image Magick instead of PHP builtin functions. */ @@ -1068,6 +1254,17 @@ $wgUseImageMagick = false; /** The convert command shipped with ImageMagick */ $wgImageMagickConvertCommand = '/usr/bin/convert'; +/** + * Use another resizing converter, e.g. GraphicMagick + * %s will be replaced with the source path, %d with the destination + * %w and %h will be replaced with the width and height + * + * An example is provided for GraphicMagick + * Leave as false to skip this + */ +#$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d" +$wgCustomConvertCommand = false; + # Scalable Vector Graphics (SVG) may be uploaded as images. # Since SVG support is not yet standard in browsers, it is # necessary to rasterize SVGs to PNG as a fallback format. @@ -1078,11 +1275,29 @@ $wgSVGConverters = array( 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output', 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output', 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input', + 'rsvg' => '$path/rsvg -w$width -h$height $input $output', ); /** Pick one of the above */ $wgSVGConverter = 'ImageMagick'; /** If not in the executable PATH, specify */ $wgSVGConverterPath = ''; +/** Don't scale a SVG larger than this */ +$wgSVGMaxSize = 1024; +/** + * Don't thumbnail an image if it will use too much working memory + * Default is 50 MB if decompressed to RGBA form, which corresponds to + * 12.5 million pixels or 3500x3500 + */ +$wgMaxImageArea = 1.25e7; +/** + * If rendered thumbnail files are older than this timestamp, they + * will be rerendered on demand as if the file didn't already exist. + * Update if there is some need to force thumbs and SVG rasterizations + * to rerender, such as fixes to rendering bugs. + */ +$wgThumbnailEpoch = '20030516000000'; + + /** Set $wgCommandLineMode if it's not set already, to avoid notices */ if( !isset( $wgCommandLineMode ) ) { @@ -1095,7 +1310,7 @@ if( !isset( $wgCommandLineMode ) ) { # /** Log IP addresses in the recentchanges table */ -$wgPutIPinRC = false; +$wgPutIPinRC = true; /** * Recentchanges items are periodically purged; entries older than this many @@ -1169,6 +1384,13 @@ $wgCapitalLinks = true; */ $wgImportSources = array(); +/** + * If set to false, disables the full-history option on Special:Export. + * This is currently poorly optimized for long edit histories, so is + * disabled on Wikimedia's sites. + */ +$wgExportAllowHistory = true; +$wgExportAllowListContributors = false ; /** Text matching this regular expression will be recognised as spam @@ -1208,6 +1430,7 @@ $wgRawHtml = false; * 'extension=tidy.so' to php.ini. */ $wgUseTidy = false; +$wgAlwaysUseTidy = false; $wgTidyBin = 'tidy'; $wgTidyConf = $IP.'/extensions/tidy/tidy.conf'; $wgTidyOpts = ''; @@ -1281,8 +1504,8 @@ $wgAllowPageInfo = false; /** Maximum indent level of toc. */ $wgMaxTocLevel = 999; -/** Use external C++ diff engine (module wikidiff from the extensions package) */ -$wgUseExternalDiffEngine = false; +/** Name of the external diff engine to use */ +$wgExternalDiffEngine = false; /** Use RC Patrolling to check for vandalism */ $wgUseRCPatrol = true; @@ -1293,7 +1516,11 @@ $wgFeedLimit = 50; /** _Minimum_ timeout for cached Recentchanges feed, in seconds. * A cached version will continue to be served out even if changes - * are made, until this many seconds runs out since the last render. */ + * are made, until this many seconds runs out since the last render. + * + * If set to 0, feed caching is disabled. Use this for debugging only; + * feed generation can be pretty slow with diffs. + */ $wgFeedCacheTimeout = 60; /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for @@ -1353,6 +1580,11 @@ $wgThumbLimits = array( */ $wgCategoryMagicGallery = true; +/** + * Paging limit for categories + */ +$wgCategoryPagingLimit = 200; + /** * Browser Blacklist for unicode non compliant browsers * Contains a list of regexps : "/regexp/" matching problematic browsers @@ -1378,6 +1610,9 @@ $wgBrowserBlackList = array( * Fake out the timezone that the server thinks it's in. This will be used for * date display and not for what's stored in the DB. Leave to null to retain * your server's OS-based timezone value. This is the same as the timezone. + * + * This variable is currently used ONLY for signature formatting, not for + * anything else. */ # $wgLocaltimezone = 'GMT'; # $wgLocaltimezone = 'PST8PDT'; @@ -1385,6 +1620,27 @@ $wgBrowserBlackList = array( # $wgLocaltimezone = 'CET'; $wgLocaltimezone = null; +/** + * Set an offset from UTC in hours to use for the default timezone setting + * for anonymous users and new user accounts. + * + * This setting is used for most date/time displays in the software, and is + * overrideable in user preferences. It is *not* used for signature timestamps. + * + * You can set it to match the configured server timezone like this: + * $wgLocalTZoffset = date("Z") / 3600; + * + * If your server is not configured for the timezone you want, you can set + * this in conjunction with the signature timezone and override the TZ + * environment variable like so: + * $wgLocaltimezone="Europe/Berlin"; + * putenv("TZ=$wgLocaltimezone"); + * $wgLocalTZoffset = date("Z") / 3600; + * + * Leave at NULL to show times in universal time (UTC/GMT). + */ +$wgLocalTZoffset = null; + /** * When translating messages with wfMsg(), it is not always clear what should be @@ -1562,6 +1818,18 @@ $wgExternalStores = false; */ $wgExternalServers = array(); +/** + * The place to put new revisions, false to put them in the local text table. + * Part of a URL, e.g. DB://cluster1 + * + * Can be an array instead of a single string, to enable data distribution. Keys + * must be consecutive integers, starting at zero. Example: + * + * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' ); + * + */ +$wgDefaultExternalStore = false; + /** * list of trusted media-types and mime types. * Use the MEDIATYPE_xxx constants to represent media types. @@ -1600,6 +1868,10 @@ $wgHTTPProxy = false; * Enable interwiki transcluding. Only when iw_trans=1. */ $wgEnableScaryTranscluding = false; +/** + * Expiry time for interwiki transclusion + */ +$wgTranscludeCacheExpiry = 3600; /** * Support blog-style "trackbacks" for articles. See @@ -1607,4 +1879,39 @@ $wgEnableScaryTranscluding = false; */ $wgUseTrackbacks = false; +/** + * Enable filtering of robots in Special:Watchlist + */ + +$wgFilterRobotsWL = false; + +/** + * Enable filtering of categories in Recentchanges + */ +$wgAllowCategorizedRecentChanges = false ; + +/** + * Number of jobs to perform per request. May be less than one in which case + * jobs are performed probabalistically. If this is zero, jobs will not be done + * during ordinary apache requests. In this case, maintenance/doJobs.php should + * be run periodically. + */ +$wgJobRunRate = 1; + +/** + * Log file for job execution + */ +$wgJobLogFile = false; + +/** + * Enable use of AJAX features, currently auto suggestion for the search bar + */ +$wgUseAjax = false; + +/** + * List of Ajax-callable functions + */ +$wgAjaxExportList = array( 'wfSajaxSearch' ); + + ?>