defaultsettings.php
来自「php 开发的内容管理系统」· PHP 代码 · 共 1,966 行 · 第 1/5 页
PHP
1,966 行
$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. * @global bool $wgEnableEmail */$wgEnableEmail = true;/** * Set to true to enable user-to-user e-mail. * This can potentially be abused, as it's hard to track. * @global bool $wgEnableUserEmail */$wgEnableUserEmail = true;/** * SMTP Mode * For using a direct (authenticated) SMTP server connection. * Default to false or fill an array : * <code> * "host" => 'SMTP domain', * "IDHost" => 'domain for MessageID', * "port" => "25", * "auth" => true/false, * "username" => user, * "password" => password * </code> * * @global mixed $wgSMTP */$wgSMTP = false;/**#@+ * Database settings *//** database host name or ip address */$wgDBserver = 'localhost';/** database port number */$wgDBport = '';/** name of the database */$wgDBname = 'wikidb';/** */$wgDBconnection = '';/** Database username */$wgDBuser = 'wikiuser';/** Database type * "mysql" for working code and "PostgreSQL" for development/broken code */$wgDBtype = "mysql";/** Search type * Leave as null to select the default search engine for the * selected database type (eg SearchMySQL4), or set to a class * name to override to a custom search engine. */$wgSearchType = null;/** Table name prefix */$wgDBprefix = '';/**#@-*//** Live high performance sites should disable this - some checks acquire giant mysql locks */$wgCheckDBSchema = true;/** * Shared database for multiple wikis. Presently used for storing a user table * for single sign-on. The server for this database must be the same as for the * main database. * EXPERIMENTAL */$wgSharedDB = null;# 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 "pgsql"# 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)## max lag: (optional) Maximum replication lag before a slave will taken out of rotation# max threads: (optional) Maximum number of running threads## These and any other user-defined properties will be assigned to the mLBInfo member# variable of the Database object.## Leave at false to use the single-server variables above$wgDBservers = false;/** How long to wait for a slave to catch up to the master */$wgMasterWaitTimeout = 10;/** File to log database errors to */$wgDBerrorLog = false;/** When to give an error message */$wgDBClusterTimeout = 10;/** * wgDBminWordLen : * MySQL 3.x : used to discard words that MySQL will not return any results for * shorter values configure mysql directly. * MySQL 4.x : ignore it and configure mySQL * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html */$wgDBminWordLen = 4;/** Set to true if using InnoDB tables */$wgDBtransactions = false;/** Set to true for compatibility with extensions that might be checking. * MySQL 3.23.x is no longer supported. */$wgDBmysql4 = true;/** * Set to true to engage MySQL 4.1/5.0 charset-related features; * for now will just cause sending of 'SET NAMES=utf8' on connect. * * WARNING: THIS IS EXPERIMENTAL! * * May break if you're not using the table defs from mysql5/tables.sql. * May break if you're upgrading an existing wiki if set differently. * Broken symptoms likely to include incorrect behavior with page titles, * usernames, comments etc containing non-ASCII characters. * Might also cause failures on the object cache and other things. * * Even correct usage may cause failures with Unicode supplementary * characters (those not in the Basic Multilingual Plane) unless MySQL * has enhanced their Unicode support. */$wgDBmysql5 = false;/** * Other wikis on this site, can be administered from a single developer * account. * Array numeric key => database name */$wgLocalDatabases = array();/** * Object cache settings * See Defines.php for types */$wgMainCacheType = CACHE_NONE;$wgMessageCacheType = CACHE_ANYTHING;$wgParserCacheType = CACHE_ANYTHING;$wgParserCacheExpireTime = 86400;$wgSessionsInMemcached = false;$wgLinkCacheMemcached = false; # Not fully tested/** * Memcached-specific settings * See docs/memcached.txt */$wgUseMemCached = false;$wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working$wgMemCachedServers = array( '127.0.0.1:11000' );$wgMemCachedDebug = false;$wgMemCachedPersistent = false;/** * Directory for local copy of message cache, for use in addition to memcached */$wgLocalMessageCache = false;/** * Defines format of local cache * true - Serialized object * false - PHP source file (Warning - security risk) */$wgLocalMessageCacheSerialized = true;/** * Directory for compiled constant message array databases * WARNING: turning anything on will just break things, aaaaaah!!!! */$wgCachedMessageArrays = false;# Language settings#/** Site language code, should be one of ./languages/Language(.*).php */$wgLanguageCode = 'en';/** * Some languages need different word forms, usually for different cases. * Used in Language::convertGrammar(). */$wgGrammarForms = array();#$wgGrammarForms['en']['genitive']['car'] = 'car\'s';/** Treat language links as magic connectors, not inline links */$wgInterwikiMagic = true;/** Hide interlanguage links from the sidebar */$wgHideInterlanguageLinks = false;/** We speak UTF-8 all the time now, unless some oddities happen */$wgInputEncoding = 'UTF-8';$wgOutputEncoding = 'UTF-8';$wgEditEncoding = '';# 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 wiki 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 continuing as a UTF-8 wiki.$wgLegacyEncoding = false;/** * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will * create stub reference rows in the text table instead of copying * the full text of all current entries from 'cur' to 'text'. * * This will speed up the conversion step for large sites, but * requires that the cur table be kept around for those revisions * to remain viewable. * * maintenance/migrateCurStubs.php can be used to complete the * migration in the background once the wiki is back online. * * This option affects the updaters *only*. Any present cur stub * revisions will be readable at runtime regardless of this setting. */$wgLegacySchemaConversion = false;$wgMimeType = 'text/html';$wgJsMimeType = 'text/javascript';$wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';$wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';/** 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 */$wgAmericanDates = false;/** * For Hindi and Arabic use local numerals instead of Western style (0-9) * numerals in interface. */$wgTranslateNumerals = true;# Translation using MediaWiki: namespace# This will increase load times by 25-60% unless memcached is installed# Interface messages will be loaded from the database.$wgUseDatabaseMessages = true;$wgMsgCacheExpiry = 86400;# Whether to enable language variant conversion.$wgDisableLangConversion = false;/** * Show a bar of language selection links in the user login and user * registration forms; edit the "loginlanguagelinks" message to * customise these */$wgLoginLanguageSelector = false;# Whether to use zhdaemon to perform Chinese text processing# zhdaemon is under developement, so normally you don't want to# use it unless for testing$wgUseZhdaemon = false;$wgZhdaemonHost="localhost";$wgZhdaemonPort=2004;/** Normally you can ignore this and it will be something like $wgMetaNamespace . "_talk". In some languages, you may want to set this manually for grammatical reasons. It is currently only respected by those languages where it might be relevant and where no automatic grammar converter exists.*/$wgMetaNamespaceTalk = false;# Miscellaneous configuration settings#$wgLocalInterwiki = 'w';$wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table/** Interwiki caching settings. $wgInterwikiCache specifies path to constant database file This cdb database is generated by dumpInterwiki from maintenance and has such key formats: dbname:key - a simple key (e.g. enwiki:meta) _sitename:key - site-scope key (e.g. wiktionary:meta) __global:key - global-scope key (e.g. __global:meta) __sites:dbname - site mapping (e.g. __sites:enwiki) Sites mapping just specifies site name, other keys provide "local url" data layout. $wgInterwikiScopes specify number of domains to check for messages: 1 - Just wiki(db)-level 2 - wiki and global levels 3 - site levels $wgInterwikiFallbackSite - if unable to resolve from cache*/$wgInterwikiCache = false;$wgInterwikiScopes = 3;$wgInterwikiFallbackSite = 'wiki';/** * If local interwikis are set up which allow redirects, * set this regexp to restrict URLs which will be displayed * as 'redirected from' links. * * It might look something like this: * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!'; * * Leave at false to avoid displaying any incoming redirect markers. * This does not affect intra-wiki redirects, which don't change * the URL. */$wgRedirectSources = false;$wgShowIPinHeader = true; # For non-logged in users$wgMaxNameChars = 255; # Maximum number of bytes in username$wgMaxArticleSize = 2048; # Maximum article size in kilobytes$wgExtraSubtitle = '';$wgSiteSupportPage = ''; # A page where you users can receive donations$wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";/** * The debug log file should be not be publicly accessible if it is used, as it * may contain private data. */$wgDebugLogFile = '';/**#@+ * @global bool */$wgDebugRedirects = false;$wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS$wgDebugComments = false;$wgReadOnly = null;$wgLogQueries = false;/** * Write SQL queries to the debug log */$wgDebugDumpSql = false;/** * Set to an array of log group keys to filenames. * If set, wfDebugLog() output for that group will go to that file instead * of the regular $wgDebugLogFile. Useful for enabling selective logging * in production. */$wgDebugLogGroups = array();/** * Whether to show "we're sorry, but there has been a database error" pages. * Displaying errors aids in debugging, but may display information useful * to an attacker. */$wgShowSQLErrors = false;/** * If true, some error messages will be colorized when running scripts on the * command line; this can aid picking important things out when debugging. * Ignored when running on Windows or when output is redirected to a file. */$wgColorErrors = true;/** * disable experimental dmoz-like category browsing. Output things like: * Encyclopedia > Music > Style of Music > Jazz */$wgUseCategoryBrowser = false;/** * Keep parsed pages in a cache (objectcache table, turck, or memcached) * to speed up output of the same page viewed by another user with the * same options.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?