X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=fd8ec0575ea4494cdcccfc57937d3446714660ea;hb=fdc2dc77a3996b490074a6fe3908ec9787be5b9a;hp=b1055302f6bd799707d6cfe3a73cb9f2794f6779;hpb=495f6344becb97c5b5c754acc347048903ce2b15;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index b1055302f6..fd8ec0575e 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -17,7 +17,7 @@ * http://www.mediawiki.org/wiki/Manual:Configuration_settings */ -/** +/** * @cond file_level_code * This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined */ @@ -26,7 +26,6 @@ if( !defined( 'MEDIAWIKI' ) ) { die( 1 ); } - # Create a site configuration object. Not used for much in a default install if ( !defined( 'MW_PHP4' ) ) { require_once( "$IP/includes/SiteConfiguration.php" ); @@ -35,45 +34,45 @@ if ( !defined( 'MW_PHP4' ) ) { /** @endcond */ /** MediaWiki version number */ -$wgVersion = '1.17alpha'; +$wgVersion = '1.18alpha'; /** Name of the site. It must be changed in LocalSettings.php */ $wgSitename = 'MediaWiki'; -/** - * URL of the server. It will be automatically built including https mode. +/** + * URL of the server. It will be automatically built including https mode. * * Example: * * $wgServer = http://example.com * * - * This is usually detected correctly by MediaWiki. If MediaWiki detects the - * wrong server, it will redirect incorrectly after you save a page. In that + * This is usually detected correctly by MediaWiki. If MediaWiki detects the + * wrong server, it will redirect incorrectly after you save a page. In that * case, set this variable to fix it. */ $wgServer = ''; /** @cond file_level_code */ if( isset( $_SERVER['SERVER_NAME'] ) ) { - $wgServerName = $_SERVER['SERVER_NAME']; + $serverName = $_SERVER['SERVER_NAME']; } elseif( isset( $_SERVER['HOSTNAME'] ) ) { - $wgServerName = $_SERVER['HOSTNAME']; + $serverName = $_SERVER['HOSTNAME']; } elseif( isset( $_SERVER['HTTP_HOST'] ) ) { - $wgServerName = $_SERVER['HTTP_HOST']; + $serverName = $_SERVER['HTTP_HOST']; } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) { - $wgServerName = $_SERVER['SERVER_ADDR']; + $serverName = $_SERVER['SERVER_ADDR']; } else { - $wgServerName = 'localhost'; + $serverName = 'localhost'; } $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; -$wgServer = $wgProto.'://' . $wgServerName; +$wgServer = $wgProto.'://' . $serverName; # If the port is a non-standard one, add it to the URL if( isset( $_SERVER['SERVER_PORT'] ) - && !strpos( $wgServerName, ':' ) - && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 ) + && !strpos( $serverName, ':' ) + && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 ) || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) { $wgServer .= ":" . $_SERVER['SERVER_PORT']; @@ -118,10 +117,10 @@ $wgUsePathInfo = ( strpos( php_sapi_name(), 'isapi' ) === false ); /** - * The extension to append to script names by default. This can either be .php + * The extension to append to script names by default. This can either be .php * or .php5. * - * Some hosting providers use PHP 4 for *.php files, and PHP 5 for *.php5. This + * Some hosting providers use PHP 4 for *.php files, and PHP 5 for *.php5. This * variable is provided to support those providers. */ $wgScriptExtension = '.php'; @@ -134,14 +133,21 @@ $wgScriptExtension = '.php'; $wgScript = false; /** - * The URL path to redirect.php. This is a script that is used by the Nostalgia + * The URL path to redirect.php. This is a script that is used by the Nostalgia * skin. * * Defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}". */ -$wgRedirectScript = false; ///< defaults to -/**@}*/ +$wgRedirectScript = false; ///< defaults to + +/** + * The URL path to load.php. + * + * Defaults to "{$wgScriptPath}/load{$wgScriptExtension}". + */ +$wgLoadScript = false; +/**@}*/ /************************************************************************//** * @name URLs and file paths @@ -153,8 +159,8 @@ $wgRedirectScript = false; ///< defaults to * These will relatively rarely need to be set manually, unless you are * splitting style sheets or images outside the main document root. * - * In this section, a "path" is usually a host-relative URL, i.e. a URL without - * the host part, that starts with a slash. In most cases a full URL is also + * In this section, a "path" is usually a host-relative URL, i.e. a URL without + * the host part, that starts with a slash. In most cases a full URL is also * acceptable. A "directory" is a local file path. * * In both paths and directories, trailing slashes should not be included. @@ -169,13 +175,13 @@ $wgStylePath = false; $wgStyleSheetPath = &$wgStylePath; /** - * The URL path of the skins directory. Should not point to an external domain. + * The URL path of the skins directory. Should not point to an external domain. * Defaults to "{$wgScriptPath}/skins". */ $wgLocalStylePath = false; /** - * The URL path of the extensions directory. + * The URL path of the extensions directory. * Defaults to "{$wgScriptPath}/extensions". */ $wgExtensionAssetsPath = false; @@ -186,10 +192,10 @@ $wgExtensionAssetsPath = false; $wgStyleDirectory = false; /** - * The URL path for primary article page views. This path should contain $1, - * which is replaced by the article title. + * The URL path for primary article page views. This path should contain $1, + * which is replaced by the article title. * - * Defaults to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on + * Defaults to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on * $wgUsePathInfo. */ $wgArticlePath = false; @@ -224,34 +230,42 @@ $wgAppleTouchIcon = false; /** * The URL path of the math directory. Defaults to "{$wgUploadPath}/math". * - * See http://www.mediawiki.org/wiki/Manual:Enable_TeX for details about how to + * See http://www.mediawiki.org/wiki/Manual:Enable_TeX for details about how to * set up mathematical formula display. */ $wgMathPath = false; /** - * The filesystem path of the math directory. + * The filesystem path of the math directory. * Defaults to "{$wgUploadDirectory}/math". * - * See http://www.mediawiki.org/wiki/Manual:Enable_TeX for details about how to + * See http://www.mediawiki.org/wiki/Manual:Enable_TeX for details about how to * set up mathematical formula display. */ $wgMathDirectory = false; /** - * The local filesystem path to a temporary directory. This is not required to - * be web accessible. + * The local filesystem path to a temporary directory. This is not required to + * be web accessible. * * Defaults to "{$wgUploadDirectory}/tmp". */ $wgTmpDirectory = false; /** - * If set, this URL is added to the start of $wgUploadPath to form a complete - * upload URL. + * If set, this URL is added to the start of $wgUploadPath to form a complete + * upload URL. */ $wgUploadBaseUrl = ""; +/** + * To enable remote on-demand scaling, set this to the thumbnail base URL. + * Full thumbnail URL will be like $wgUploadStashScalerBaseUrl/e/e6/Foo.jpg/123px-Foo.jpg + * where 'e6' are the first two characters of the MD5 hash of the file name. + * If $wgUploadStashScalerBaseUrl is set to false, thumbs are rendered locally as needed. + */ +$wgUploadStashScalerBaseUrl = false; + /** * To set 'pretty' URL paths for actions other than * plain page views, add to this array. For instance: @@ -296,8 +310,8 @@ $wgDeletedDirectory = false; // Defaults to $wgUploadDirectory/deleted $wgImgAuthDetails = false; /** - * If this is enabled, img_auth.php will not allow image access unless the wiki - * is private. This improves security when image uploads are hosted on a + * If this is enabled, img_auth.php will not allow image access unless the wiki + * is private. This improves security when image uploads are hosted on a * separate domain. */ $wgImgAuthPublicTest = true; @@ -342,7 +356,7 @@ $wgImgAuthPublicTest = true; * - descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/File: * - scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g. * http://en.wikipedia.org/w - * - scriptExtension Script extension of the MediaWiki installation, equivalent to + * - scriptExtension Script extension of the MediaWiki installation, equivalent to * $wgScriptExtension, e.g. .php5 defaults to .php * * - articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1 @@ -387,13 +401,6 @@ $wgUseInstantCommons = false; */ $wgShowEXIF = function_exists( 'exif_read_data' ); -/** - * Set to true to enable the upload _link_ while local uploads are disabled. - * Assumes that the special page link will be bounced to another server where - * uploads do work. - */ -$wgRemoteUploads = false; - /** * If you operate multiple wikis, you can define a shared upload path here. * Uploads to this wiki will NOT be put there - they will be put into @@ -446,7 +453,7 @@ $wgUploadNavigationUrl = false; /** * Point the upload link for missing files to an external URL, as with - * $wgUploadNavigationUrl. The URL will get (?|&)wpDestFile= + * $wgUploadNavigationUrl. The URL will get (?|&)wpDestFile= * appended to it as appropriate. */ $wgUploadMissingFileUrl = false; @@ -463,13 +470,13 @@ $wgThumbnailScriptPath = false; $wgSharedThumbnailScriptPath = false; /** - * Set this to false if you do not want MediaWiki to divide your images + * Set this to false if you do not want MediaWiki to divide your images * directory into many subdirectories, for improved performance. * - * It's almost always good to leave this enabled. In previous versions of - * MediaWiki, some users set this to false to allow images to be added to the - * wiki by simply copying them into $wgUploadDirectory and then running - * maintenance/rebuildImages.php to register them in the database. This is no + * It's almost always good to leave this enabled. In previous versions of + * MediaWiki, some users set this to false to allow images to be added to the + * wiki by simply copying them into $wgUploadDirectory and then running + * maintenance/rebuildImages.php to register them in the database. This is no * longer recommended, use maintenance/importImages.php instead. * * Note that this variable may be ignored if $wgLocalFileRepo is set. @@ -496,6 +503,10 @@ $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:"; /** * This is the list of preferred extensions for uploading files. Uploading files * with extensions not in this list will trigger a warning. + * + * WARNING: If you add any OpenOffice or Microsoft Office file formats here, + * such as odt or doc, and untrusted users are allowed to upload files, then + * your wiki will be vulnerable to cross-site request forgery (CSRF). */ $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' ); @@ -510,7 +521,7 @@ $wgFileBlacklist = array( # May contain harmful executables for Windows victims 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ); -/** +/** * Files with these mime types will never be allowed as uploads * if $wgVerifyMimeType is enabled. */ @@ -533,12 +544,18 @@ $wgMimeTypeBlacklist = array( 'application/x-opc+zip', ); -/** This is a flag to determine whether or not to check file extensions on upload. */ +/** + * This is a flag to determine whether or not to check file extensions on upload. + * + * WARNING: setting this to false is insecure for public wikis. + */ $wgCheckFileExtensions = true; /** * If this is turned off, users may override the warning for files not covered * by $wgFileExtensions. + * + * WARNING: setting this to false is insecure for public wikis. */ $wgStrictFileExtensions = true; @@ -718,40 +735,40 @@ $wgShowArchiveThumbnails = true; $wgUseImageResize = true; -/** - * Internal name of virus scanner. This servers as a key to the - * $wgAntivirusSetup array. Set this to NULL to disable virus scanning. If not +/** + * Internal name of virus scanner. This servers as a key to the + * $wgAntivirusSetup array. Set this to NULL to disable virus scanning. If not * null, every file uploaded will be scanned for viruses. */ $wgAntivirus= null; -/** - * Configuration for different virus scanners. This an associative array of - * associative arrays. It contains one setup array per known scanner type. +/** + * Configuration for different virus scanners. This an associative array of + * associative arrays. It contains one setup array per known scanner type. * The entry is selected by $wgAntivirus, i.e. * valid values for $wgAntivirus are the keys defined in this array. * - * The configuration array for each scanner contains the following keys: + * The configuration array for each scanner contains the following keys: * "command", "codemap", "messagepattern": * - * "command" is the full command to call the virus scanner - %f will be - * replaced with the name of the file to scan. If not present, the filename - * will be appended to the command. Note that this must be overwritten if the + * "command" is the full command to call the virus scanner - %f will be + * replaced with the name of the file to scan. If not present, the filename + * will be appended to the command. Note that this must be overwritten if the * scanner is not in the system path; in that case, plase set - * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full + * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full * path. * - * "codemap" is a mapping of exit code to return codes of the detectVirus + * "codemap" is a mapping of exit code to return codes of the detectVirus * function in SpecialUpload. - * - An exit code mapped to AV_SCAN_FAILED causes the function to consider - * the scan to be failed. This will pass the file if $wgAntivirusRequired + * - An exit code mapped to AV_SCAN_FAILED causes the function to consider + * the scan to be failed. This will pass the file if $wgAntivirusRequired * is not set. - * - An exit code mapped to AV_SCAN_ABORTED causes the function to consider - * the file to have an usupported format, which is probably imune to + * - An exit code mapped to AV_SCAN_ABORTED causes the function to consider + * the file to have an usupported format, which is probably imune to * virusses. This causes the file to pass. - * - An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning + * - An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning * no virus was found. - * - All other codes (like AV_VIRUS_FOUND) will cause the function to report + * - All other codes (like AV_VIRUS_FOUND) will cause the function to report * a virus. * - You may use "*" as a key in the array to catch all exit codes not mapped otherwise. * @@ -806,7 +823,7 @@ $wgMimeTypeFile = "includes/mime.types"; $wgMimeInfoFile= "includes/mime.info"; #$wgMimeInfoFile= null; #use built-in defaults only. -/** +/** * Switch for loading the FileInfo extension by PECL at runtime. * This should be used only if fileinfo is installed as a shared object * or a dynamic library. @@ -824,7 +841,7 @@ $wgLoadFileinfoExtension = false; */ $wgMimeDetectorCommand = null; -/** +/** * Switch for trivial mime detection. Used by thumb.php to disable all fancy * things, because only a few types of images are needed and file extensions * can be trusted. @@ -877,7 +894,7 @@ $wgThumbLimits = array( * Default parameters for the tag */ $wgGalleryOptions = array ( - 'imagesPerRow' => 4, // Default number of images per-row in the gallery + 'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize 'imageWidth' => 120, // Width of the cells containing images in galleries (in "px") 'imageHeight' => 120, // Height of the cells containing images in galleries (in "px") 'captionLength' => 20, // Length of caption to truncate (in characters) @@ -952,21 +969,28 @@ $wgDjvuOutputExtension = 'jpg'; /** * Site admin email address. */ -$wgEmergencyContact = 'wikiadmin@' . $wgServerName; +$wgEmergencyContact = 'wikiadmin@' . $serverName; /** * Password reminder email address. * * The address we should use as sender when a user is requesting his password. */ -$wgPasswordSender = 'MediaWiki Mail '; +$wgPasswordSender = 'apache@' . $serverName; + +unset( $serverName ); # Don't leak local variables to global scope + +/** + * Password reminder name + */ +$wgPasswordSenderName = 'MediaWiki Mail'; /** * Dummy address which should be accepted during mail send action. * It might be necessary to adapt the address or to set it equal * to the $wgEmergencyContact address. */ -$wgNoReplyAddress = 'reply@not.possible'; +$wgNoReplyAddress = 'reply@not.possible'; /** * Set to true to enable the e-mail basic features: @@ -1017,11 +1041,13 @@ $wgNewPasswordExpiry = 3600 * 24 * 7; */ $wgSMTP = false; -/** For email notification on page changes */ -$wgPasswordSender = $wgEmergencyContact; +/** + * Additional email parameters, will be passed as the last argument to mail() call. + */ +$wgAdditionalMailParams = null; /** - * True: from page editor if s/he opted-in. False: Enotif mails appear to come + * True: from page editor if s/he opted-in. False: Enotif mails appear to come * from $wgEmergencyContact */ $wgEnotifFromEditor = false; @@ -1033,7 +1059,7 @@ $wgEnotifFromEditor = false; /** * Require email authentication before sending mail to an email addres. This is - * highly recommended. It prevents MediaWiki from being used as an open spam + * highly recommended. It prevents MediaWiki from being used as an open spam * relay. */ $wgEmailAuthentication = true; @@ -1050,13 +1076,13 @@ $wgEnotifWatchlist = false; $wgEnotifUserTalk = false; /** - * Set the Reply-to address in notifications to the editor's address, if user + * Set the Reply-to address in notifications to the editor's address, if user * allowed this in the preferences. */ $wgEnotifRevealEditorAddress = false; /** - * Send notification mails on minor edits to watchlist pages. This is enabled + * Send notification mails on minor edits to watchlist pages. This is enabled * by default. Does not affect user talk notifications. */ $wgEnotifMinorEdits = true; @@ -1077,7 +1103,7 @@ $wgEnotifImpersonal = false; $wgEnotifMaxRecips = 500; /** - * Send mails via the job queue. This can be useful to reduce the time it + * Send mails via the job queue. This can be useful to reduce the time it * takes to save a page that a lot of people are watching. */ $wgEnotifUseJobQ = false; @@ -1088,7 +1114,7 @@ $wgEnotifUseJobQ = false; $wgEnotifUseRealName = false; /** - * Array of usernames who will be sent a notification email for every change + * Array of usernames who will be sent a notification email for every change * which occurs on a wiki. */ $wgUsersNotifiedOnAllChanges = array(); @@ -1118,7 +1144,7 @@ $wgDBadminuser = null; /** Separate password for maintenance tasks. Leave as null to use the default. */ $wgDBadminpassword = null; -/** +/** * Search type. * Leave as null to select the default search engine for the * selected database type (eg SearchMySQL), or set to a class @@ -1133,11 +1159,11 @@ $wgDBTableOptions = 'ENGINE=InnoDB'; /** * SQL Mode - default is turning off all modes, including strict, if set. - * null can be used to skip the setting for performance reasons and assume + * null can be used to skip the setting for performance reasons and assume * DBA has done his best job. * String override can be used for some additional fun :-) */ -$wgSQLMode = ''; +$wgSQLMode = ''; /** Mediawiki schema */ $wgDBmwschema = 'mediawiki'; @@ -1169,7 +1195,7 @@ $wgAllDBsAreLocalhost = false; * MediaWiki's tables may have side effects if you try to share them. * EXPERIMENTAL * - * $wgSharedPrefix is the table prefix for the shared database. It defaults to + * $wgSharedPrefix is the table prefix for the shared database. It defaults to * $wgDBprefix. */ $wgSharedDB = null; @@ -1394,7 +1420,7 @@ $wgAntiLockFlags = 0; $wgMaxArticleSize = 2048; /** - * The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to + * The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to * raise PHP's memory limit if it's below this amount. */ $wgMemoryLimit = "50M"; @@ -1417,8 +1443,8 @@ $wgMemoryLimit = "50M"; $wgCacheDirectory = false; /** - * Main cache type. This should be a cache with fast access, but it may have - * limited space. By default, it is disabled, since the database is not fast + * Main cache type. This should be a cache with fast access, but it may have + * limited space. By default, it is disabled, since the database is not fast * enough to make it worthwhile. * * The options are: @@ -1426,10 +1452,10 @@ $wgCacheDirectory = false; * - CACHE_ANYTHING: Use anything, as long as it works * - CACHE_NONE: Do not cache * - CACHE_DB: Store cache objects in the DB - * - CACHE_MEMCACHED: MemCached, must specify servers in $wgMemCacheServers + * - CACHE_MEMCACHED: MemCached, must specify servers in $wgMemCachedServers * - CACHE_ACCEL: eAccelerator, APC, XCache or WinCache - * - CACHE_DBA: Use PHP's DBA extension to store in a DBM-style - * database. This is slow, and is not recommended for + * - CACHE_DBA: Use PHP's DBA extension to store in a DBM-style + * database. This is slow, and is not recommended for * anything other than debugging. * * @see $wgMessageCacheType, $wgParserCacheType @@ -1437,7 +1463,7 @@ $wgCacheDirectory = false; $wgMainCacheType = CACHE_NONE; /** - * The cache type for storing the contents of the MediaWiki namespace. This + * The cache type for storing the contents of the MediaWiki namespace. This * cache is used for a small amount of data which is expensive to regenerate. * * For available types see $wgMainCacheType. @@ -1445,7 +1471,7 @@ $wgMainCacheType = CACHE_NONE; $wgMessageCacheType = CACHE_ANYTHING; /** - * The cache type for storing article HTML. This is used to store data which + * The cache type for storing article HTML. This is used to store data which * is expensive to regenerate, and benefits from having plenty of storage space. * * For available types see $wgMainCacheType. @@ -1453,7 +1479,7 @@ $wgMessageCacheType = CACHE_ANYTHING; $wgParserCacheType = CACHE_ANYTHING; /** - * The expiry time for the parser cache, in seconds. The default is 86.4k + * The expiry time for the parser cache, in seconds. The default is 86.4k * seconds, otherwise known as a day. */ $wgParserCacheExpireTime = 86400; @@ -1464,17 +1490,17 @@ $wgParserCacheExpireTime = 86400; $wgDBAhandler = 'db3'; /** - * Store sessions in MemCached. This can be useful to improve performance, or to - * avoid the locking behaviour of PHP's default session handler, which tends to + * Store sessions in MemCached. This can be useful to improve performance, or to + * avoid the locking behaviour of PHP's default session handler, which tends to * prevent multiple requests for the same user from acting concurrently. */ $wgSessionsInMemcached = false; -/** +/** * This is used for setting php's session.save_handler. In practice, you will * almost never need to change this ever. Other options might be 'user' or * 'session_mysql.' Setting to null skips setting this entirely (which might be - * useful if you're doing cross-application sessions, see bug 11381) + * useful if you're doing cross-application sessions, see bug 11381) */ $wgSessionHandler = 'files'; @@ -1484,8 +1510,8 @@ $wgMemCachedDebug = false; /** The list of MemCached servers and port numbers */ $wgMemCachedServers = array( '127.0.0.1:11000' ); -/** - * Use persistent connections to MemCached, which are shared across multiple +/** + * Use persistent connections to MemCached, which are shared across multiple * requests. */ $wgMemCachedPersistent = false; @@ -1569,12 +1595,20 @@ $wgStyleVersion = '301'; */ $wgUseFileCache = false; -/** - * Directory where the cached page will be saved. +/** + * Directory where the cached page will be saved. * Defaults to "$wgCacheDirectory/html". */ $wgFileCacheDirectory = false; +/** + * Depth of the subdirectory hierarchy to be created under + * $wgFileCacheDirectory. The subdirectories will be named based on + * the MD5 hash of the title. A value of 0 means all cache files will + * be put directly into the main file cache directory. + */ +$wgFileCacheDepth = 2; + /** * Keep parsed pages in a cache (objectcache table or memcached) * to speed up output of the same page viewed by another user with the @@ -1618,7 +1652,10 @@ $wgSidebarCacheExpiry = 86400; */ $wgUseGzip = false; -/** Whether MediaWiki should send an ETag header */ +/** + * Whether MediaWiki should send an ETag header. Seems to cause + * broken behavior with Squid 2.6, see bug 7098. + */ $wgUseETag = false; /** Clock skew or the one-second resolution of time() can occasionally cause cache @@ -1628,22 +1665,33 @@ $wgUseETag = false; */ $wgClockSkewFudge = 5; +/** + * Invalidate various caches when LocalSettings.php changes. This is equivalent + * to setting $wgCacheEpoch to the modification time of LocalSettings.php, as + * was previously done in the default LocalSettings.php file. + * + * On high-traffic wikis, this should be set to false, to avoid the need to + * check the file modification time, and to avoid the performance impact of + * unnecessary cache invalidations. + */ +$wgInvalidateCacheOnLocalSettingsChange = true; + /** @} */ # end of cache settings /************************************************************************//** * @name HTTP proxy (Squid) settings * - * Many of these settings apply to any HTTP proxy used in front of MediaWiki, + * Many of these settings apply to any HTTP proxy used in front of MediaWiki, * although they are referred to as Squid settings for historical reasons. * - * Achieving a high hit ratio with an HTTP proxy requires special - * configuration. See http://www.mediawiki.org/wiki/Manual:Squid_caching for + * Achieving a high hit ratio with an HTTP proxy requires special + * configuration. See http://www.mediawiki.org/wiki/Manual:Squid_caching for * more details. * * @{ */ -/** +/** * Enable/disable Squid. * See http://www.mediawiki.org/wiki/Manual:Squid_caching */ @@ -1655,7 +1703,7 @@ $wgUseESI = false; /** Send X-Vary-Options header for better caching (requires patched Squid) */ $wgUseXVO = false; -/** +/** * Internal server name as known to Squid, if different. Example: * * $wgInternalServer = 'http://yourinternal.tld:8000'; @@ -1695,23 +1743,23 @@ $wgSquidServersNoPurge = array(); /** Maximum number of titles to purge in any one client operation */ $wgMaxSquidPurgeTitles = 400; -/** +/** * HTCP multicast address. Set this to a multicast IP address to enable HTCP. * - * Note that MediaWiki uses the old non-RFC compliant HTCP format, which was + * Note that MediaWiki uses the old non-RFC compliant HTCP format, which was * present in the earliest Squid implementations of the protocol. */ $wgHTCPMulticastAddress = false; -/** - * HTCP multicast port. +/** + * HTCP multicast port. * @see $wgHTCPMulticastAddress */ $wgHTCPPort = 4827; -/** - * HTCP multicast TTL. - * @see $wgHTCPMulticastAddress +/** + * HTCP multicast TTL. + * @see $wgHTCPMulticastAddress */ $wgHTCPMulticastTTL = 1; @@ -1752,7 +1800,18 @@ $wgExtraLanguageNames = array(); * These codes are leftoffs from renames, or other legacy things. * Also, qqq is a dummy "language" for documenting messages. */ -$wgDummyLanguageCodes = array( 'qqq', 'als', 'be-x-old', 'dk', 'fiu-vro', 'iu', 'nb', 'simple', 'tp' ); +$wgDummyLanguageCodes = array( + 'als', + 'bat-smg', + 'be-x-old', + 'dk', + 'fiu-vro', + 'iu', + 'nb', + 'qqq', + 'simple', + 'tp', +); /** @deprecated Since MediaWiki 1.5, this must always be set to UTF-8. */ $wgInputEncoding = 'UTF-8'; @@ -1760,29 +1819,29 @@ $wgInputEncoding = 'UTF-8'; $wgOutputEncoding = 'UTF-8'; /** - * Character set for use in the article edit box. Language-specific encodings - * may be defined. + * Character set for use in the article edit box. Language-specific encodings + * may be defined. * - * This historic feature is one of the first that was added by former MediaWiki + * This historic feature is one of the first that was added by former MediaWiki * team leader Brion Vibber, and is used to support the Esperanto x-system. */ $wgEditEncoding = ''; /** - * Set this to true to replace Arabic presentation forms with their standard + * Set this to true to replace Arabic presentation forms with their standard * forms in the U+0600-U+06FF block. This only works if $wgLanguageCode is * set to "ar". * - * Note that pages with titles containing presentation forms will become + * Note that pages with titles containing presentation forms will become * inaccessible, run maintenance/cleanupTitles.php to fix this. */ $wgFixArabicUnicode = true; /** * Set this to true to replace ZWJ-based chillu sequences in Malayalam text - * with their Unicode 5.1 equivalents. This only works if $wgLanguageCode is - * set to "ml". Note that some clients (even new clients as of 2010) do not - * support these characters. + * with their Unicode 5.1 equivalents. This only works if $wgLanguageCode is + * set to "ml". Note that some clients (even new clients as of 2010) do not + * support these characters. * * If you enable this on an existing wiki, run maintenance/cleanupTitles.php to * fix any ZWJ sequences in existing page titles. @@ -1802,20 +1861,20 @@ $wgFixMalayalamUnicode = true; $wgAllUnicodeFixes = false; /** - * Set this to eg 'ISO-8859-1' to perform character set conversion when - * loading old revisions not marked with "utf-8" flag. Use this when - * converting a wiki from MediaWiki 1.4 or earlier to UTF-8 without the + * Set this to eg 'ISO-8859-1' to perform character set conversion when + * loading old revisions not marked with "utf-8" flag. Use this when + * converting a wiki from MediaWiki 1.4 or earlier to UTF-8 without the * burdensome mass conversion of old text data. * - * NOTE! This DOES NOT touch any fields other than old_text.Titles, comments, - * user names, etc still must be converted en masse in the database before + * NOTE! This DOES NOT touch any fields other than old_text.Titles, comments, + * user names, etc still must be converted en masse in the database before * continuing as a UTF-8 wiki. */ $wgLegacyEncoding = false; /** - * Browser Blacklist for unicode non compliant browsers. Contains a list of - * regexps : "/regexp/" matching problematic browsers. These browsers will + * Browser Blacklist for unicode non compliant browsers. Contains a list of + * regexps : "/regexp/" matching problematic browsers. These browsers will * be served encoded unicode in the edit box instead of real unicode. */ $wgBrowserBlackList = array( @@ -1871,12 +1930,12 @@ $wgBrowserBlackList = array( */ $wgLegacySchemaConversion = false; -/** +/** * Enable to allow rewriting dates in page text. * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES. */ $wgUseDynamicDates = false; -/** +/** * Enable dates like 'May 12' instead of '12 May', this only takes effect if * the interface is set to English. */ @@ -1909,10 +1968,13 @@ $wgDisableLangConversion = false; /** Whether to enable language variant conversion for links. */ $wgDisableTitleConversion = false; +/** Whether to enable cononical language links in meta data. */ +$wgCanonicalLanguageLinks = true; + /** Default variant code, if false, the default will be the language code */ $wgDefaultLanguageVariant = false; -/** +/** * Disabled variants array of language variant conversion. Example: * * $wgDisabledVariants[] = 'zh-mo'; @@ -2084,7 +2146,7 @@ $wgWellFormedXml = true; $wgXhtmlNamespaces = array(); /** - * Show IP address, for non-logged in users. It's necessary to switch this off + * Show IP address, for non-logged in users. It's necessary to switch this off * for some forms of caching. */ $wgShowIPinHeader = true; @@ -2104,7 +2166,7 @@ $wgSiteNotice = ''; $wgExtraSubtitle = ''; /** - * If this is set, a "donate" link will appear in the sidebar. Set it to a URL. + * If this is set, a "donate" link will appear in the sidebar. Set it to a URL. */ $wgSiteSupportPage = ''; @@ -2129,8 +2191,8 @@ $wgDefaultSkin = 'vector'; $wgAllowUserSkin = true; /** - * Specify the name of a skin that should not be presented in the list of - * available skins. Use for blacklisting a skin which you do not want to + * Specify the name of a skin that should not be presented in the list of + * available skins. Use for blacklisting a skin which you do not want to * remove from the .../skins/ directory */ $wgSkipSkin = ''; @@ -2190,26 +2252,6 @@ $wgUseSiteJs = true; /** Use the site's Cascading Style Sheets (CSS)? */ $wgUseSiteCss = true; -/** - * Version of jQuery to use. Currently available versions are 1.3.2 and 1.4.2 . - * Other versions can be installed by hand at your own risk, see - * http://www.mediawiki.org/wiki/Manual:$wgJQueryVersion - */ -$wgJQueryVersion = '1.4.2'; - -/** - * Use a minified version of jQuery. If enabled, jquery-versionnumber.min.js - * will be used instead of jquery-versionnumber.js . It is recommended you only - * disable this for debugging purposes. - */ -$wgJQueryMinified = true; - -/** - * Include jQuery on every page served by MediaWiki. You can disable this if - * your user/site-wide JS doesn't need it and you want to save bandwidth. - */ -$wgJQueryOnEveryPage = true; - /** * Set to false to disable application of access keys and tooltips, * eg to avoid keyboard conflicts with system keys or as a low-level @@ -2239,6 +2281,45 @@ $wgDisableOutputCompression = false; */ $wgExperimentalHtmlIds = true; +/** + * Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code + * You can add new icons to the built in copyright or poweredby, or you can create + * a new block. Though note that you may need to add some custom css to get good styling + * of new blocks in monobook. vector and modern should work without any special css. + * + * $wgFooterIcons itself is a key/value array. + * The key os the name of a block that the icons will be wrapped in. + * The final id varries by skin; Monobook and Vector will turn poweredby into f-poweredbyico + * while Modern turns it into mw_poweredby. + * The value is a key/value array of icons. The key may or may not be used by the + * skin but it can be used to find the icon and unset it or change the icon if needed. + * This is useful for disabling icons that are set by extensions. + * The value should be either a string or an array. + * If it is a string it will be output directly, however some skins may choose to ignore it. + * An array is the preferred format for the icon, the following keys are used: + * src: An absolute url to the image to use for the icon, this is recommended + * but not required, however some skins will ignore icons without an image + * url: The url to use in the arround the text or icon, if not set an will not be outputted + * alt: This is the text form of the icon, it will be displayed without an image in + * skins like Modern or if src is not set, and will otherwise be used as + * the alt="" for the image. This key is required. + * width and height: If the icon specified by src is not of the standard size + * you can specify the size of image to use with these keys. + * Otherwise they will default to the standard 88x31. + */ +$wgFooterIcons = array( + "copyright" => array( + "copyright" => array(), // placeholder for the built in copyright icon + ), + "poweredby" => array( + "mediawiki" => array( + "src" => null, // Defaults to "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" + "url" => "http://www.mediawiki.org/", + "alt" => "Powered by MediaWiki", + ) + ), +); + /** * Search form behavior for Vector skin only * true = use an icon search button @@ -2258,14 +2339,6 @@ $wgVectorUseIconWatch = false; */ $wgVectorShowVariantName = false; -/** - * Add extra stylesheets for Vector - This is only being used so that we can play around with different options while - * keeping our CSS code in the SVN and not having to change the main Vector styles. This will probably go away later on. - * null = add no extra styles - * array = list of style paths relative to skins/vector/ - */ -$wgVectorExtraStyles = null; - /** * Display user edit counts in various prominent places. */ @@ -2279,6 +2352,65 @@ $wgBetterDirectionality = false; /** @} */ # End of output format settings } +/*************************************************************************//** + * @name Resource loader settings + * @{ + */ + +/** + * Client-side resource modules. Extensions should add their module definitions + * here. + * + * Example: + * $wgResourceModules['ext.myExtension'] = array( + * 'scripts' => 'myExtension.js', + * 'styles' => 'myExtension.css', + * 'dependencies' => array( 'jquery.cookie', 'jquery.tabIndex' ), + * 'localBasePath' => dirname( __FILE__ ), + * 'remoteExtPath' => 'MyExtension', + * ); + */ +$wgResourceModules = array(); + +/** + * Maximum time in seconds to cache resources served by the resource loader + */ +$wgResourceLoaderMaxage = array( + 'versioned' => array( + // Squid/Varnish but also any other public proxy cache between the client and MediaWiki + 'server' => 30 * 24 * 60 * 60, // 30 days + // On the client side (e.g. in the browser cache). + 'client' => 30 * 24 * 60 * 60, // 30 days + ), + 'unversioned' => array( + 'server' => 5 * 60, // 5 minutes + 'client' => 5 * 60, // 5 minutes + ), +); + +/** + * Whether to embed private modules inline with HTML output or to bypass + * caching and check the user parameter against $wgUser to prevent + * unauthorized access to private modules. + */ +$wgResourceLoaderInlinePrivateModules = true; + +/** + * The default debug mode (on/off) for of ResourceLoader requests. This will still + * be overridden when the debug URL parameter is used. + */ +$wgResourceLoaderDebug = false; + +/** + * Enable embedding of certain resources using Edge Side Includes. This will + * improve performance but only works if there is something in front of the + * web server (e..g a Squid or Varnish server) configured to process the ESI. + */ +$wgResourceLoaderUseESI = false; + +/** @} */ # End of resource loader settings } + + /*************************************************************************//** * @name Page title and interwiki link settings * @{ @@ -2365,8 +2497,15 @@ $wgNamespaceAliases = array(); */ $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+"; -$wgLocalInterwiki = 'w'; -$wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table +/** + * The interwiki prefix of the current wiki, or false if it doesn't have one. + */ +$wgLocalInterwiki = false; + +/** + * Expiry time for cache of interwiki table + */ +$wgInterwikiExpiry = 10800; /** Interwiki caching settings. $wgInterwikiCache specifies path to constant database file @@ -2543,7 +2682,7 @@ $wgCleanSignatures = true; /** Whether to allow inline image pointing to other websites */ $wgAllowExternalImages = false; -/** +/** * 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. @@ -2653,7 +2792,7 @@ $wgNoFollowDomainExceptions = array(); $wgAllowDisplayTitle = true; /** - * For consistency, restrict DISPLAYTITLE to titles that normalize to the same + * For consistency, restrict DISPLAYTITLE to titles that normalize to the same * canonical DB key. */ $wgRestrictDisplayTitle = true; @@ -2731,6 +2870,17 @@ $wgPasswordSalt = true; */ $wgMinimalPasswordLength = 1; +/** + * Enabes or disables JavaScript-based suggestions of password strength + */ +$wgLivePasswordStrengthChecks = false; + +/** + * List of weak passwords which shouldn't be allowed. + * The items should be in lowercase. The check is case insensitive. + */ +$wgWeakPasswords = array( 'password', 'passpass', 'passpass1' ); + /** * Maximum number of Unicode characters in signature */ @@ -2792,6 +2942,7 @@ $wgDefaultUserOptions = array( 'imagesize' => 2, 'justify' => 0, 'math' => 1, + 'minordefault' => 0, 'newpageshidepatrolled' => 0, 'nocache' => 0, 'noconvertlink' => 0, @@ -2915,6 +3066,19 @@ $wgAutocreatePolicy = 'login'; */ $wgAllowPrefChange = array(); +/** + * This is to let user authenticate using https when they come from http. + * Based on an idea by George Herbert on wikitech-l: + * http://lists.wikimedia.org/pipermail/wikitech-l/2010-October/050065.html + * @since 1.17 + */ +$wgSecureLogin = false; +/** + * Default for 'use secure login' checkbox + * @since 1.17 + */ +$wgSecureLoginStickHTTPS = false; + /** @} */ # end user accounts } /************************************************************************//** @@ -2928,12 +3092,12 @@ $wgSysopUserBans = true; /** Allow sysops to ban IP ranges */ $wgSysopRangeBans = true; -/** +/** * Number of seconds before autoblock entries expire. Default 86400 = 1 day. */ $wgAutoblockExpiry = 86400; -/** +/** * Set this to true to allow blocked users to edit their own user talk page. */ $wgBlockAllowsUTEdit = false; @@ -2942,10 +3106,10 @@ $wgBlockAllowsUTEdit = false; $wgSysopEmailBans = true; /** - * Limits on the possible sizes of range blocks. + * Limits on the possible sizes of range blocks. * - * CIDR notation is hard to understand, it's easy to mistakenly assume that a - * /1 is a small range and a /31 is a large range. Setting this to half the + * CIDR notation is hard to understand, it's easy to mistakenly assume that a + * /1 is a small range and a /31 is a large range. Setting this to half the * number of bits avoids such errors. */ $wgBlockCIDRLimit = array( @@ -2971,11 +3135,11 @@ $wgBlockDisablesLogin = false; * * Special:Userlogin and Special:Resetpass are always whitelisted. * - * NOTE: This will only work if $wgGroupPermissions['*']['read'] is false -- + * 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. You can use img_auth.php to protect uploaded files, + * Also note that this will only protect _pages in the wiki_. Uploaded files + * will remain readable. You can use img_auth.php to protect uploaded files, * see http://www.mediawiki.org/wiki/Manual:Image_Authorization */ $wgWhitelistRead = false; @@ -3082,6 +3246,7 @@ $wgGroupPermissions['sysop']['browsearchive'] = true; $wgGroupPermissions['sysop']['noratelimit'] = true; $wgGroupPermissions['sysop']['movefile'] = true; $wgGroupPermissions['sysop']['unblockself'] = true; +$wgGroupPermissions['sysop']['suppressredirect'] = true; #$wgGroupPermissions['sysop']['mergehistory'] = true; // Permission to change users' group assignments @@ -3100,6 +3265,11 @@ $wgGroupPermissions['bureaucrat']['noratelimit'] = true; // For private suppression log access #$wgGroupPermissions['suppress']['suppressionlog'] = true; +// Permission to disable user accounts +// Note that disabling an account is not reversible without a system administrator +// who has direct access to the database +#$wgGroupPermissions['bureaucrat']['disableaccount'] = true; + /** * The developer group is deprecated, but can be activated if need be * to use the 'lockdb' and 'unlockdb' special pages. Those require @@ -3185,11 +3355,11 @@ $wgNamespaceProtection = array(); $wgNonincludableNamespaces = array(); /** - * Number of seconds an account is required to age before it's given the - * implicit 'autoconfirm' group membership. This can be used to limit + * 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 + * 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. @@ -3239,7 +3409,7 @@ $wgAutopromote = array( ); /** - * $wgAddGroups and $wgRemoveGroups can be used to give finer control over who + * $wgAddGroups and $wgRemoveGroups can be used to give finer control over who * can assign which groups at Special:Userrights. Example configuration: * * @code @@ -3288,7 +3458,7 @@ $wgSpamRegex = array(); /** Same as the above except for edit summaries */ $wgSummarySpamRegex = array(); -/** +/** * Similarly you can get a function to do the job. The function will be given * the following args: * - a Title object for the article the edit is made on @@ -3385,9 +3555,9 @@ $wgRateLimitsExcludedGroups = array(); */ $wgRateLimitsExcludedIPs = array(); -/** - * Log IP addresses in the recentchanges table; can be accessed only by - * extensions (e.g. CheckUser) or a DB admin +/** + * Log IP addresses in the recentchanges table; can be accessed only by + * extensions (e.g. CheckUser) or a DB admin */ $wgPutIPinRC = true; @@ -3495,7 +3665,7 @@ $wgSessionName = false; */ $wgUseTeX = false; /** Location of the texvc binary */ -$wgTexvc = './math/texvc'; +$wgTexvc = $IP . '/math/texvc'; /** * Texvc background color * use LaTeX color format as used in \special function @@ -3635,7 +3805,7 @@ $wgProfileLimit = 0.0; /** Don't put non-profiling info into log file */ $wgProfileOnly = false; -/** +/** * Log sums from profiling into "profiling" table in db. * * You have to create a 'profiling' table in your database before using @@ -3651,15 +3821,15 @@ $wgProfileCallTree = false; /** Should application server host be put into profiling table */ $wgProfilePerHost = false; -/** +/** * Host for UDP profiler. * - * The host should be running a daemon which can be obtained from MediaWiki + * The host should be running a daemon which can be obtained from MediaWiki * Subversion at: http://svn.wikimedia.org/svnroot/mediawiki/trunk/udpprofile */ $wgUDPProfilerHost = '127.0.0.1'; -/** +/** * Port for UDP profiler. * @see $wgUDPProfilerHost */ @@ -3700,8 +3870,8 @@ $wgUseTrackbacks = false; * Use full paths. */ $wgParserTestFiles = array( - "$IP/maintenance/parserTests.txt", - "$IP/maintenance/ExtraParserTests.txt" + "$IP/maintenance/tests/parser/parserTests.txt", + "$IP/maintenance/tests/parser/ExtraParserTests.txt" ); /** @@ -3740,6 +3910,8 @@ $wgAdvancedSearchHighlighting = false; /** * Regexp to match word boundaries, defaults for non-CJK languages * should be empty for CJK since the words are not separate + * + * @todo FIXME: checks for lower than required PHP version (5.1.x). */ $wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]' : '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround @@ -3921,7 +4093,7 @@ $wgUseAutomaticEditSummaries = true; * @{ */ -/** +/** * @cond file_level_code * Set $wgCommandLineMode if it's not set already, to avoid notices */ @@ -3950,7 +4122,7 @@ $wgMaintenanceScripts = array(); */ $wgReadOnly = null; -/*** +/** * If this lock file exists (size > 0), the wiki will be forced into read-only mode. * Its contents will be shown to users as part of the read-only warning * message. @@ -3959,6 +4131,17 @@ $wgReadOnly = null; */ $wgReadOnlyFile = false; +/** + * When you run the web-based upgrade utility, it will tell you what to set + * this to in order to authorize the upgrade process. It will subsequently be + * used as a password, to authorize further upgrades. + * + * For security, do not set this to a guessable string. Use the value supplied + * by the install/upgrade process. To cause the upgrader to generate a new key, + * delete the old key from LocalSettings.php. + */ +$wgUpgradeKey = false; + /** @} */ # End of maintenance } /************************************************************************//** @@ -3974,16 +4157,16 @@ $wgReadOnlyFile = false; $wgRCMaxAge = 13 * 7 * 24 * 3600; /** - * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers - * higher than what will be stored. Note that this is disabled by default - * because we sometimes do have RC data which is beyond the limit for some - * reason, and some users may use the high numbers to display that data which + * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers + * higher than what will be stored. Note that this is disabled by default + * because we sometimes do have RC data which is beyond the limit for some + * reason, and some users may use the high numbers to display that data which * is still there. */ $wgRCFilterByAge = false; /** - * List of Days and Limits options to list in the Special:Recentchanges and + * List of Days and Limits options to list in the Special:Recentchanges and * Special:Recentchangeslinked pages. */ $wgRCLinkLimits = array( 50, 100, 250, 500 ); @@ -4358,15 +4541,6 @@ $wgSpecialPageCacheUpdates = array( */ $wgExceptionHooks = array(); -/** - * List of page property names and descriptions of what they are. - * This is used for the API prop=pageprops module to know which - * page props to search for. The help message is only seen from - * the API help page. - */ -$wgPageProps = array( - 'hiddencat' => 'Whether or not the page has a category with the __HIDDENCAT__ magic word', -); /** * Page property link table invalidation lists. When a page property @@ -4529,6 +4703,7 @@ $wgLogActions = array( 'protect/unprotect' => 'unprotectedarticle', 'protect/move_prot' => 'movedarticleprotection', 'rights/rights' => 'rightslogentry', + 'rights/disable' => 'disableaccount-logentry', 'delete/delete' => 'deletedarticle', 'delete/restore' => 'undeletedarticle', 'delete/revision' => 'revdelete-logentry', @@ -4772,9 +4947,9 @@ $wgExemptFromUserRobotsControl = null; /************************************************************************//** * @name AJAX and API - * Note: The AJAX entry point which this section refers to is gradually being + * Note: The AJAX entry point which this section refers to is gradually being * replaced by the API entry point, api.php. They are essentially equivalent. - * Both of them are used for dynamic client-side features, via XHR. + * Both of them are used for dynamic client-side features, via XHR. * @{ */ @@ -5041,8 +5216,11 @@ $wgRedirectOnLogin = null; * The remaining elements are passed through to the class as constructor * parameters. Example: * - * $wgPoolCounterConf = array( 'Article::view' => array( + * $wgPoolCounterConf = array( 'ArticleView' => array( * 'class' => 'PoolCounter_Client', + * 'timeout' => 15, // wait timeout in seconds + * 'workers' => 5, // maximum number of active threads in each pool + * 'maxqueue' => 50, // maximum number of total threads in each pool * ... any extension-specific options... * ); */ @@ -5054,41 +5232,12 @@ $wgPoolCounterConf = null; $wgUploadMaintenance = false; /** - * Enabes or disables JavaScript-based suggestions of password strength - */ -$wgLivePasswordStrengthChecks = false; - -/** - * The location of the MediaWiki package repository to use. - * - * @since 1.17 - * @var string + * Allows running of selenium tests via maintenance/tests/RunSeleniumTests.php */ -$wgRepositoryApiLocation = 'http://www.mediawiki.org/w/api.php'; +$wgEnableSelenium = false; +$wgSeleniumTestConfigs = array(); +$wgSeleniumConfigFile = null; -/** - * The location of the remote web interface for the selected repository. - * - * @since 1.17 - * @var string - */ -$wgRepositoryLocation = 'http://www.mediawiki.org/wiki/Special:Repository'; - -/** - * List of package states to filter update detection and extension listing on. - * - * @since 1.17 - * @var array - */ -$wgRepositoryPackageStates = array( - //'dev', - //'alpha', - 'beta', - //'rc', - 'stable', - //'deprecated', -); - /** * For really cool vim folding this needs to be at the end: * vim: foldmarker=@{,@} foldmethod=marker