X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=e9889fdd725cf8d0fccfd42a42195dcf400abb81;hb=0a7dc1b2f66e3ec57a8efcf6118e65be6c492d87;hp=c344207d4a8120186f6e8253cb4cb8957f2a084e;hpb=e2106c40360fcd59b4b5bdc69d8c23e025ed2797;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index c344207d4a..e9889fdd72 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1,7 +1,7 @@ true, - NS_USER => true, - NS_USER_TALK => true, - NS_PROJECT_TALK => true, - NS_IMAGE_TALK => true, - NS_MEDIAWIKI_TALK => true, - NS_TEMPLATE_TALK => true, - NS_HELP_TALK => true, - NS_CATEGORY_TALK => true - ); + NS_USER => true, + NS_USER_TALK => true, + NS_PROJECT_TALK => true, + NS_IMAGE_TALK => true, + NS_MEDIAWIKI_TALK => true, + NS_TEMPLATE_TALK => true, + NS_HELP_TALK => true, + NS_CATEGORY_TALK => true +); $wgNamespacesToBeSearchedDefault = array( NS_MAIN => true, @@ -1304,7 +1378,27 @@ $wgMaxImageArea = 1.25e7; */ $wgThumbnailEpoch = '20030516000000'; +/** + * If set, inline scaled images will still produce tags ready for + * output instead of showing an error message. + * + * This may be useful if errors are transitory, especially if the site + * is configured to automatically render thumbnails on request. + * + * On the other hand, it may obscure error conditions from debugging. + * Enable the debug log or the 'thumbnail' log group to make sure errors + * are logged to a file for review. + */ +$wgIgnoreImageErrors = false; +/** + * Allow thumbnail rendering on page view. If this is false, a valid + * thumbnail URL is still output, but no file will be created at + * the target location. This may save some time if you have a + * thumb.php or 404 handler set up which is faster than the regular + * webserver(s). + */ +$wgGenerateThumbnailOnParse = true; /** Set $wgCommandLineMode if it's not set already, to avoid notices */ if( !isset( $wgCommandLineMode ) ) { @@ -1391,12 +1485,29 @@ $wgCapitalLinks = true; */ $wgImportSources = array(); +/** + * Optional default target namespace for interwiki imports. + * Can use this to create an incoming "transwiki"-style queue. + * Set to numeric key, not the name. + * + * Users may override this in the Special:Import dialog. + */ +$wgImportTargetNamespace = null; + /** * 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; + +/** + * If set nonzero, Special:Export requests for history of pages with + * more revisions than this will be rejected. On some big sites things + * could get bogged down by very very long pages. + */ +$wgExportMaxHistory = 0; + $wgExportAllowListContributors = false ; @@ -1446,25 +1557,43 @@ $wgTidyInternal = function_exists( 'tidy_load_config' ); /** See list of skins and their symbolic names in languages/Language.php */ $wgDefaultSkin = 'monobook'; -/** - * Settings added to this array will override the language globals for the user - * preferences used by anonymous visitors and newly created accounts. (See names - * and sample values in languages/Language.php) - * For instance, to disable section editing links: - * $wgDefaultUserOptions ['editsection'] = 0; - * - */ -$wgDefaultUserOptions = array(); - /** Whether or not to allow and use real name fields. Defaults to true. */ $wgAllowRealName = true; -/** Use XML parser? */ -$wgUseXMLparser = false ; +/***************************************************************************** + * Extensions + */ -/** Extensions */ -$wgSkinExtensionFunctions = array(); +/** + * A list of callback functions which are called once MediaWiki is fully initialised + */ $wgExtensionFunctions = array(); + +/** + * Extension functions for initialisation of skins. This is called somewhat earlier + * than $wgExtensionFunctions. + */ +$wgSkinExtensionFunctions = array(); + +/** + * List of valid skin names. + * The key should be the name in all lower case, the value should be a display name. + * The default skins will be added later, by Skin::getSkinNames(). Use + * Skin::getSkinNames() as an accessor if you wish to have access to the full list. + */ +$wgValidSkinNames = array(); + +/** + * Special page list. + * See the top of SpecialPage.php for documentation. + */ +$wgSpecialPages = array(); + +/** + * Array mapping class names to filenames, for autoloading. + */ +$wgAutoloadClasses = array(); + /** * An array of extension types and inside that their names, versions, authors * and urls, note that the version and url key can be omitted. @@ -1481,6 +1610,9 @@ $wgExtensionFunctions = array(); * Where $type is 'specialpage', 'parserhook', or 'other'. */ $wgExtensionCredits = array(); +/* + * end extensions + ******************************************************************************/ /** * Allow user Javascript page? @@ -1597,7 +1729,20 @@ $wgCategoryPagingLimit = 200; * Contains a list of regexps : "/regexp/" matching problematic browsers */ $wgBrowserBlackList = array( - "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/", + /** + * Netscape 2-4 detection + * The minor version may contain strings such as "Gold" or "SGoldC-SGI" + * Lots of non-netscape user agents have "compatible", so it's useful to check for that + * with a negative assertion. The [UIN] identifier specifies the level of security + * in a Netscape/Mozilla browser, checking for it rules out a number of fakers. + * The language string is unreliable, it is missing on NS4 Mac. + * + * Reference: http://www.psychedelix.com/agents/index.shtml + */ + '/^Mozilla\/2\.[^ ]+ .*?\((?!compatible).*; [UIN]/', + '/^Mozilla\/3\.[^ ]+ .*?\((?!compatible).*; [UIN]/', + '/^Mozilla\/4\.[^ ]+ .*?\((?!compatible).*; [UIN]/', + /** * MSIE on Mac OS 9 is teh sux0r, converts þ to , ð to , Þ to and Ð to * @@ -1610,7 +1755,7 @@ $wgBrowserBlackList = array( * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864 * @link http://en.wikipedia.org/wiki/Template%3AOS9 */ - "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/" + '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/' ); /** @@ -1628,21 +1773,21 @@ $wgBrowserBlackList = array( $wgLocaltimezone = null; /** - * Set an offset from UTC in hours to use for the default timezone setting + * Set an offset from UTC in minutes 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; + * $wgLocalTZoffset = date("Z") / 60; * * 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; + * $wgLocalTZoffset = date("Z") / 60; * * Leave at NULL to show times in universal time (UTC/GMT). */ @@ -1683,6 +1828,75 @@ $wgAuth = null; */ $wgHooks = array(); +/** + * The logging system has two levels: an event type, which describes the + * general category and can be viewed as a named subset of all logs; and + * an action, which is a specific kind of event that can exist in that + * log type. + */ +$wgLogTypes = array( '', + 'block', + 'protect', + 'rights', + 'delete', + 'upload', + 'move', + 'import' ); + +/** + * Lists the message key string for each log type. The localized messages + * will be listed in the user interface. + * + * Extensions with custom log types may add to this array. + */ +$wgLogNames = array( + '' => 'log', + 'block' => 'blocklogpage', + 'protect' => 'protectlogpage', + 'rights' => 'rightslog', + 'delete' => 'dellogpage', + 'upload' => 'uploadlogpage', + 'move' => 'movelogpage', + 'import' => 'importlogpage' ); + +/** + * Lists the message key string for descriptive text to be shown at the + * top of each log type. + * + * Extensions with custom log types may add to this array. + */ +$wgLogHeaders = array( + '' => 'alllogstext', + 'block' => 'blocklogtext', + 'protect' => 'protectlogtext', + 'rights' => 'rightslogtext', + 'delete' => 'dellogpagetext', + 'upload' => 'uploadlogpagetext', + 'move' => 'movelogpagetext', + 'import' => 'importlogpagetext', ); + +/** + * Lists the message key string for formatting individual events of each + * type and action when listed in the logs. + * + * Extensions with custom log types may add to this array. + */ +$wgLogActions = array( + 'block/block' => 'blocklogentry', + 'block/unblock' => 'unblocklogentry', + 'protect/protect' => 'protectedarticle', + 'protect/unprotect' => 'unprotectedarticle', + 'rights/rights' => 'rightslogentry', + 'delete/delete' => 'deletedarticle', + 'delete/restore' => 'undeletedarticle', + 'delete/revision' => 'revdelete-logentry', + 'upload/upload' => 'uploadedimage', + 'upload/revert' => 'uploadedimage', + 'move/move' => '1movedto2', + 'move/move_redir' => '1movedto2_redir', + 'import/upload' => 'import-logentry-upload', + 'import/interwiki' => 'import-logentry-interwiki' ); + /** * Experimental preview feature to fetch rendered text * over an XMLHttpRequest from JavaScript instead of @@ -1718,6 +1932,18 @@ $wgSearchForwardUrl = null; */ $wgNoFollowLinks = true; +/** + * Namespaces in which $wgNoFollowLinks doesn't apply. + * See Language.php for a list of namespaces. + */ +$wgNoFollowNsExceptions = array(); + +/** + * Robot policies for namespaces + * e.g. $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' ); + */ +$wgNamespaceRobotPolicies = array(); + /** * Specifies the minimal length of a user password. If set to * 0, empty passwords are allowed. @@ -1758,12 +1984,6 @@ $wgDisableHardRedirects = false; */ $wgEnableSorbs = false; -/** - * Use opm.blitzed.org to check for open proxies. - * Not yet actually used. - */ -$wgEnableOpm = false; - /** * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other * methods might say @@ -1795,6 +2015,9 @@ $wgRateLimits = array( 'ip' => null, 'subnet' => null, ), + 'mailpassword' => array( + 'anon' => NULL, + ), ); /** @@ -1802,6 +2025,11 @@ $wgRateLimits = array( */ $wgRateLimitLog = null; +/** + * Array of groups which should never trigger the rate limiter + */ +$wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' ); + /** * On Special:Unusedimages, consider images "used", if they are put * into a category. Default (false) is not to count those as used. @@ -1886,12 +2114,6 @@ $wgTranscludeCacheExpiry = 3600; */ $wgUseTrackbacks = false; -/** - * Enable filtering of robots in Special:Watchlist - */ - -$wgFilterRobotsWL = false; - /** * Enable filtering of categories in Recentchanges */ @@ -1900,29 +2122,90 @@ $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 + * during ordinary apache requests. In this case, maintenance/runJobs.php should * be run periodically. */ $wgJobRunRate = 1; /** - * Log file for job execution + * Number of rows to update per job + */ +$wgUpdateRowsPerJob = 500; + +/** + * Number of rows to update per query */ -$wgJobLogFile = false; +$wgUpdateRowsPerQuery = 10; /** - * Enable use of AJAX features, currently auto suggestion for the search bar + * Enable AJAX framework */ $wgUseAjax = false; /** - * List of Ajax-callable functions + * Enable auto suggestion for the search bar + * Requires $wgUseAjax to be true too. + * Causes wfSajaxSearch to be added to $wgAjaxExportList */ -$wgAjaxExportList = array( 'wfSajaxSearch' ); +$wgAjaxSearch = false; + +/** + * List of Ajax-callable functions. + * Extensions acting as Ajax callbacks must register here + */ +$wgAjaxExportList = array( ); /** * Allow DISPLAYTITLE to change title display */ $wgAllowDisplayTitle = false ; +/** + * Array of usernames which may not be registered or logged in from + * Maintenance scripts can still use these + */ +$wgReservedUsernames = array( 'MediaWiki default', 'Conversion script' ); + +/** + * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't + * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading + * crap files as images. When this directive is on, will be allowed in files with + * an "image/svg" MIME type. You should leave this disabled if your web server is misconfigured + * and doesn't send appropriate MIME types for SVG images. + */ +$wgAllowTitlesInSVG = false; + +/** + * Array of namespaces which can be deemed to contain valid "content", as far + * as the site statistics are concerned. Useful if additional namespaces also + * contain "content" which should be considered when generating a count of the + * number of articles in the wiki. + */ +$wgContentNamespaces = array( NS_MAIN ); + +/** + * Maximum amount of virtual memory available to shell processes under linux, in KB. + */ +$wgMaxShellMemory = 102400; + +/** + * DJVU settings + * Path of the djvutoxml executable + * Enable this and $wgDjvuRenderer to enable djvu rendering + */ +# $wgDjvuToXML = 'djvutoxml'; + +/** + * Path of the ddjvu DJVU renderer + * Enable this and $wgDjvuToXML to enable djvu rendering + */ +# $wgDjvuRenderer = 'ddjvu'; + +/** + * Path of the DJVU post processor + * May include command line options + * Default: ppmtojpeg, since ddjvu generates ppm output + */ +$wgDjvuPostProcessor = 'ppmtojpeg'; + ?>