/includes/DefaultSettings.php
PHP | 6229 lines | 3635 code | 342 blank | 2252 comment | 1 complexity | 89594001d152ccab661228ff148970c3 MD5 | raw file
Possible License(s): GPL-2.0, Apache-2.0, LGPL-3.0
Large files files are truncated, but you can click here to view the full file
- <?php
- /**
- * Default values for MediaWiki configuration settings.
- *
- *
- * NEVER EDIT THIS FILE
- *
- *
- * To customize your installation, edit "LocalSettings.php". If you make
- * changes here, they will be lost on next upgrade of MediaWiki!
- *
- * In this file, variables whose default values depend on other
- * variables are set to false. The actual default value of these variables
- * will only be set in Setup.php, taking into account any custom settings
- * performed in LocalSettings.php.
- *
- * Documentation is in the source and on:
- * http://www.mediawiki.org/wiki/Manual:Configuration_settings
- *
- * @warning Note: this (and other things) will break if the autoloader is not
- * enabled. Please include includes/AutoLoader.php before including this file.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
- /**
- * @defgroup Globalsettings Global settings
- */
- /**
- * @cond file_level_code
- * This is not a valid entry point, perform no further processing unless
- * MEDIAWIKI is defined
- */
- if( !defined( 'MEDIAWIKI' ) ) {
- echo "This file is part of MediaWiki and is not a valid entry point\n";
- die( 1 );
- }
- /**
- * wgConf hold the site configuration.
- * Not used for much in a default install.
- */
- $wgConf = new SiteConfiguration;
- /** MediaWiki version number */
- $wgVersion = '1.20.0';
- /** Name of the site. It must be changed in LocalSettings.php */
- $wgSitename = 'MediaWiki';
- /**
- * URL of the server.
- *
- * @par Example:
- * @code
- * $wgServer = 'http://example.com';
- * @endcode
- *
- * 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.
- *
- * If you want to use protocol-relative URLs on your wiki, set this to a
- * protocol-relative URL like '//example.com' and set $wgCanonicalServer
- * to a fully qualified URL.
- */
- $wgServer = WebRequest::detectServer();
- /**
- * Canonical URL of the server, to use in IRC feeds and notification e-mails.
- * Must be fully qualified, even if $wgServer is protocol-relative.
- *
- * Defaults to $wgServer, expanded to a fully qualified http:// URL if needed.
- */
- $wgCanonicalServer = false;
- /************************************************************************//**
- * @name Script path settings
- * @{
- */
- /**
- * The path we should point to.
- * It might be a virtual path in case with use apache mod_rewrite for example.
- *
- * This *needs* to be set correctly.
- *
- * Other paths will be set to defaults based on it unless they are directly
- * set in LocalSettings.php
- */
- $wgScriptPath = '/wiki';
- /**
- * Whether to support URLs like index.php/Page_title These often break when PHP
- * is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set,
- * but then again it may not; lighttpd converts incoming path data to lowercase
- * on systems with case-insensitive filesystems, and there have been reports of
- * problems on Apache as well.
- *
- * To be safe we'll continue to keep it off by default.
- *
- * Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly
- * incorrect garbage, or to true if it is really correct.
- *
- * The default $wgArticlePath will be set based on this value at runtime, but if
- * you have customized it, having this incorrectly set to true can cause
- * redirect loops when "pretty URLs" are used.
- */
- $wgUsePathInfo =
- ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
- ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
- ( strpos( php_sapi_name(), 'isapi' ) === false );
- /**
- * 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
- * variable is provided to support those providers.
- */
- $wgScriptExtension = '.php';
- /**@}*/
- /************************************************************************//**
- * @name URLs and file paths
- *
- * These various web and file path variables are set to their defaults
- * in Setup.php if they are not explicitly set from LocalSettings.php.
- *
- * 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
- * acceptable. A "directory" is a local file path.
- *
- * In both paths and directories, trailing slashes should not be included.
- *
- * @{
- */
- /**
- * The URL path to index.php.
- *
- * Defaults to "{$wgScriptPath}/index{$wgScriptExtension}".
- */
- $wgScript = false;
- /**
- * The URL path to redirect.php. This is a script that is used by the Nostalgia
- * skin.
- *
- * Defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}".
- */
- $wgRedirectScript = false;
- /**
- * The URL path to load.php.
- *
- * Defaults to "{$wgScriptPath}/load{$wgScriptExtension}".
- */
- $wgLoadScript = false;
- /**
- * The URL path of the skins directory.
- * Defaults to "{$wgScriptPath}/skins".
- */
- $wgStylePath = false;
- $wgStyleSheetPath = &$wgStylePath;
- /**
- * 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.
- * Defaults to "{$wgScriptPath}/extensions".
- * @since 1.16
- */
- $wgExtensionAssetsPath = false;
- /**
- * Filesystem stylesheets directory.
- * Defaults to "{$IP}/skins".
- */
- $wgStyleDirectory = false;
- /**
- * 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 $wgUsePathInfo.
- */
- $wgArticlePath = false;
- /**
- * The URL path for the images directory.
- * Defaults to "{$wgScriptPath}/images".
- */
- $wgUploadPath = false;
- /**
- * The filesystem path of the images directory. Defaults to "{$IP}/images".
- */
- $wgUploadDirectory = false;
- /**
- * Directory where the cached page will be saved.
- * Defaults to "{$wgUploadDirectory}/cache".
- */
- $wgFileCacheDirectory = false;
- /**
- * The URL path of the wiki logo. The logo size should be 135x135 pixels.
- * Defaults to "{$wgStylePath}/common/images/wiki.png".
- */
- $wgLogo = false;
- /**
- * The URL path of the shortcut icon.
- */
- $wgFavicon = '/favicon.ico';
- /**
- * The URL path of the icon for iPhone and iPod Touch web app bookmarks.
- * Defaults to no icon.
- */
- $wgAppleTouchIcon = false;
- /**
- * The local filesystem path to a temporary directory. This is not required to
- * be web accessible.
- *
- * When this setting is set to false, its value will be set through a call
- * to wfTempDir(). See that methods implementation for the actual detection
- * logic.
- *
- * Developers should use the global function wfTempDir() instead of this
- * variable.
- *
- * @see wfTempDir()
- * @note Default changed to false in MediaWiki 1.20.
- *
- */
- $wgTmpDirectory = false;
- /**
- * 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.
- *
- * @par Example:
- * Set pretty URL for the edit action:
- * @code
- * 'edit' => "$wgScriptPath/edit/$1"
- * @endcode
- *
- * There must be an appropriate script or rewrite rule in place to handle these
- * URLs.
- */
- $wgActionPaths = array();
- /**@}*/
- /************************************************************************//**
- * @name Files and file uploads
- * @{
- */
- /** Uploads have to be specially set up to be secure */
- $wgEnableUploads = false;
- /**
- * The maximum age of temporary (incomplete) uploaded files
- */
- $wgUploadStashMaxAge = 6 * 3600; // 6 hours
- /** Allows to move images and other media files */
- $wgAllowImageMoving = true;
- /**
- * These are additional characters that should be replaced with '-' in filenames
- */
- $wgIllegalFileChars = ":";
- /**
- * @deprecated since 1.17 use $wgDeletedDirectory
- */
- $wgFileStore = array();
- /**
- * What directory to place deleted uploads in.
- * Defaults to "{$wgUploadDirectory}/deleted".
- */
- $wgDeletedDirectory = false;
- /**
- * Set this to true if you use img_auth and want the user to see details on why access failed.
- */
- $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
- * separate domain.
- */
- $wgImgAuthPublicTest = true;
- /**
- * File repository structures
- *
- * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepos is
- * an array of such structures. Each repository structure is an associative
- * array of properties configuring the repository.
- *
- * Properties required for all repos:
- * - class The class name for the repository. May come from the core or an extension.
- * The core repository classes are FileRepo, LocalRepo, ForeignDBRepo.
- * FSRepo is also supported for backwards compatibility.
- *
- * - name A unique name for the repository (but $wgLocalFileRepo should be 'local').
- * The name should consist of alpha-numberic characters.
- * - backend A file backend name (see $wgFileBackends).
- *
- * For most core repos:
- * - zones Associative array of zone names that each map to an array with:
- * container : backend container name the zone is in
- * directory : root path within container for the zone
- * url : base URL to the root of the zone
- * handlerUrl : base script handled URL to the root of the zone
- * (see FileRepo::getZoneHandlerUrl() function)
- * Zones default to using "<repo name>-<zone name>" as the container name
- * and default to using the container root as the zone's root directory.
- * Nesting of zone locations within other zones should be avoided.
- * - url Public zone URL. The 'zones' settings take precedence.
- * - hashLevels The number of directory levels for hash-based division of files
- * - thumbScriptUrl The URL for thumb.php (optional, not recommended)
- * - transformVia404 Whether to skip media file transformation on parse and rely on a 404
- * handler instead.
- * - initialCapital Equivalent to $wgCapitalLinks (or $wgCapitalLinkOverrides[NS_FILE],
- * determines whether filenames implicitly start with a capital letter.
- * The current implementation may give incorrect description page links
- * when the local $wgCapitalLinks and initialCapital are mismatched.
- * - pathDisclosureProtection
- * May be 'paranoid' to remove all parameters from error messages, 'none' to
- * leave the paths in unchanged, or 'simple' to replace paths with
- * placeholders. Default for LocalRepo is 'simple'.
- * - fileMode This allows wikis to set the file mode when uploading/moving files. Default
- * is 0644.
- * - directory The local filesystem directory where public files are stored. Not used for
- * some remote repos.
- * - thumbDir The base thumbnail directory. Defaults to "<directory>/thumb".
- * - thumbUrl The base thumbnail URL. Defaults to "<url>/thumb".
- * - isPrivate Set this if measures should always be taken to keep the files private.
- * One should not trust this to assure that the files are not web readable;
- * the server configuration should be done manually depending on the backend.
- *
- * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
- * for local repositories:
- * - 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
- * $wgScriptExtension, e.g. .php5 defaults to .php
- *
- * - articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
- * - fetchDescription Fetch the text of the remote file description page. Equivalent to
- * $wgFetchCommonsDescriptions.
- * - abbrvThreshold File names over this size will use the short form of thumbnail names.
- * Short thumbnail names only have the width, parameters, and the extension.
- *
- * ForeignDBRepo:
- * - dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
- * equivalent to the corresponding member of $wgDBservers
- * - tablePrefix Table prefix, the foreign wiki's $wgDBprefix
- * - hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
- *
- * ForeignAPIRepo:
- * - apibase Use for the foreign API's URL
- * - apiThumbCacheExpiry How long to locally cache thumbs for
- *
- * If you leave $wgLocalFileRepo set to false, Setup will fill in appropriate values.
- * Otherwise, set $wgLocalFileRepo to a repository structure as described above.
- * If you set $wgUseInstantCommons to true, it will add an entry for Commons.
- * If you set $wgForeignFileRepos to an array of repostory structures, those will
- * be searched after the local file repo.
- * Otherwise, you will only have access to local media files.
- *
- * @see Setup.php for an example usage and default initialization.
- */
- $wgLocalFileRepo = false;
- /** @see $wgLocalFileRepo */
- $wgForeignFileRepos = array();
- /**
- * Use Commons as a remote file repository. Essentially a wrapper, when this
- * is enabled $wgForeignFileRepos will point at Commons with a set of default
- * settings
- */
- $wgUseInstantCommons = false;
- /**
- * File backend structure configuration.
- * This is an array of file backend configuration arrays.
- * Each backend configuration has the following parameters:
- * - 'name' : A unique name for the backend
- * - 'class' : The file backend class to use
- * - 'wikiId' : A unique string that identifies the wiki (container prefix)
- * - 'lockManager' : The name of a lock manager (see $wgLockManagers)
- *
- * Additional parameters are specific to the class used.
- */
- $wgFileBackends = array();
- /**
- * Array of configuration arrays for each lock manager.
- * Each backend configuration has the following parameters:
- * - 'name' : A unique name for the lock manager
- * - 'class' : The lock manger class to use
- * Additional parameters are specific to the class used.
- */
- $wgLockManagers = array();
- /**
- * Show EXIF data, on by default if available.
- * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
- *
- * @note FOR WINDOWS USERS:
- * To enable EXIF functions, add the following lines to the "Windows
- * extensions" section of php.ini:
- * @code{.ini}
- * extension=extensions/php_mbstring.dll
- * extension=extensions/php_exif.dll
- * @endcode
- */
- $wgShowEXIF = function_exists( 'exif_read_data' );
- /**
- * If to automatically update the img_metadata field
- * if the metadata field is outdated but compatible with the current version.
- * Defaults to false.
- */
- $wgUpdateCompatibleMetadata = 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
- * $wgUploadDirectory.
- * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
- * no file of the given name is found in the local repository (for [[File:..]],
- * [[Media:..]] links). Thumbnails will also be looked for and generated in this
- * directory.
- *
- * Note that these configuration settings can now be defined on a per-
- * repository basis for an arbitrary number of file repositories, using the
- * $wgForeignFileRepos variable.
- */
- $wgUseSharedUploads = false;
- /** Full path on the web server where shared uploads can be found */
- $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
- /** Fetch commons image description pages and display them on the local wiki? */
- $wgFetchCommonsDescriptions = false;
- /** Path on the file system where shared uploads can be found. */
- $wgSharedUploadDirectory = "/var/www/wiki3/images";
- /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
- $wgSharedUploadDBname = false;
- /** Optional table prefix used in database. */
- $wgSharedUploadDBprefix = '';
- /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
- $wgCacheSharedUploads = true;
- /**
- * Allow for upload to be copied from an URL.
- * The timeout for copy uploads is set by $wgHTTPTimeout.
- * You have to assign the user right 'upload_by_url' to a user group, to use this.
- */
- $wgAllowCopyUploads = false;
- /**
- * Allow asynchronous copy uploads.
- * This feature is experimental and broken as of r81612.
- */
- $wgAllowAsyncCopyUploads = false;
- /**
- * A list of domains copy uploads can come from
- *
- * @since 1.20
- */
- $wgCopyUploadsDomains = array();
- /**
- * Proxy to use for copy upload requests.
- * @since 1.20
- */
- $wgCopyUploadProxy = false;
- /**
- * Max size for uploads, in bytes. If not set to an array, applies to all
- * uploads. If set to an array, per upload type maximums can be set, using the
- * file and url keys. If the * key is set this value will be used as maximum
- * for non-specified types.
- *
- * @par Example:
- * @code
- * $wgMaxUploadSize = array(
- * '*' => 250 * 1024,
- * 'url' => 500 * 1024,
- * );
- * @endcode
- * Sets the maximum for all uploads to 250 kB except for upload-by-url, which
- * will have a maximum of 500 kB.
- *
- */
- $wgMaxUploadSize = 1024*1024*100; # 100MB
- /**
- * Point the upload navigation link to an external URL
- * Useful if you want to use a shared repository by default
- * without disabling local uploads (use $wgEnableUploads = false for that).
- *
- * @par Example:
- * @code
- * $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
- * @endcode
- */
- $wgUploadNavigationUrl = false;
- /**
- * Point the upload link for missing files to an external URL, as with
- * $wgUploadNavigationUrl. The URL will get "(?|&)wpDestFile=<filename>"
- * appended to it as appropriate.
- */
- $wgUploadMissingFileUrl = false;
- /**
- * Give a path here to use thumb.php for thumbnail generation on client
- * request, instead of generating them on render and outputting a static URL.
- * This is necessary if some of your apache servers don't have read/write
- * access to the thumbnail path.
- *
- * @par Example:
- * @code
- * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
- * @endcode
- */
- $wgThumbnailScriptPath = false;
- /**
- * @see $wgThumbnailScriptPath
- */
- $wgSharedThumbnailScriptPath = false;
- /**
- * 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
- * longer recommended, use maintenance/importImages.php instead.
- *
- * @note That this variable may be ignored if $wgLocalFileRepo is set.
- * @todo Deprecate the setting and ultimately remove it from Core.
- */
- $wgHashedUploadDirectory = true;
- /**
- * Set the following to false especially if you have a set of files that need to
- * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
- * directory layout.
- */
- $wgHashedSharedUploadDirectory = true;
- /**
- * Base URL for a repository wiki. Leave this blank if uploads are just stored
- * in a shared directory and not meant to be accessible through a separate wiki.
- * Otherwise the image description pages on the local wiki will link to the
- * image description page on this wiki.
- *
- * Please specify the namespace, as in the example below.
- */
- $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' );
- /**
- * Files with these extensions will never be allowed as uploads.
- * An array of file extensions to blacklist. You should append to this array
- * if you want to blacklist additional files.
- * */
- $wgFileBlacklist = array(
- # HTML may contain cookie-stealing JavaScript and web bugs
- 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
- # PHP scripts may execute arbitrary code on the server
- 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
- # Other types that may be interpreted by some servers
- 'shtml', 'jhtml', 'pl', 'py', 'cgi',
- # 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.
- */
- $wgMimeTypeBlacklist = array(
- # HTML may contain cookie-stealing JavaScript and web bugs
- 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
- # 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',
- # Client-side hazards on Internet Explorer
- 'text/scriptlet', 'application/x-msdownload',
- # Windows metafile, client-side vulnerability on some systems
- 'application/x-msmetafile',
- );
- /**
- * Allow Java archive uploads.
- * This is not recommended for public wikis since a maliciously-constructed
- * applet running on the same domain as the wiki can steal the user's cookies.
- */
- $wgAllowJavaUploads = false;
- /**
- * 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;
- /**
- * Setting this to true will disable the upload system's checks for HTML/JavaScript.
- *
- * @warning THIS IS VERY DANGEROUS on a publicly editable site, so USE
- * $wgGroupPermissions TO RESTRICT UPLOADING to only those that you trust
- */
- $wgDisableUploadScriptChecks = false;
- /**
- * Warn if uploaded files are larger than this (in bytes), or false to disable
- */
- $wgUploadSizeWarning = false;
- /**
- * list of trusted media-types and mime types.
- * Use the MEDIATYPE_xxx constants to represent media types.
- * This list is used by File::isSafeFile
- *
- * Types not listed here will have a warning about unsafe content
- * displayed on the images description page. It would also be possible
- * to use this for further restrictions, like disabling direct
- * [[media:...]] links for non-trusted formats.
- */
- $wgTrustedMediaFormats = array(
- MEDIATYPE_BITMAP, //all bitmap formats
- MEDIATYPE_AUDIO, //all audio formats
- MEDIATYPE_VIDEO, //all plain video formats
- "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
- "application/pdf", //PDF files
- #"application/x-shockwave-flash", //flash/shockwave movie
- );
- /**
- * Plugins for media file type handling.
- * Each entry in the array maps a MIME type to a class name
- */
- $wgMediaHandlers = array(
- 'image/jpeg' => 'JpegHandler',
- 'image/png' => 'PNGHandler',
- 'image/gif' => 'GIFHandler',
- 'image/tiff' => 'TiffHandler',
- 'image/x-ms-bmp' => 'BmpHandler',
- 'image/x-bmp' => 'BmpHandler',
- 'image/x-xcf' => 'XCFHandler',
- 'image/svg+xml' => 'SvgHandler', // official
- 'image/svg' => 'SvgHandler', // compat
- 'image/vnd.djvu' => 'DjVuHandler', // official
- 'image/x.djvu' => 'DjVuHandler', // compat
- 'image/x-djvu' => 'DjVuHandler', // compat
- );
- /**
- * Resizing can be done using PHP's internal image libraries or using
- * 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.
- */
- $wgUseImageMagick = false;
- /** The convert command shipped with ImageMagick */
- $wgImageMagickConvertCommand = '/usr/bin/convert';
- /** The identify command shipped with ImageMagick */
- $wgImageMagickIdentifyCommand = '/usr/bin/identify';
- /** Sharpening parameter to ImageMagick */
- $wgSharpenParameter = '0x0.4';
- /** Reduction in linear dimensions below which sharpening will be enabled */
- $wgSharpenReductionThreshold = 0.85;
- /**
- * Temporary directory used for ImageMagick. The directory must exist. Leave
- * this set to false to let ImageMagick decide for itself.
- */
- $wgImageMagickTempDir = false;
- /**
- * 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.
- *
- * @par Example for GraphicMagick:
- * @code
- * $wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
- * @endcode
- *
- * Leave as false to skip this.
- */
- $wgCustomConvertCommand = false;
- /**
- * Some tests and extensions use exiv2 to manipulate the EXIF metadata in some
- * image formats.
- */
- $wgExiv2Command = '/usr/bin/exiv2';
- /**
- * 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.
- *
- * An external program is required to perform this conversion.
- * If set to an array, the first item is a PHP callable and any further items
- * are passed as parameters after $srcPath, $dstPath, $width, $height
- */
- $wgSVGConverters = array(
- 'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output',
- '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',
- 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
- 'ImagickExt' => array( 'SvgHandler::rasterizeImagickExt' ),
- );
- /** Pick a converter defined in $wgSVGConverters */
- $wgSVGConverter = 'ImageMagick';
- /** If not in the executable PATH, specify the SVG converter path. */
- $wgSVGConverterPath = '';
- /** Don't scale a SVG larger than this */
- $wgSVGMaxSize = 2048;
- /** Don't read SVG metadata beyond this point.
- * Default is 1024*256 bytes
- */
- $wgSVGMetadataCutoff = 262144;
- /**
- * Disallow <title> element in SVG files.
- *
- * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic
- * browsers which can not perform basic stuff like MIME detection and which are
- * vulnerable to further idiots uploading crap files as images.
- *
- * When this directive is on, "<title>" will be allowed in files with an
- * "image/svg+xml" 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;
- /**
- * The maximum number of pixels a source image can have if it is to be scaled
- * down by a scaler that requires the full source image to be decompressed
- * and stored in decompressed form, before the thumbnail is generated.
- *
- * This provides a limit on memory usage for the decompression side of the
- * image scaler. The limit is used when scaling PNGs with any of the
- * built-in image scalers, such as ImageMagick or GD. It is ignored for
- * JPEGs with ImageMagick, and when using the VipsScaler extension.
- *
- * The default is 50 MB if decompressed to RGBA form, which corresponds to
- * 12.5 million pixels or 3500x3500.
- */
- $wgMaxImageArea = 1.25e7;
- /**
- * Force thumbnailing of animated GIFs above this size to a single
- * frame instead of an animated thumbnail. As of MW 1.17 this limit
- * is checked against the total size of all frames in the animation.
- * It probably makes sense to keep this equal to $wgMaxImageArea.
- */
- $wgMaxAnimatedGifArea = 1.25e7;
- /**
- * Browsers don't support TIFF inline generally...
- * For inline display, we need to convert to PNG or JPEG.
- * Note scaling should work with ImageMagick, but may not with GD scaling.
- *
- * @par Example:
- * @code
- * // PNG is lossless, but inefficient for photos
- * $wgTiffThumbnailType = array( 'png', 'image/png' );
- * // JPEG is good for photos, but has no transparency support. Bad for diagrams.
- * $wgTiffThumbnailType = array( 'jpg', 'image/jpeg' );
- * @endcode
- */
- $wgTiffThumbnailType = false;
- /**
- * 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';
- /**
- * If set, inline scaled images will still produce "<img>" 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;
- /**
- * Show thumbnails for old images on the image description page
- */
- $wgShowArchiveThumbnails = true;
- /** Obsolete, always true, kept for compatibility with extensions */
- $wgUseImageResize = true;
- /**
- * If set to true, images that contain certain the exif orientation tag will
- * be rotated accordingly. If set to null, try to auto-detect whether a scaler
- * is available that can rotate.
- */
- $wgEnableAutoRotation = null;
- /**
- * 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.
- * 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:
- * "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
- * scanner is not in the system path; in that case, plase set
- * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full
- * path.
- *
- * "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
- * 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
- * virusses. This causes the file to pass.
- * - 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
- * a virus.
- * - You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
- *
- * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
- * output. The relevant part should be matched as group one (\1).
- * If not defined or the pattern does not match, the full message is shown to the user.
- */
- $wgAntivirusSetup = array(
- #setup for clamav
- 'clamav' => array (
- 'command' => "clamscan --no-summary ",
- 'codemap' => array (
- "0" => AV_NO_VIRUS, # no virus
- "1" => AV_VIRUS_FOUND, # virus found
- "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune)
- "*" => AV_SCAN_FAILED, # else scan failed
- ),
- 'messagepattern' => '/.*?:(.*)/sim',
- ),
- );
- /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected. */
- $wgAntivirusRequired = true;
- /** Determines if the mime type of uploaded files should be checked */
- $wgVerifyMimeType = true;
- /** Sets the mime type definition file to use by MimeMagic.php. */
- $wgMimeTypeFile = "includes/mime.types";
- #$wgMimeTypeFile= "/etc/mime.types";
- #$wgMimeTypeFile= null; #use built-in defaults only.
- /** Sets the mime type info file to use by MimeMagic.php. */
- $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.
- */
- $wgLoadFileinfoExtension = false;
- /** Sets an external mime detector program. The command must print only
- * the mime type to standard output.
- * The name of the file to process will be appended to the command given here.
- * If not set or NULL, mime_content_type will be used if available.
- *
- * @par Example:
- * @code
- * #$wgMimeDetectorCommand = "file -bi"; # use external mime detector (Linux)
- * @endcode
- */
- $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.
- */
- $wgTrivialMimeDetection = false;
- /**
- * Additional XML types we can allow via mime-detection.
- * array = ( 'rootElement' => 'associatedMimeType' )
- */
- $wgXMLMimeTypes = array(
- 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
- 'svg' => 'image/svg+xml',
- 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
- 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
- 'html' => 'text/html', // application/xhtml+xml?
- );
- /**
- * Limit images on image description pages to a user-selectable limit. In order
- * to reduce disk usage, limits can only be selected from a list.
- * The user preference is saved as an array offset in the database, by default
- * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
- * change it if you alter the array (see bug 8858).
- * This is the list of settings the user can choose from:
- */
- $wgImageLimits = array(
- array( 320, 240 ),
- array( 640, 480 ),
- array( 800, 600 ),
- array( 1024, 768 ),
- array( 1280, 1024 )
- );
- /**
- * Adjust thumbnails on image pages according to a user setting. In order to
- * reduce disk usage, the values can only be selected from a list. This is the
- * list of settings the user can choose from:
- */
- $wgThumbLimits = array(
- 120,
- 150,
- 180,
- 200,
- 250,
- 300
- );
- /**
- * Default parameters for the "<gallery>" tag
- */
- $wgGalleryOptions = array (
- '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' => 25, // Length of caption to truncate (in characters)
- 'showBytes' => true, // Show the filesize in bytes in categories
- );
- /**
- * Adjust width of upright images when parameter 'upright' is used
- * This allows a nicer look for upright images without the need to fix the width
- * by hardcoded px in wiki sourcecode.
- */
- $wgThumbUpright = 0.75;
- /**
- * Default value for chmoding of new directories.
- */
- $wgDirectoryMode = 0777;
- /**
- * @name DJVU settings
- * @{
- */
- /**
- * Path of the djvudump executable
- * Enable this and $wgDjvuRenderer to enable djvu rendering
- */
- # $wgDjvuDump = 'djvudump';
- $wgDjvuDump = null;
- /**
- * Path of the ddjvu DJVU renderer
- * Enable this and $wgDjvuDump to enable djvu rendering
- */
- # $wgDjvuRenderer = 'ddjvu';
- $wgDjvuRenderer = null;
- /**
- * Path of the djvutxt DJVU text extraction utility
- * Enable this and $wgDjvuDump to enable text layer extraction from djvu files
- */
- # $wgDjvuTxt = 'djvutxt';
- $wgDjvuTxt = null;
- /**
- * Path of the djvutoxml executable
- * This works like djvudump except much, much slower as of version 3.5.
- *
- * For now we recommend you use djvudump instead. The djvuxml output is
- * probably more stable, so we'll switch back to it as soon as they fix
- * the efficiency problem.
- * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
- *
- * @par Example:
- * @code
- * $wgDjvuToXML = 'djvutoxml';
- * @endcode
- */
- $wgDjvuToXML = null;
- /**
- * Shell command for the DJVU post processor
- * Default: pnmtopng, since ddjvu generates ppm output
- * Set this to false to output the ppm file directly.
- */
- $wgDjvuPostProcessor = 'pnmtojpeg';
- /**
- * File extension for the DJVU post processor output
- */
- $wgDjvuOutputExtension = 'jpg';
- /** @} */ # end of DJvu }
- /** @} */ # end of file uploads }
- /************************************************************************//**
- * @name Email settings
- * @{
- */
- $serverName = substr( $wgServer, strrpos( $wgServer, '/' ) + 1 );
- /**
- * Site admin email address.
- */
- $wgEmergencyContact = 'wikiadmin@' . $serverName;
- /**
- * Password reminder email address.
- *
- * The address we should use as sender when a user is requesting his password.
- */
- $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';
- /**
- * Set to true to enable the e-mail basic features:
- * Password reminders, etc. If sending e-mail on your
- * server doesn't work, you might want to disable this.
- */
- $wgEnableEmail = true;
- /**
- * Set to true to enable user-to-user e-mail.
- * This can potentially be abused, as it's hard to track.
- */
- $wgEnableUserEmail = true;
- /**
- * Set to true to put the sending user's email in a Reply-To header
- * instead of From. ($wgEmergencyContact will be used as From.)
- *
- * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
- * which can cause problems with SPF validation and leak recipient addressses
- * when bounces are sent to the sender.
- */
- $wgUserEmailUseReplyTo = false;
- /**
- * Minimum time, in hours, which must elapse between password reminder
- * emails for a given account. This is to prevent abuse by mail flooding.
- */
- $wgPasswordReminderResendTime = 24;
- /**
- * The time, in seconds, when an emailed temporary password expires.
- */
- $wgNewPasswordExpiry = 3600 * 24 * 7;
- /**
- * The time, in seconds, when an email confirmation email expires
- */
- $wgUserEmailConfirmationTokenExpiry = 7 * 24 * 60 * 60;
- /**
- * SMTP Mode.
- *
- * For using a direct (authenticated) SMTP server connection.
- * Default to false or fill an array :
- *
- * @code
- * $wgSMTP = array(
- * 'host' => 'SMTP domain',
- * 'IDHost' => 'domain for MessageID',
- * 'port' => '25',
- * 'auth' => [true|false],
- * 'username' => [SMTP username],
- * 'password' => [SMTP password],
- * );
- * @endcode
- */
- $wgSMTP = false;
- /**
- * Additional email parameters, will be passed as the last argument to mail() call.
- * If using safe_mode this has no effect
- */
- $wgAdditionalMailParams = null;
- /**
- * True: from page editor if s/he opted-in. False: Enotif mails appear to come
- * from $wgEmergencyContact
- */
- $wgEnotifFromEditor = false;
- // TODO move UPO to preferences probably ?
- # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
- # If set to false, the corresponding input form on the user preference page is suppressed
- # It call this to be a "user-preferences-option (UPO)"
- /**
- * Require email authentication before sending mail to an email address.
- * This is highly recommended. It prevents MediaWiki from being used as an open
- * spam relay.
- */
- $wgEmailAuthentication = true;
- /**
- * Allow users to enable email notification ("enotif") on watchlist changes.
- */
- $wgEnotifWatchlist = false;
- /**
- * Allow users to enable email notification ("enotif") when someone edits their
- * user talk page.
- */
- $wgEnotifUserTalk = false;
- /**
- * 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
- * by default. Does not affect user talk notifications.
- */
- $wgEnotifMinorEdits = true;
- /**
- * Send a generic mail instead of a personalised mail for each user. This
- * always uses UTC as the time zone, and doesn't include the username.
- *
- * For pages with many users watching, this can significantly reduce mail load.
- * Has no effect when using sendmail rather than SMTP.
- */
- $wgEnotifImpersonal = false;
- /**
- * Maximum number of users to mail at once when using impersonal mail. Should
- * match the limit on your mail server.
- */
- $wgEnotifMaxRecips = 500;
- /**
- * 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;
- /**
- * Use real name instead of username in e-mail "from" field.
- */
- $wgEnotifUseRealName = false;
- /**
- * Array of usernames who will be sent a notification email for every change
- * which occurs on a wiki. Users will not be notified of their own changes.
- */
- $wgUsersNotifiedOnAllChanges = array();
- /** @} */ # end of email settings
- /************************************************************************//**
- * @name Database settings
- * @{
- */
- /** Database host name or IP address */
- $wgDBserver = 'localhost';
- /** Database port number (for PostgreSQL) */
- $wgDBport = 5432;
- /** Name of the database */
- $wgDBname = 'my_wiki';
- /** Database username */
- $wgDBuser = 'wikiuser';
- /** Database user's password */
- $wgDBpassword = '';
- /** Database type */
- $wgDBtype = 'mysql';
- /** Whether to use SSL in DB connection. */
- $wgDBssl = false;
- /** Whether to use compression in DB connection. */
- $wgDBcompress = false;
- /** Separate username for maintenance tasks. Leave as null to use the default. */
- $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
- * name to override to a custom search engine.
- */
- $wgSearchType = null;
- /** Table name prefix */
- $wgDBprefix = '';
- /** MySQL table options to use during installation or update */
- $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
- * DBA has done his best job.
- * String override can be used for some additional fun :-)
- */
- $wgSQLMode = '';
- /** Mediawiki schema */
- $wgDBmwschema = 'mediawiki';
- /** To override default SQLite data directory ($docroot/../data) */
- $wgSQLiteDataDir = '';
- /**
- * Make all database connections secretly go to localhost. Fool the load balancer
- * thinking there is an arbitrarily large cluster of servers to connect to.
- * Useful for debugging.
- */
- $wgAllDBsAreLocalhost = false;
- /**
- * Shared database for multiple wikis. Commonly used for storing a user table
- * for single sign-on. The server for this database must be the same as for the
- * main database.
- *
- * For backwards compatibility the shared prefix is set to the same as the local
- * prefix, and the user table is listed in the default list of shared tables.
- * The user_properties table is also added so that users will continue to have their
- * preferences shared (preferences were stored in the user table prior to 1.16)
- *
- * $wgSharedTables may be customized with a list of tables to share in the shared
- * datbase. However it is advised to limit what tables you do share as many of
- * 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
- * $wgDBprefix.
- */
- $wgSharedDB = null;
- /** @see $wgSharedDB */
- $wgSharedPrefix = false;
- /** @see $wgSharedDB */
- $wgSharedTables = array( 'user', 'user_properties' );
- /**
- * Database load balancer
- * This is a two-dimensional array, an array of server info structures
- * Fields are:
- * - host: Host name
- * - dbname: Default database name
- * - user: DB user
- * - password: DB password
- * - type: "mysql" or "postgres"
- * - load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
- * - groupLoads: array of load ratios, the key is the query group name. A query may belong
- * to several groups, the most specific group defined here is used.
- *
- * - flags: bit field
- * - DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
- * - DBO_DEBUG -- equivalent of $wgDebugDumpSql
- * - DBO_TRX -- wrap entire request in a transaction
- * - DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
- * - DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
- * - DBO_PERSISTENT -- enables persistent database connections
- * - DBO_SSL -- uses SSL/TLS encryption in database connections, if available
- * - DBO_COMPRESS -- uses internal compression in database connections, if available
- *
- * - 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. If you set this
- * variable, the single-server variables will generally be ignored (except
- * perhaps in some command-line scripts).
- *
- * The first server listed in this array (with key 0) will be the master. The
- * rest of the servers will be slaves. To prevent writes to your slaves due to
- * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
- * slaves in my.cnf. You can set read_only mode at runtime using:
- *
- * @code
- * SET @@read_only=1;
- * @endcode
- *
- * Since the effect of writing to a slave is so damaging and difficult to clean
- * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
- * our masters, and then set read_only=0 on masters at runtime.
- */
- $wgDBservers = false;
- /**
- * Load balancer factory configuration
- * To set up a multi-master wiki farm, set the class here to something that
- * can return a LoadBalancer with an appropriate master on a call to getMainLB().
- * The class identified here is responsible for reading $wgDBservers,
- * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
- *
- * The LBFactory_Multi class is provided for this purpose, please see
- * includes/db/LBFactory_Multi.php for configuration information.
- */
- $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
- /** How long to wait for a slave to catch up to the master */
- $wgMasterWaitTimeout = 10;
- /** File to log database errors to */
- $wgDBerrorLog = false;
- /**…
Large files files are truncated, but you can click here to view the full file