2004-02-18 02:15:00 +00:00
< ? php
2004-09-02 23:28:24 +00:00
/**
2004-09-03 23:00:01 +00:00
* DO NOT EDIT THIS FILE !
*
2004-09-02 23:28:24 +00:00
* To customize your installation , edit " LocalSettings.php " .
*
* Note that since all these string interpolations are expanded
* before LocalSettings is included , if you localize something
* like $wgScriptPath , you must also localize everything that
* depends on it .
2004-09-03 01:05:32 +00:00
*
* @ package MediaWiki
*/
2004-08-12 06:54:58 +00:00
# This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
2004-08-22 17:24:50 +00:00
if ( defined ( 'MEDIAWIKI' ) ) {
2004-08-12 06:54:58 +00:00
2005-01-27 05:01:28 +00:00
/** MediaWiki version number */
2005-05-02 12:56:57 +00:00
$wgVersion = '1.5alpha1' ;
2004-02-01 05:41:13 +00:00
2005-01-27 05:01:28 +00:00
/** Name of the site. It must be changed in LocalSettings.php */
2004-09-03 01:05:32 +00:00
$wgSitename = 'MediaWiki' ;
2005-01-27 05:01:28 +00:00
/** Will be same as you set @see $wgSitename */
2004-09-03 01:05:32 +00:00
$wgMetaNamespace = FALSE ;
2003-11-09 11:45:12 +00:00
2005-01-28 00:01:44 +00:00
/** URL of the server. It will be automaticly build including https mode */
2004-09-03 23:00:01 +00:00
$wgServer = '' ;
2004-09-27 04:43:29 +00:00
if ( isset ( $_SERVER [ 'SERVER_NAME' ] ) ) {
$wgServerName = $_SERVER [ 'SERVER_NAME' ];
} elseif ( isset ( $_SERVER [ 'HOSTNAME' ] ) ) {
$wgServerName = $_SERVER [ 'HOSTNAME' ];
2005-03-31 12:11:18 +00:00
} elseif ( isset ( $_SERVER [ 'HTTP_HOST' ] ) ) {
$wgServerName = $_SERVER [ 'HTTP_HOST' ];
} elseif ( isset ( $_SERVER [ 'SERVER_ADDR' ] ) ) {
$wgServerName = $_SERVER [ 'SERVER_ADDR' ];
2004-09-27 04:43:29 +00:00
} else {
$wgServerName = 'localhost' ;
}
2004-04-07 11:36:01 +00:00
# check if server use https:
2004-06-09 00:03:26 +00:00
$wgProto = ( isset ( $_SERVER [ 'HTTPS' ]) && $_SERVER [ 'HTTPS' ] == 'on' ) ? 'https' : 'http' ;
2004-04-07 11:36:01 +00:00
2004-09-27 04:43:29 +00:00
$wgServer = $wgProto . '://' . $wgServerName ;
2005-04-29 07:41:50 +00:00
# If the port is a non-standard one, add it to the URL
if ( isset ( $_SERVER [ 'SERVER_PORT' ] )
&& ( ( $wgProto == 'http' && $_SERVER [ 'SERVER_PORT' ] != 80 )
|| ( $wgProto == 'https' && $_SERVER [ 'SERVER_PORT' ] != 443 ) ) ) {
2004-09-27 04:43:29 +00:00
$wgServer .= " : " . $_SERVER [ 'SERVER_PORT' ];
2004-03-23 10:15:26 +00:00
}
2004-04-07 11:36:01 +00:00
unset ( $wgProto );
2004-03-13 11:28:05 +00:00
2004-09-03 01:05:32 +00:00
/**
* The path we should point to .
* It might be a virtual path in case with use apache mod_rewrite for example
*/
2004-06-09 00:03:26 +00:00
$wgScriptPath = '/wiki' ;
2004-02-27 03:59:21 +00:00
2004-09-03 01:05:32 +00:00
/**
* Whether to support URLs like index . php / Page_title
* @ global bool $wgUsePathInfo
*/
2004-06-09 00:03:26 +00:00
$wgUsePathInfo = ( strpos ( php_sapi_name (), 'cgi' ) === false );
2004-03-26 16:47:12 +00:00
2004-09-03 01:05:32 +00:00
/** #@+
* Script users will request to get articles
* ATTN : Old installations used wiki . phtml and redirect . phtml -
* make sure that LocalSettings . php is correctly set !
* @ deprecated
*/
/**
* @ global string $wgScript
*/
2004-02-28 03:04:02 +00:00
$wgScript = " { $wgScriptPath } /index.php " ;
2004-09-03 01:05:32 +00:00
/**
* @ global string $wgRedirectScript
*/
2004-02-28 03:04:02 +00:00
$wgRedirectScript = " { $wgScriptPath } /redirect.php " ;
2004-09-03 01:05:32 +00:00
/**#@-*/
2004-02-27 03:59:21 +00:00
2004-08-15 23:25:52 +00:00
2004-09-03 01:05:32 +00:00
/** #@+
* @ global string
*/
/**
* style path as seen by users
* @ global string $wgStylePath
*/
2004-09-05 02:21:52 +00:00
$wgStylePath = " { $wgScriptPath } /skins " ;
2004-09-03 01:05:32 +00:00
/**
* filesystem stylesheets directory
* @ global string $wgStyleDirectory
*/
2004-09-05 02:21:52 +00:00
$wgStyleDirectory = " { $IP } /skins " ;
2004-04-27 12:18:48 +00:00
$wgStyleSheetPath = & $wgStylePath ;
2003-04-14 23:10:40 +00:00
$wgArticlePath = " { $wgScript } ?title= $ 1 " ;
$wgUploadPath = " { $wgScriptPath } /upload " ;
$wgUploadDirectory = " { $IP } /upload " ;
2004-09-28 19:54:51 +00:00
$wgHashedUploadDirectory = true ;
2003-04-14 23:10:40 +00:00
$wgLogo = " { $wgUploadPath } /wiki.png " ;
$wgMathPath = " { $wgUploadPath } /math " ;
$wgMathDirectory = " { $wgUploadDirectory } /math " ;
$wgTmpDirectory = " { $wgUploadDirectory } /tmp " ;
2004-09-23 12:15:42 +00:00
$wgUploadBaseUrl = " " ;
2004-09-03 01:05:32 +00:00
/**#@-*/
2004-08-15 23:25:52 +00:00
2005-03-27 16:05:33 +00:00
/**
* Produce hashed HTML article paths . Used internally , do not set .
*/
$wgMakeDumpLinks = false ;
2005-02-28 07:07:14 +00:00
/**
* To set 'pretty' URL paths for actions other than
* plain page views , add to this array . For instance :
* 'edit' => " $wgScriptPath /edit/ $ 1 "
*
* There must be an appropriate script or rewrite rule
* in place to handle these URLs .
*/
$wgActionPaths = array ();
2005-01-27 05:01:28 +00:00
/**
* 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 [[ Image :.. ]],
* [[ Media :.. ]] links ) . Thumbnails will also be looked for and generated in this
* directory .
*/
2004-10-21 05:04:14 +00:00
$wgUseSharedUploads = false ;
2005-01-27 05:01:28 +00:00
/** Full path on the web server where shared uploads can be found */
2004-10-27 10:51:57 +00:00
$wgSharedUploadPath = " http://commons.wikimedia.org/shared/images " ;
2005-04-10 18:29:30 +00:00
/** Path on the file system where shared uploads can be found. */
2004-10-21 05:04:14 +00:00
$wgSharedUploadDirectory = " /var/www/wiki3/images " ;
2005-04-10 18:29:30 +00:00
/** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
$wgSharedUploadDBname = false ;
/** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
$wgCacheSharedUploads = true ;
2005-04-24 01:23:38 +00:00
2005-04-24 00:53:12 +00:00
/**
* Point the upload navigation link to an external URL
* Useful if you want to use a shared repository by default
* without disabling local uploads
2005-04-24 01:23:38 +00:00
* e . g . $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload' ;
2005-04-24 00:53:12 +00:00
*/
2005-04-24 01:23:38 +00:00
$wgUploadNavigationUrl = false ;
2005-01-27 05:01:28 +00:00
2005-04-16 04:33:34 +00:00
/**
* 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 .
*
* Example :
2005-04-20 06:05:16 +00:00
* $wgThumbnailScriptPath = " { $wgScriptPath } /thumb.php " ;
2005-04-16 04:33:34 +00:00
*/
$wgThumbnailScriptPath = false ;
$wgSharedThumbnailScriptPath = false ;
2005-01-27 05:01:28 +00:00
/**
* 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 .
*/
2004-10-21 05:04:14 +00:00
$wgHashedSharedUploadDirectory = true ;
2005-01-27 05:01:28 +00:00
/**
* 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 .
*/
2004-12-02 19:56:00 +00:00
$wgRepositoryBaseUrl = " http://commons.wikimedia.org/wiki/Image: " ;
2004-10-21 05:04:14 +00:00
2005-01-27 05:01:28 +00:00
#
2004-08-15 23:25:52 +00:00
# Email settings
#
2005-01-27 05:01:28 +00:00
2004-09-03 01:05:32 +00:00
/**
* Site admin email address
* Default to wikiadmin @ SERVER_NAME
* @ global string $wgEmergencyContact
*/
2004-09-27 04:43:29 +00:00
$wgEmergencyContact = 'wikiadmin@' . $wgServerName ;
2004-09-20 21:53:21 +00:00
2004-09-03 01:05:32 +00:00
/**
* Password reminder email address
* The address we should use as sender when a user is requesting his password
* Default to apache @ SERVER_NAME
* @ global string $wgPasswordSender
*/
2004-09-27 04:43:29 +00:00
$wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>' ;
2003-08-07 18:31:42 +00:00
2004-12-18 03:47:11 +00:00
/**
* dummy address which should be accepted during mail send action
* It might be necessay to adapt the address or to set it equal
* to the $wgEmergencyContact address
*/
#$wgNoReplyAddress = $wgEmergencyContact;
$wgNoReplyAddress = 'reply@not.possible' ;
2004-11-25 06:20:01 +00:00
/**
* 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 ;
2004-09-03 01:05:32 +00:00
/**
* 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
*/
2004-02-27 12:48:07 +00:00
$wgSMTP = false ;
2004-08-15 23:25:52 +00:00
2004-09-03 01:05:32 +00:00
/** #@+
* Database settings
*/
/** database host name or ip address */
2004-06-09 00:03:26 +00:00
$wgDBserver = 'localhost' ;
2004-09-03 01:05:32 +00:00
/** name of the database */
2004-06-09 00:03:26 +00:00
$wgDBname = 'wikidb' ;
2004-09-03 01:05:32 +00:00
/** */
2004-06-09 00:03:26 +00:00
$wgDBconnection = '' ;
2004-09-03 01:05:32 +00:00
/** Database username */
2004-06-09 00:03:26 +00:00
$wgDBuser = 'wikiuser' ;
2004-09-03 01:05:32 +00:00
/** Database type
* " mysql " for working code and " PostgreSQL " for development / broken code
*/
$wgDBtype = " mysql " ;
2004-09-23 12:15:42 +00:00
/** Search type
* " MyISAM " for MySQL native full text search , " Tsearch2 " for PostgreSQL
* based search engine
*/
$wgSearchType = " MyISAM " ;
2004-09-03 01:05:32 +00:00
/** Table name prefix */
$wgDBprefix = '' ;
2004-09-17 13:47:28 +00:00
/** Database schema
* on some databases this allows separate
* logical namespace for application data
*/
$wgDBschema = 'mediawiki' ;
2004-09-03 01:05:32 +00:00
/**#@-*/
2004-03-26 16:47:12 +00:00
2004-09-17 13:47:28 +00:00
2005-01-27 05:01:28 +00:00
/**
* 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
*/
2004-11-09 21:03:41 +00:00
$wgSharedDB = null ;
2004-08-28 13:32:14 +00:00
2004-06-15 15:00:54 +00:00
# Database load balancer
2004-07-10 03:09:26 +00:00
# This is a two-dimensional array, an array of server info structures
# Fields are:
2005-04-23 11:49:33 +00:00
# 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)
2004-07-24 07:24:04 +00:00
#
2004-07-10 03:09:26 +00:00
# Leave at false to use the single-server variables above
$wgDBservers = false ;
2004-06-15 15:00:54 +00:00
2005-01-27 05:01:28 +00:00
/** How long to wait for a slave to catch up to the master */
2005-01-15 10:11:45 +00:00
$wgMasterWaitTimeout = 10 ;
2005-01-28 00:01:44 +00:00
/** File to log MySQL errors to */
$wgDBerrorLog = false ;
/**
* 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
*/
2003-04-14 23:10:40 +00:00
$wgDBminWordLen = 4 ;
2005-01-28 00:01:44 +00:00
/** Set to true if using InnoDB tables */
$wgDBtransactions = false ;
/** Set to true to use enhanced fulltext search */
$wgDBmysql4 = false ;
2003-04-14 23:10:40 +00:00
2005-01-28 00:01:44 +00:00
/**
* Other wikis on this site , can be administered from a single developer
* account .
* Array , interwiki prefix => database name
*/
2004-03-01 00:31:08 +00:00
$wgLocalDatabases = array ();
2005-04-09 10:30:45 +00:00
/**
* Object cache settings
* See Defines . php for types
*/
$wgMainCacheType = CACHE_NONE ;
$wgMessageCacheType = CACHE_ANYTHING ;
$wgParserCacheType = CACHE_ANYTHING ;
2004-08-15 23:25:52 +00:00
2003-11-12 10:21:28 +00:00
$wgSessionsInMemcached = false ;
$wgLinkCacheMemcached = false ; # Not fully tested
2003-08-11 13:53:20 +00:00
2004-09-04 00:02:45 +00:00
/**
2005-04-09 10:30:45 +00:00
* Memcached - specific settings
2005-04-12 02:07:16 +00:00
* See docs / memcached . txt
2004-09-04 00:02:45 +00:00
*/
2005-04-09 10:30:45 +00:00
$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 ;
2004-08-21 13:59:48 +00:00
2005-03-02 01:54:05 +00:00
2004-08-15 23:25:52 +00:00
2003-04-14 23:10:40 +00:00
# Language settings
#
2005-04-25 10:13:19 +00:00
/** Site language code, should be one of ./languages/Language(.*).php */
2004-09-25 10:38:34 +00:00
$wgLanguageCode = 'en' ;
2004-09-08 07:35:00 +00:00
2005-01-28 00:01:44 +00:00
/** Filename of a language file generated by dumpMessages.php */
2004-09-04 00:02:45 +00:00
$wgLanguageFile = false ;
2005-01-28 00:01:44 +00:00
/** Treat language links as magic connectors, not inline links */
2004-09-04 00:02:45 +00:00
$wgInterwikiMagic = true ;
2005-01-28 00:01:44 +00:00
2005-03-26 22:23:48 +00:00
/** We speak UTF-8 all the time now, unless some oddities happen */
$wgInputEncoding = 'UTF-8' ;
$wgOutputEncoding = 'UTF-8' ;
2004-06-09 00:03:26 +00:00
$wgEditEncoding = '' ;
2004-10-08 08:46:25 +00:00
# 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 ;
2005-05-06 11:31:18 +00:00
/**
* 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 ;
2004-06-09 00:03:26 +00:00
$wgMimeType = 'text/html' ;
2005-05-05 21:00:49 +00:00
$wgJsMimeType = 'text/javascript' ;
2004-06-09 00:03:26 +00:00
$wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN' ;
$wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd' ;
2005-01-28 00:01:44 +00:00
/** Enable to allow rewriting dates in page text .
* DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
$wgUseDynamicDates = false ;
2005-04-07 14:08:04 +00:00
/** Enable dates like 'May 12' instead of '12 May' , this only takes effect if
* the interface is set to English
*/
2005-01-28 00:01:44 +00:00
$wgAmericanDates = false ;
/**
* For Hindi and Arabic use local numerals instead of Western style ( 0 - 9 )
* numerals in interface .
*/
$wgTranslateNumerals = true ;
2004-08-01 06:46:43 +00:00
2003-04-14 23:10:40 +00:00
2003-09-21 13:10:10 +00:00
# Translation using MediaWiki: namespace
2004-02-28 08:31:44 +00:00
# This will increase load times by 25-60% unless memcached is installed
2004-08-15 23:25:52 +00:00
# Interface messages will be get from the database.
2004-03-20 15:03:26 +00:00
$wgUseDatabaseMessages = true ;
2003-12-14 14:29:35 +00:00
$wgMsgCacheExpiry = 86400 ;
2004-10-19 18:02:44 +00:00
# Whether to enable language variant conversion. Currently only zh
# supports this function, to convert between Traditional and Simplified
# Chinese. This flag is meant to isolate the (untested) conversion
# code, so that if it breaks, only zh will be affected
2004-12-24 02:47:38 +00:00
$wgDisableLangConversion = false ;
2004-10-19 18:02:44 +00:00
2005-03-17 15:05:07 +00:00
# Use article validation feature; turned off by default
$wgUseValidation = false ;
2004-11-09 21:41:30 +00:00
# Whether to use zhdaemon to perform Chinese text processing
2004-12-24 02:47:38 +00:00
# zhdaemon is under developement, so normally you don't want to
# use it unless for testing
2004-11-09 21:41:30 +00:00
$wgUseZhdaemon = false ;
$wgZhdaemonHost = " localhost " ;
$wgZhdaemonPort = 2004 ;
2003-04-14 23:10:40 +00:00
# Miscellaneous configuration settings
#
2004-08-15 23:25:52 +00:00
$wgLocalInterwiki = 'w' ;
$wgInterwikiExpiry = 10800 ; # Expiry time for cache of interwiki table
2005-03-15 03:32:30 +00:00
/**
* 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 ;
2004-08-15 23:25:52 +00:00
$wgShowIPinHeader = true ; # For non-logged in users
$wgMaxNameChars = 32 ; # Maximum number of bytes in username
$wgExtraSubtitle = '' ;
$wgSiteSupportPage = '' ; # A page where you users can receive donations
2003-09-01 13:13:56 +00:00
$wgReadOnlyFile = " { $wgUploadDirectory } /lock_yBgMBwiR " ;
2004-09-24 14:49:22 +00:00
2005-01-27 05:01:28 +00:00
/**
* The debug log file should be not be publicly accessible if it is used , as it
* may contain private data . */
2005-03-18 20:53:38 +00:00
$wgDebugLogFile = '' ;
2004-09-04 00:02:45 +00:00
/** #@+
* @ global bool
*/
2004-03-05 03:18:31 +00:00
$wgDebugRedirects = false ;
2004-07-24 07:24:04 +00:00
$wgDebugRawPage = false ; # Avoid overlapping debug entries by leaving out CSS
2003-11-25 06:04:38 +00:00
2003-09-01 13:13:56 +00:00
$wgDebugComments = false ;
$wgReadOnly = false ;
$wgLogQueries = false ;
2004-03-23 10:15:26 +00:00
$wgDebugDumpSql = false ;
2005-02-06 05:51:36 +00:00
/**
* 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 ;
2004-04-15 13:08:22 +00:00
2004-05-12 01:17:05 +00:00
# Should [[Category:Dog]] on a page associate it with the
# category "Dog"? (a link to that category page will be
# added to the article, clicking it reveals a list of
# all articles in the category)
2004-04-24 09:33:39 +00:00
$wgUseCategoryMagic = true ;
2004-05-12 01:17:05 +00:00
2005-01-27 05:01:28 +00:00
/**
* disable experimental dmoz - like category browsing . Output things like :
* Encyclopedia > Music > Style of Music > Jazz
*/
2004-06-06 04:15:03 +00:00
$wgUseCategoryBrowser = false ;
2004-07-24 07:24:04 +00:00
$wgEnablePersistentLC = false ; # Obsolete, do not use
2003-11-27 19:53:59 +00:00
$wgCompressedPersistentLC = true ; # use gzcompressed blobs
2004-08-14 13:34:57 +00:00
$wgUseOldExistenceCheck = false ; # use old prefill link method, for debugging only
2003-09-21 13:10:10 +00:00
2004-11-22 06:49:58 +00:00
/**
* 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 .
*
* This can provide a significant speedup for medium to large pages ,
* so you probably want to keep it on .
*/
$wgEnableParserCache = true ;
2005-03-18 20:43:07 +00:00
/**
* Under which condition should a page in the main namespace be counted
* as a valid article ? If $wgUseCommaCount is set to true , it will be
* counted if it contains at least one comma . If it is set to false
* ( default ), it will only be counted if it contains at least one [[ wiki
* link ]] . See http :// meta . wikimedia . org / wiki / Help : Article_count
*
* Retroactively changing this variable will not affect
* the existing count ( cf . maintenance / recount . sql ) .
*/
$wgUseCommaCount = false ;
2004-09-04 00:02:45 +00:00
/**#@-*/
2004-01-07 02:51:47 +00:00
2005-01-27 05:01:28 +00:00
/**
* wgHitcounterUpdateFreq sets how often page counters should be updated , higher
* values are easier on the database . A value of 1 causes the counters to be
* updated on every hit , any higher value n cause them to update * on average *
* every n hits . Should be set to either 1 or something largish , eg 1000 , for
* maximum efficiency .
*/
2004-01-17 19:59:42 +00:00
$wgHitcounterUpdateFreq = 1 ;
2005-01-27 05:01:28 +00:00
# User rights settings
#
# It's not 100% safe, there could be security hole using that one. Use at your
2004-08-15 23:25:52 +00:00
# own risks.
2004-03-05 13:19:19 +00:00
$wgWhitelistEdit = false ; # true = user must login to edit.
$wgWhitelistRead = false ; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
2004-06-09 00:03:26 +00:00
$wgWhitelistAccount = array ( 'user' => 1 , 'sysop' => 1 , 'developer' => 1 );
2004-08-15 23:25:52 +00:00
$wgAllowAnonymousMinor = false ; # Allow anonymous users to mark changes as 'minor'
2005-04-07 11:54:27 +00:00
$wgSysopUserBans = true ; # Allow sysops to ban logged-in users
$wgSysopRangeBans = true ; # Allow sysops to ban IP ranges
2005-02-22 18:20:12 +00:00
/** Comma - separated list of options to show on the IP block form .
* Use strtotime () format , or " infinite " for an infinite block
*/
$wgBlockExpiryOptions = " 2 hours,1 day,3 days,1 week,2 weeks,1 month,3 months,6 months,1 year,infinite " ;
2004-02-14 12:37:25 +00:00
$wgAutoblockExpiry = 86400 ; # Number of seconds before autoblock entries expire
2004-08-15 23:25:52 +00:00
2005-05-01 18:24:20 +00:00
/**
* Static user groups serialized record
* To avoid database access , you can set this to a user groups record as returned
* by Special : Groups with the magic parameter showrecord = 1. This will however mean
* that you won ' t be able to edit them at runtime .
*/
$wgStaticGroups = false ;
2004-08-15 23:25:52 +00:00
# Proxy scanner settings
2005-01-27 05:01:28 +00:00
#
2005-01-28 00:01:44 +00:00
/**
* If you enable this , every editor ' s IP address will be scanned for open HTTP
* proxies .
*
* Don ' t enable this . Many sysops will report " hostile TCP port scans " to your
* ISP and ask for your server to be shut down .
*
* You have been warned .
*/
$wgBlockOpenProxies = false ;
/** Port we want to scan for a proxy */
2004-03-20 15:03:26 +00:00
$wgProxyPorts = array ( 80 , 81 , 1080 , 3128 , 6588 , 8000 , 8080 , 8888 , 65506 );
2005-01-28 00:01:44 +00:00
/** Script used to scan */
2004-03-10 14:24:40 +00:00
$wgProxyScriptPath = " $IP /proxy_check.php " ;
2005-01-28 00:01:44 +00:00
/** */
2004-03-10 14:24:40 +00:00
$wgProxyMemcExpiry = 86400 ;
2005-03-16 07:36:02 +00:00
/** This should always be customised in LocalSettings.php */
2005-03-16 07:41:58 +00:00
$wgSecretKey = false ;
2005-01-28 00:01:44 +00:00
/** big list of banned IP addresses, in the keys not the values */
$wgProxyList = array ();
2005-03-16 07:55:31 +00:00
/** deprecated */
$wgProxyKey = false ;
2004-08-15 23:25:52 +00:00
2005-01-28 00:01:44 +00:00
/** Number of accounts each IP address may create , 0 to disable .
* Requires memcached */
2004-08-15 23:25:52 +00:00
$wgAccountCreationThrottle = 0 ;
2003-05-16 13:39:22 +00:00
# Client-side caching:
2005-01-28 00:01:44 +00:00
/** Allow client-side caching of pages */
$wgCachePages = true ;
/**
* Set this to current time to invalidate all prior cached pages . Affects both
* client - and server - side caching .
*/
2004-06-09 00:03:26 +00:00
$wgCacheEpoch = '20030516000000' ;
2003-05-16 13:39:22 +00:00
2004-08-15 23:25:52 +00:00
2003-05-16 13:39:22 +00:00
# Server-side caching:
2005-01-28 00:01:44 +00:00
/**
* This will cache static pages for non - logged - in users to reduce
* database traffic on public sites .
* Must set $wgShowIPinHeader = false
*/
2003-05-16 13:39:22 +00:00
$wgUseFileCache = false ;
2005-01-28 00:01:44 +00:00
/** Directory where the cached page will be saved */
2003-05-16 13:39:22 +00:00
$wgFileCacheDirectory = " { $wgUploadDirectory } /cache " ;
2005-01-28 00:01:44 +00:00
/**
* When using the file cache , we can store the cached HTML gzipped to save disk
* space . Pages will then also be served compressed to clients that support it .
* THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
* the default LocalSettings . php ! If you enable this , remove that setting first .
*
* Requires zlib support enabled in PHP .
*/
2004-08-14 22:51:28 +00:00
$wgUseGzip = false ;
2005-01-27 05:01:28 +00:00
# Email notification settings
2004-12-18 03:47:11 +00:00
#
2005-01-27 05:01:28 +00:00
2005-01-28 00:01:44 +00:00
/**
* Program to run when the email is actually sent out . You might want to make
* your server beep for example . Usermailer . php will make a system () call with
* exactly that string as parameter .
*/
# $wgEmailNotificationSystembeep = '/usr/bin/beep -f 4000 -l 20 &';
2005-01-27 05:01:28 +00:00
$wgEmailNotificationSystembeep = '' ;
2004-12-18 03:47:11 +00:00
2005-01-28 00:01:44 +00:00
/** For email notification on page changes */
2005-01-27 05:01:28 +00:00
$wgPasswordSender = $wgEmergencyContact ;
# true: from PageEditor if s/he opted-in
# false: Enotif mails appear to come from $wgEmergencyContact
$wgEmailNotificationMailsSentFromPageEditor = false ;
2004-12-18 03:47:11 +00:00
2005-01-28 00:01:44 +00:00
// TODO move UPO to preferences probably ?
2004-12-18 03:47:11 +00:00
# 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)"
$wgEmailAuthentication = true ; # UPO (if this is set to false, texts referring to authentication are suppressed)
2004-12-18 03:59:06 +00:00
$wgEmailNotificationForWatchlistPages = false ; # UPO
$wgEmailNotificationForUserTalkPages = false ; # UPO
$wgEmailNotificationRevealPageEditorAddress = false ; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
2004-12-18 03:47:11 +00:00
$wgEmailNotificationForMinorEdits = true ; # UPO; false: "minor edits" on pages do not trigger notification mails.
# # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
2005-01-27 05:01:28 +00:00
2005-01-28 00:01:44 +00:00
/** Show watching users in recent changes, watchlist and page history views */
2004-12-18 03:59:06 +00:00
$wgRCShowWatchingUsers = false ; # UPO
2005-01-28 00:01:44 +00:00
/** Show watching users in Page views */
2004-12-18 03:59:06 +00:00
$wgPageShowWatchingUsers = false ;
2005-01-28 00:01:44 +00:00
/**
* Show " Updated (since my last visit) " marker in RC view , watchlist and history
* view for watched pages with new changes */
2004-12-18 03:47:11 +00:00
$wgShowUpdatedMarker = true ; # UPO
$wgCookieExpiration = 2592000 ;
2004-08-15 23:25:52 +00:00
2004-01-30 17:07:50 +00:00
# Squid-related settings
#
2004-08-15 23:25:52 +00:00
2005-01-28 00:01:44 +00:00
/** Enable/disable Squid */
$wgUseSquid = false ;
2004-08-15 23:25:52 +00:00
2005-01-28 00:01:44 +00:00
/** If you run Squid3 with ESI support, enable this (default:false): */
$wgUseESI = false ;
2004-08-15 23:25:52 +00:00
2005-01-28 00:01:44 +00:00
/** Internal server name as known to Squid, if different */
2004-01-30 18:02:50 +00:00
# $wgInternalServer = 'http://yourinternal.tld:8000';
2005-01-28 00:01:44 +00:00
$wgInternalServer = $wgServer ;
2004-08-15 23:25:52 +00:00
2005-01-28 00:01:44 +00:00
/**
* Cache timeout for the squid , will be sent as s - maxage ( without ESI ) or
* Surrogate - Control ( with ESI ) . Without ESI , you should strip out s - maxage in
* the Squid config . 18000 seconds = 5 hours , more cache hits with 2678400 = 31
* days
*/
$wgSquidMaxage = 18000 ;
2004-08-15 23:25:52 +00:00
2005-01-28 00:01:44 +00:00
/**
* A list of proxy servers ( ips if possible ) to purge on changes don ' t specify
* ports here ( 80 is default )
*/
2004-01-30 17:07:50 +00:00
# $wgSquidServers = array('127.0.0.1');
2005-02-06 03:29:39 +00:00
$wgSquidServers = array ();
2005-01-12 22:45:39 +00:00
$wgSquidServersNoPurge = array ();
2004-01-30 17:07:50 +00:00
2005-01-28 00:01:44 +00:00
/** Maximum number of titles to purge in any one client operation */
2004-06-30 03:39:48 +00:00
$wgMaxSquidPurgeTitles = 400 ;
2005-04-06 17:14:43 +00:00
/** HTCP multicast purging */
$wgHTCPPort = 4827 ;
$wgHTCPMulticastTTL = 1 ;
# $wgHTCPMulticastAddress = "224.0.0.85";
2004-06-30 03:39:48 +00:00
2004-08-15 23:25:52 +00:00
# Cookie settings:
2005-01-28 00:01:44 +00:00
#
/**
* Set to set an explicit domain on the login cookies eg , " justthis.domain. org "
* or " .any.subdomain.net "
*/
2004-06-09 00:03:26 +00:00
$wgCookieDomain = '' ;
$wgCookiePath = '/' ;
2003-11-22 12:30:13 +00:00
$wgDisableCookieCheck = false ;
2003-11-12 10:21:28 +00:00
2005-01-28 00:01:44 +00:00
/** Whether to allow inline image pointing to other websites */
2003-04-14 23:10:40 +00:00
$wgAllowExternalImages = true ;
2004-08-15 23:25:52 +00:00
2005-01-28 00:01:44 +00:00
/** Disable database-intensive features */
$wgMiserMode = false ;
/** Disable all query pages if miser mode is on, not just some */
$wgDisableQueryPages = false ;
/** Generate a watchlist once every hour or so */
$wgUseWatchlistCache = false ;
/** The hour or so mentioned above */
$wgWLCacheTimeout = 3600 ;
2004-01-11 23:14:20 +00:00
2005-01-28 00:01:44 +00:00
/**
* To use inline TeX , you need to compile 'texvc' ( in the 'math' subdirectory of
* the MediaWiki package and have latex , dvips , gs ( ghostscript ), andconvert
* ( ImageMagick ) installed and available in the PATH .
* Please see math / README for more information .
*/
2003-04-14 23:10:40 +00:00
$wgUseTeX = false ;
2005-01-28 00:01:44 +00:00
/** Location of the texvc binary */
$wgTexvc = './math/texvc' ;
2003-11-09 11:45:12 +00:00
2005-01-28 00:01:44 +00:00
#
2003-11-09 11:45:12 +00:00
# Profiling / debugging
2005-01-28 00:01:44 +00:00
#
2005-01-18 12:30:42 +00:00
2005-01-28 00:01:44 +00:00
/** Enable for more detailed by-function times in debug log */
$wgProfiling = false ;
/** Only record profiling info for pages that took longer than this */
$wgProfileLimit = 0.0 ;
/** Don't put non-profiling info into log file */
$wgProfileOnly = false ;
/** Log sums from profiling into "profiling" table in db. */
$wgProfileToDatabase = false ;
/** Only profile every n requests when profiling is turned on */
$wgProfileSampleRate = 1 ;
/** If true, print a raw call tree instead of per-function report */
$wgProfileCallTree = false ;
/** Detects non-matching wfProfileIn/wfProfileOut calls */
$wgDebugProfiling = false ;
/** Output debug message on every wfProfileIn/wfProfileOut */
$wgDebugFunctionEntry = 0 ;
/** Lots of debugging output from SquidUpdate.php */
$wgDebugSquid = false ;
2003-11-09 11:45:12 +00:00
$wgDisableCounters = false ;
$wgDisableTextSearch = false ;
2005-01-28 00:01:44 +00:00
/**
* If you ' ve disabled search semi - permanently , this also disables updates to the
* table . If you ever re - enable , be sure to rebuild the search table .
*/
$wgDisableSearchUpdate = false ;
/** Uploads have to be specially set up to be secure */
2005-04-01 19:55:45 +00:00
$wgEnableUploads = false ;
2005-04-22 01:59:36 +00:00
/**
* Show EXIF data , on by default if available .
* Requires PHP ' s EXIF extension : http :// www . php . net / manual / en / ref . exif . php
*/
$wgShowEXIF = function_exists ( 'exif_read_data' );
2005-01-28 00:01:44 +00:00
/**
* 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 ;
2003-11-09 11:45:12 +00:00
$wgDisableAnonTalk = false ;
2003-04-14 23:10:40 +00:00
2005-01-28 00:01:44 +00:00
/**
* Path to the GNU diff3 utility . If the file doesn ' t exist , edit conflicts will
* fall back to the old behaviour ( no merging ) .
*/
2004-06-09 00:03:26 +00:00
$wgDiff3 = '/usr/bin/diff3' ;
2004-03-14 15:05:52 +00:00
2005-01-28 00:01:44 +00:00
/**
* We can also compress text in the old revisions table . If this is set on , old
* revisions will be compressed on page save if zlib support is available . Any
* compressed revisions will be decompressed on load regardless of this setting
* * but will not be readable at all * if zlib support is not available .
*/
2004-01-04 03:35:00 +00:00
$wgCompressRevisions = false ;
2003-05-20 09:30:40 +00:00
2005-01-28 00:01:44 +00:00
/**
* This is the list of preferred extensions for uploading files . Uploading files
* with extensions not in this list will trigger a warning .
*/
2005-02-04 06:19:37 +00:00
$wgFileExtensions = array ( 'png' , 'gif' , 'jpg' , 'jpeg' );
2003-12-09 18:20:32 +00:00
2005-01-28 00:01:44 +00:00
/** Files with these extensions will never be allowed as uploads. */
2004-01-20 04:12:21 +00:00
$wgFileBlacklist = array (
# HTML may contain cookie-stealing JavaScript and web bugs
2004-06-09 00:03:26 +00:00
'html' , 'htm' ,
2004-01-20 04:12:21 +00:00
# PHP scripts may execute arbitrary code on the server
2004-06-09 00:03:26 +00:00
'php' , 'phtml' , 'php3' , 'php4' , 'phps' ,
2004-01-20 04:12:21 +00:00
# Other types that may be interpreted by some servers
2004-11-13 15:05:01 +00:00
'shtml' , 'jhtml' , 'pl' , 'py' , 'cgi' ,
2004-01-20 04:12:21 +00:00
# May contain harmful executables for Windows victims
2004-06-09 00:03:26 +00:00
'exe' , 'scr' , 'dll' , 'msi' , 'vbs' , 'bat' , 'com' , 'pif' , 'cmd' , 'vxd' , 'cpl' );
2004-01-20 04:12:21 +00:00
2005-01-28 00:01:44 +00:00
/** This is a flag to determine whether or not to check file extensions on upload. */
2003-12-09 18:20:32 +00:00
$wgCheckFileExtensions = true ;
2005-01-28 00:01:44 +00:00
/**
* If this is turned off , users may override the warning for files not covered
* by $wgFileExtensions .
*/
2004-01-20 04:12:21 +00:00
$wgStrictFileExtensions = true ;
2005-01-28 00:01:44 +00:00
/** Warn if uploaded files are larger than this */
2005-03-31 12:23:23 +00:00
$wgUploadSizeWarning = 150 * 1024 ;
2004-06-09 12:15:42 +00:00
2005-01-28 00:01:44 +00:00
/** For compatibility with old installations set to false */
$wgPasswordSalt = true ;
2003-08-08 03:10:55 +00:00
2005-01-28 00:01:44 +00:00
/** Which namespaces should support subpages ?
* See Language . php for a list of namespaces .
*/
2005-03-26 09:12:41 +00:00
$wgNamespacesWithSubpages = array (
NS_SPECIAL => 0 ,
NS_MAIN => 0 ,
NS_TALK => 1 ,
NS_USER => 1 ,
NS_USER_TALK => 1 ,
NS_PROJECT => 0 ,
NS_PROJECT_TALK => 1 ,
NS_IMAGE => 0 ,
NS_IMAGE_TALK => 1 ,
NS_MEDIAWIKI => 0 ,
NS_MEDIAWIKI_TALK => 1 ,
NS_TEMPLATE => 0 ,
NS_TEMPLATE_TALK => 1 ,
NS_HELP => 0 ,
NS_HELP_TALK => 1 ,
NS_CATEGORY => 0 ,
NS_CATEGORY_TALK => 1
);
2005-04-13 08:16:53 +00:00
$wgNamespacesToBeSearchedDefault = array (
NS_SPECIAL => 0 ,
NS_MAIN => 1 ,
NS_TALK => 0 ,
NS_USER => 0 ,
NS_USER_TALK => 0 ,
NS_PROJECT => 0 ,
NS_PROJECT_TALK => 0 ,
NS_IMAGE => 0 ,
NS_IMAGE_TALK => 0 ,
NS_MEDIAWIKI => 0 ,
NS_MEDIAWIKI_TALK => 1 ,
NS_TEMPLATE => 1 ,
NS_TEMPLATE_TALK => 1 ,
NS_HELP => 0 ,
NS_HELP_TALK => 0 ,
NS_CATEGORY => 0 ,
NS_CATEGORY_TALK => 0
);
2003-07-01 08:27:32 +00:00
2005-01-28 00:01:44 +00:00
/** If set, a bold ugly notice will show up at the top of every page. */
$wgSiteNotice = '' ;
2004-01-28 22:57:07 +00:00
2004-04-08 09:14:20 +00:00
#
2005-01-28 00:01:44 +00:00
# Images settings
#
/** dynamic server side image resizing ("Thumbnails") */
$wgUseImageResize = false ;
/**
* Resizing can be done using PHP ' s internal image libraries or using
* ImageMagick . The later supports more file formats than PHP , which only
* supports PNG , GIF , JPG , XBM and WBMP .
*
* Use Image Magick instead of PHP builtin functions .
*/
2004-04-08 09:14:20 +00:00
$wgUseImageMagick = false ;
2005-01-28 00:01:44 +00:00
/** The convert command shipped with ImageMagick */
2004-06-09 00:03:26 +00:00
$wgImageMagickConvertCommand = '/usr/bin/convert' ;
2004-04-08 09:14:20 +00:00
2004-10-06 10:33:22 +00:00
# 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:
$wgSVGConverters = array (
'ImageMagick' => '$path/convert -background white -geometry $width $input $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' ,
);
2005-01-28 00:01:44 +00:00
/** Pick one of the above */
$wgSVGConverter = 'ImageMagick' ;
/** If not in the executable PATH, specify */
$wgSVGConverterPath = '' ;
2004-10-06 10:33:22 +00:00
2005-01-28 00:01:44 +00:00
/** @todo FIXME what does it do here ?? [ashar] */
2004-03-08 01:51:32 +00:00
if ( ! isset ( $wgCommandLineMode ) ) {
$wgCommandLineMode = false ;
}
2005-01-28 00:01:44 +00:00
#
# Recent changes settings
#
2005-01-27 05:01:28 +00:00
/** Log IP addresses in the recentchanges table */
2004-06-14 10:40:24 +00:00
$wgPutIPinRC = false ;
2005-01-28 00:01:44 +00:00
/**
* Recentchanges items are periodically purged ; entries older than this many
* seconds will go .
* For one week : 7 * 24 * 3600
*/
$wgRCMaxAge = 7 * 24 * 3600 ;
#
# Copyright and credits settings
#
2005-01-19 03:54:43 +00:00
2005-01-27 05:01:28 +00:00
/** RDF metadata toggles */
2004-04-04 21:58:05 +00:00
$wgEnableDublinCoreRdf = false ;
$wgEnableCreativeCommonsRdf = false ;
2005-01-27 05:01:28 +00:00
/** Override for copyright metadata .
* TODO : these options need documentation
*/
2004-04-04 21:58:05 +00:00
$wgRightsPage = NULL ;
$wgRightsUrl = NULL ;
$wgRightsText = NULL ;
2004-04-11 07:06:26 +00:00
$wgRightsIcon = NULL ;
2004-04-05 04:02:04 +00:00
2005-01-27 05:01:28 +00:00
/** Set this to some HTML to override the rights icon with an arbitrary logo */
2004-12-28 22:02:19 +00:00
$wgCopyrightIcon = NULL ;
2005-01-27 05:01:28 +00:00
/** Set this to true if you want detailed copyright information forms on Upload. */
2004-06-24 13:26:08 +00:00
$wgUseCopyrightUpload = false ;
2005-01-27 05:01:28 +00:00
/** Set this to false if you want to disable checking that detailed copyright
* information values are not empty . */
2004-06-24 13:26:08 +00:00
$wgCheckCopyrightUpload = true ;
2005-01-28 00:01:44 +00:00
/**
* Set this to the number of authors that you want to be credited below an
* article text . Set it to zero to hide the attribution block , and a negative
* number ( like - 1 ) to show all authors . Note that this will # require 2-3 extra
* database hits , which can have a not insignificant impact on performance for
* large wikis .
*/
$wgMaxCredits = 0 ;
/** If there are more than $wgMaxCredits authors , show $wgMaxCredits of them .
* Otherwise , link to a separate credits page . */
$wgShowCreditsIfMax = true ;
2004-06-24 13:26:08 +00:00
2005-01-27 05:01:28 +00:00
/**
* Set this to false to avoid forcing the first letter of links to capitals .
* WARNING : may break links ! This makes links COMPLETELY case - sensitive . Links
* appearing with a capital at the beginning of a sentence will * not * go to the
* same place as links in the middle of a sentence using a lowercase initial .
*/
2004-04-05 04:02:04 +00:00
$wgCapitalLinks = true ;
2005-01-27 05:01:28 +00:00
/**
* List of interwiki prefixes for wikis we ' ll accept as sources for
* Special : Import ( for sysops ) . Since complete page history # can be imported,
* these should be 'trusted' .
*/
2004-04-11 07:06:26 +00:00
$wgImportSources = array ();
2004-04-26 05:14:42 +00:00
2004-06-28 20:24:23 +00:00
2005-01-27 05:01:28 +00:00
/** Text matching this regular expression will be recognised as spam
* See http :// en . wikipedia . org / wiki / Regular_expression */
2004-05-04 14:36:42 +00:00
$wgSpamRegex = false ;
2005-01-27 05:01:28 +00:00
/** Similarly if this function returns true */
2004-06-21 07:41:53 +00:00
$wgFilterCallback = false ;
2004-05-04 14:36:42 +00:00
2005-01-27 05:01:28 +00:00
/** Go button goes straight to the edit screen if the article doesn't exist. */
2004-05-04 14:36:42 +00:00
$wgGoToEdit = false ;
2004-05-06 12:41:31 +00:00
2005-01-27 05:01:28 +00:00
/** Allow limited user - specified HTML in wiki pages ?
* It will be run through a whitelist for security . Set this to false if you
* want wiki pages to consist only of wiki markup . Note that replacements do not
* yet exist for all HTML constructs .*/
2004-05-09 12:04:59 +00:00
$wgUserHtml = true ;
2005-01-27 05:01:28 +00:00
/** Allow raw , unchecked HTML in < html >...</ html > sections .
* THIS IS VERY DANGEROUS on a publically editable site , so you can ' t enable it
* unless you ' ve restricted editing to trusted users only with $wgWhitelistEdit .
*/
2004-07-24 22:59:44 +00:00
$wgRawHtml = false ;
2005-01-27 05:01:28 +00:00
/**
* $wgUseTidy : use tidy to make sure HTML output is sane .
* This should only be enabled if $wgUserHtml is true .
* tidy is a free tool that fixes broken HTML .
* See http :// www . w3 . org / People / Raggett / tidy /
* $wgTidyBin should be set to the path of the binary and
* $wgTidyConf to the path of the configuration file .
* $wgTidyOpts can include any number of parameters .
2005-04-20 21:58:57 +00:00
*
* $wgTidyInternal controls the use of the PECL extension to use an in -
* process tidy library instead of spawning a separate program .
* Normally you shouldn ' t need to override the setting except for
* debugging . To install , use 'pear install tidy' and add a line
* 'extension=tidy.so' to php . ini .
2005-01-27 05:01:28 +00:00
*/
2004-05-06 12:41:31 +00:00
$wgUseTidy = false ;
$wgTidyBin = 'tidy' ;
$wgTidyConf = $IP . '/extensions/tidy/tidy.conf' ;
$wgTidyOpts = '' ;
2005-04-20 21:58:57 +00:00
$wgTidyInternal = function_exists ( 'tidy_load_config' );
2004-05-08 02:15:50 +00:00
2005-04-25 10:13:19 +00:00
/** See list of skins and their symbolic names in languages/Language.php */
2004-06-09 00:03:26 +00:00
$wgDefaultSkin = 'monobook' ;
2004-05-08 02:15:50 +00:00
2005-01-28 00:01:44 +00:00
/**
* Settings added to this array will override the language globals for the user
* preferences used by anonymous visitors and newly created accounts . ( See names
* and sample values in languages / Language . php )
* For instance , to disable section editing links :
* $wgDefaultUserOptions [ 'editsection' ] = 0 ;
*
*/
2004-11-21 07:51:41 +00:00
$wgDefaultUserOptions = array ();
2005-01-27 05:01:28 +00:00
/** Whether or not to allow and use real name fields. Defaults to true. */
2004-05-29 17:32:49 +00:00
$wgAllowRealName = true ;
2005-01-27 05:01:28 +00:00
/** Use XML parser? */
2004-11-03 14:00:08 +00:00
$wgUseXMLparser = false ;
2005-01-27 05:01:28 +00:00
/** Extensions */
2004-08-27 05:23:52 +00:00
$wgSkinExtensionFunctions = array ();
2004-05-15 03:36:39 +00:00
$wgExtensionFunctions = array ();
2004-06-11 02:47:41 +00:00
2005-02-04 06:19:37 +00:00
/**
* Allow user Javascript page ?
* This enables a lot of neat customizations , but may
* increase security risk to users and server load .
*/
$wgAllowUserJs = false ;
2004-06-28 21:51:52 +00:00
2005-02-04 06:19:37 +00:00
/**
* Allow user Cascading Style Sheets ( CSS ) ?
* This enables a lot of neat customizations , but may
* increase security risk to users and server load .
*/
$wgAllowUserCss = false ;
2004-06-28 21:51:52 +00:00
2005-01-27 05:01:28 +00:00
/** Use the site's Javascript page? */
2004-11-13 00:07:35 +00:00
$wgUseSiteJs = true ;
2005-01-27 05:01:28 +00:00
/** Use the site's Cascading Style Sheets (CSS)? */
2004-11-13 00:07:35 +00:00
$wgUseSiteCss = true ;
2005-01-27 05:01:28 +00:00
/** Filter for Special:Randompage. Part of a WHERE clause */
2004-07-10 01:25:42 +00:00
$wgExtraRandompageSQL = false ;
2005-01-27 05:01:28 +00:00
/** Allow the "info" action, very inefficient at the moment */
2004-07-09 11:42:24 +00:00
$wgAllowPageInfo = false ;
2004-07-19 05:15:50 +00:00
2005-01-27 05:01:28 +00:00
/** Maximum indent level of toc. */
2004-07-19 05:15:50 +00:00
$wgMaxTocLevel = 999 ;
2004-07-24 07:24:04 +00:00
2005-01-27 05:01:28 +00:00
/** Use external C++ diff engine (module wikidiff from the extensions package) */
2004-08-08 02:20:00 +00:00
$wgUseExternalDiffEngine = false ;
2005-01-27 05:01:28 +00:00
/** Use RC Patrolling to check for vandalism */
2004-08-09 18:58:43 +00:00
$wgUseRCPatrol = true ;
2005-01-27 05:01:28 +00:00
/** Set maximum number of results to return in syndication feeds ( RSS , Atom ) for
* eg Recentchanges , Newpages . */
2004-12-12 04:13:19 +00:00
$wgFeedLimit = 50 ;
2005-01-27 05:01:28 +00:00
/** _Minimum_ timeout for cached Recentchanges feed , in seconds .
* A cached version will continue to be served out even if changes
* are made , until this many seconds runs out since the last render . */
2004-12-12 04:13:19 +00:00
$wgFeedCacheTimeout = 60 ;
2005-01-27 05:01:28 +00:00
/** When generating Recentchanges RSS / Atom feed , diffs will not be generated for
* pages larger than this size . */
2004-12-12 04:13:19 +00:00
$wgFeedDiffCutoff = 32768 ;
2005-01-27 05:01:28 +00:00
/**
* Additional namespaces . If the namespaces defined in Language . php and
* Namespace . php are insufficient , # you can create new ones here, for example,
* to import Help files in other languages .
* PLEASE NOTE : Once you delete a namespace , the pages in that namespace will
* no longer be accessible . If you rename it , then you can access them through
* the new namespace name .
*
2005-05-02 10:15:02 +00:00
* Custom namespaces should start at 100 to avoid conflicting with standard
* namespaces , and should always follow the even / odd main / talk pattern .
2005-01-27 05:01:28 +00:00
*/
2004-09-09 06:12:04 +00:00
#$wgExtraNamespaces =
# array(100 => "Hilfe",
2004-08-31 10:23:55 +00:00
# 101 => "Hilfe_Diskussion",
2004-09-09 06:12:04 +00:00
# 102 => "Aide",
# 103 => "Discussion_Aide"
2004-08-31 10:23:55 +00:00
# );
2004-09-09 06:12:04 +00:00
$wgExtraNamespaces = NULL ;
2004-08-31 10:23:55 +00:00
2005-01-27 05:01:28 +00:00
/**
* 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 . This is the
* list of settings the user can choose from :
*/
2004-09-10 00:53:31 +00:00
$wgImageLimits = array (
array ( 320 , 240 ),
array ( 640 , 480 ),
array ( 800 , 600 ),
array ( 1024 , 768 ),
array ( 1280 , 1024 ),
array ( 10000 , 10000 ) );
2005-04-12 00:37:45 +00:00
/**
* 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
);
2004-09-26 09:45:35 +00:00
2004-10-24 09:21:53 +00:00
/** Navigation links for the user sidebar .
* 'text' is the name of the MediaWiki message that contains the label of this link
* 'href' is the name of the MediaWiki message that contains the link target of this link .
* Link targets starting with http are considered remote links . Ones not starting with
* http are considered as names of local wiki pages .
*/
2004-09-26 09:45:35 +00:00
$wgNavigationLinks = array (
array ( 'text' => 'mainpage' , 'href' => 'mainpage' ),
array ( 'text' => 'portal' , 'href' => 'portal-url' ),
array ( 'text' => 'currentevents' , 'href' => 'currentevents-url' ),
array ( 'text' => 'recentchanges' , 'href' => 'recentchanges-url' ),
array ( 'text' => 'randompage' , 'href' => 'randompage-url' ),
array ( 'text' => 'help' , 'href' => 'helppage' ),
array ( 'text' => 'sitesupport' , 'href' => 'sitesupport-url' ),
);
2005-01-27 05:01:28 +00:00
/**
* On category pages , show thumbnail gallery for images belonging to that
* category instead of listing them as articles .
*/
2004-09-30 21:36:12 +00:00
$wgCategoryMagicGallery = true ;
2005-01-27 05:01:28 +00:00
/**
* Browser Blacklist for unicode non compliant browsers
* Contains a list of regexps : " /regexp/ " matching problematic browsers
*/
2004-10-11 21:23:39 +00:00
$wgBrowserBlackList = array (
2005-04-15 20:42:34 +00:00
" /Mozilla \ /4 \ .78 \ [en \ ] \ (X11; U; Linux/ " ,
2005-04-15 21:54:45 +00:00
/**
* MSIE on Mac OS 9 is teh sux0r , converts þ to < thorn > , ð to < eth > , Þ to < THORN > and Ð to < ETH >
*
* Known useragents :
* - Mozilla / 4.0 ( compatible ; MSIE 5.0 ; Mac_PowerPC )
* - Mozilla / 4.0 ( compatible ; MSIE 5.15 ; Mac_PowerPC )
* - Mozilla / 4.0 ( compatible ; MSIE 5.23 ; Mac_PowerPC )
* - [ ... ]
*
* @ link http :// en . wikipedia . org / w / index . php ? title = User % 3 A % C6var_Arnfj % F6r % F0_Bjarmason % 2 Ftestme & diff = 12356041 & oldid = 12355864
* @ link http :// en . wikipedia . org / wiki / Template % 3 AOS9
*/
2005-04-15 22:03:11 +00:00
" /Mozilla \ /4 \ .0 \ (compatible; MSIE \ d+ \ . \ d+; Mac_PowerPC \ )/ "
2005-04-15 20:42:34 +00:00
);
2004-09-26 09:45:35 +00:00
2005-01-27 05:01:28 +00:00
/**
* Fake out the timezone that the server thinks it ' s in . This will be used for
* date display and not for what ' s stored in the DB . Leave to null to retain
* your server ' s OS - based timezone value . This is the same as the timezone .
*/
2004-10-11 22:59:29 +00:00
# $wgLocaltimezone = 'GMT';
# $wgLocaltimezone = 'PST8PDT';
# $wgLocaltimezone = 'Europe/Sweden';
# $wgLocaltimezone = 'CET';
2004-12-10 03:56:04 +00:00
$wgLocaltimezone = null ;
2004-10-11 22:59:29 +00:00
2005-01-27 05:01:28 +00:00
/**
* User level management
* The number is the database id of a group you want users to be attached by
* default . A better interface should be coded [ av ]
*/
2004-10-24 19:14:48 +00:00
$wgAnonGroupId = 1 ;
$wgLoggedInGroupId = 2 ;
2004-12-28 14:49:42 +00:00
$wgSysopGroupId = 3 ;
$wgBureaucratGroupId = 4 ;
2005-04-25 02:21:48 +00:00
$wgStewardGroupId = 5 ;
2004-10-24 19:14:48 +00:00
2005-01-27 05:01:28 +00:00
/**
* When translating messages with wfMsg (), it is not always clear what should be
* considered UI messages and what shoud be content messages .
*
* For example , for regular wikipedia site like en , there should be only one
* 'mainpage' , therefore when getting the link of 'mainpage' , we should treate
* it as content of the site and call wfMsgForContent (), while for rendering the
* text of the link , we call wfMsg () . The code in default behaves this way .
* However , sites like common do offer different versions of 'mainpage' and the
* like for different languages . This array provides a way to override the
* default behavior . For example , to allow language specific mainpage and
* community portal , set
*
* $wgForceUIMsgAsContentMsg = array ( 'mainpage' , 'portal-url' );
*/
2004-12-09 03:00:49 +00:00
$wgForceUIMsgAsContentMsg = array ();
2004-12-24 02:47:38 +00:00
2004-11-16 05:28:47 +00:00
/**
* Authentication plugin .
*/
$wgAuth = null ;
2004-11-27 21:43:06 +00:00
/**
* Global list of hooks .
* Add a hook by doing :
* $wgHooks [ 'event_name' ][] = $function ;
* or :
* $wgHooks [ 'event_name' ][] = array ( $function , $data );
* or :
* $wgHooks [ 'event_name' ][] = array ( $object , 'method' );
2005-01-27 05:01:28 +00:00
*/
2004-11-27 21:43:06 +00:00
$wgHooks = array ();
2004-12-19 02:36:04 +00:00
/**
* Experimental preview feature to fetch rendered text
* over an XMLHttpRequest from JavaScript instead of
* forcing a submit and reload of the whole page .
* Leave disabled unless you ' re testing it .
*/
$wgLivePreview = false ;
2004-12-21 09:28:57 +00:00
/**
* Disable the internal MySQL - based search , to allow it to be
* implemented by an extension instead .
*/
$wgDisableInternalSearch = false ;
2005-01-07 03:25:49 +00:00
/**
* Set this to a URL to forward search requests to some external location .
* If the URL includes '$1' , this will be replaced with the URL - encoded
* search term .
*
* For example , to forward to Google you ' d have something like :
* $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
* '&domains=http://example.com' .
* '&sitesearch=http://example.com' .
* '&ie=utf-8&oe=utf-8' ;
*/
$wgSearchForwardUrl = null ;
2005-01-19 09:33:19 +00:00
/**
* If true , external URL links in wiki text will be given the
* rel = " nofollow " attribute as a hint to search engines that
* they should not be followed for ranking purposes as they
* are user - supplied and thus subject to spamming .
*/
$wgNoFollowLinks = true ;
2005-01-30 19:39:11 +00:00
/**
* Specifies the minimal length of a user password . If set to
* 0 , empty passwords are allowed .
*/
$wgMinimalPasswordLength = 0 ;
2005-03-24 13:30:09 +00:00
/**
* Activate external editor interface for files and pages
* See http :// meta . wikimedia . org / wiki / Help : External_editors
*/
$wgUseExternalEditor = true ;
2005-03-20 02:53:23 +00:00
/** Whether or not to sort special pages in Special:Specialpages */
$wgSortSpecialPages = true ;
2005-03-28 08:55:35 +00:00
/**
* Array of disabled article actions , e . g . view , edit , dublincore , delete , etc .
*/
$wgDisabledActions = array ();
2005-03-28 15:19:24 +00:00
/**
* Use http . dnsbl . sorbs . net to check for open proxies
*/
2005-04-25 10:13:19 +00:00
$wgEnableSorbs = false ;
2005-03-28 15:19:24 +00:00
2005-04-10 21:27:42 +00:00
/**
* On Special : Unusedimages , consider images " used " , if they are put
* into a category . Default ( false ) is not to count those as used .
*/
$wgCountCategorizedImagesAsUsed = false ;
2005-04-18 17:21:27 +00:00
/**
* External stores allow including content
* from non database sources following URL links
*
* Short names of ExternalStore classes may be specified in an array here :
* $wgExternalStores = array ( " http " , " file " , " custom " ) ...
*
* CAUTION : Access to database might lead to code execution
*/
$wgExternalStores = false ;
2004-08-06 22:30:47 +00:00
} else {
die ();
}
2005-02-22 18:20:12 +00:00
?>