(bug 4974) Don't follow redirected talk page on "new messages" link
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index e1ca644..9d52656 100644 (file)
  * depends on it.
  *
  * Documentation is in the source and on:
- * http://meta.wikimedia.org/wiki/Help:Configuration_settings_index
+ * http://www.mediawiki.org/wiki/Help:Configuration_settings
  *
  * @package MediaWiki
  */
 
 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
 if( !defined( 'MEDIAWIKI' ) ) {
-       die( "This file is part of MediaWiki and is not a valid entry point\n" );
+       echo "This file is part of MediaWiki and is not a valid entry point\n";
+       die( -1 );
 }
 
 /**
@@ -117,6 +118,7 @@ $wgUploadPath       = "{$wgScriptPath}/upload";
 $wgUploadDirectory     = "{$IP}/upload";
 $wgHashedUploadDirectory       = true;
 $wgLogo                                = "{$wgUploadPath}/wiki.png";
+$wgFavicon                     = '/favicon.ico';
 $wgMathPath         = "{$wgUploadPath}/math";
 $wgMathDirectory    = "{$wgUploadDirectory}/math";
 $wgTmpDirectory     = "{$wgUploadDirectory}/tmp";
@@ -133,14 +135,14 @@ $wgUploadBaseUrl    = "";
  *  +         Doesn't work with path to query rewrite rules, corrupted by apache
  *  ?         Enabled by default, but doesn't work with path to PATH_INFO rewrites
  *
- * All three of these punctuation problems can be avoided by using an alias, instead of a 
+ * All three of these punctuation problems can be avoided by using an alias, instead of a
  * rewrite rule of either variety.
  *
- * The problem with % is that when using a path to query rewrite rule, URLs are 
- * double-unescaped: once by Apache's path conversion code, and again by PHP. So 
- * %253F, for example, becomes "?". Our code does not double-escape to compensate 
- * for this, indeed double escaping would break if the double-escaped title was 
- * passed in the query string rather than the path. This is a minor security issue 
+ * The problem with % is that when using a path to query rewrite rule, URLs are
+ * double-unescaped: once by Apache's path conversion code, and again by PHP. So
+ * %253F, for example, becomes "?". Our code does not double-escape to compensate
+ * for this, indeed double escaping would break if the double-escaped title was
+ * passed in the query string rather than the path. This is a minor security issue
  * because articles can be created such that they are hard to view or edit.
  *
  * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
@@ -357,7 +359,7 @@ $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
  * Default to apache@SERVER_NAME
  * @global string $wgPasswordSender
  */
-$wgPasswordSender      = 'Wikipedia Mail <apache@' . $wgServerName . '>';
+$wgPasswordSender      = 'MediaWiki Mail <apache@' . $wgServerName . '>';
 
 /**
  * dummy address which should be accepted during mail send action
@@ -462,7 +464,7 @@ $wgSharedDB = null;
 #   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 
+#   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
@@ -512,7 +514,7 @@ $wgDBmysql5                 = false;
 /**
  * Other wikis on this site, can be administered from a single developer
  * account.
- * Array, interwiki prefix => database name
+ * Array numeric key => database name
  */
 $wgLocalDatabases   = array();
 
@@ -524,6 +526,8 @@ $wgMainCacheType = CACHE_NONE;
 $wgMessageCacheType = CACHE_ANYTHING;
 $wgParserCacheType = CACHE_ANYTHING;
 
+$wgParserCacheExpireTime = 86400;
+
 $wgSessionsInMemcached = false;
 $wgLinkCacheMemcached = false; # Not fully tested
 
@@ -535,12 +539,18 @@ $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;
 
+/**
+ * Directory for compiled constant message array databases
+ * WARNING: turning anything on will just break things, aaaaaah!!!!
+ */
+$wgCachedMessageArrays = false;
 
 # Language settings
 #
@@ -636,6 +646,26 @@ $wgMetaNamespaceTalk = false;
 $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
@@ -653,6 +683,7 @@ $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
@@ -671,13 +702,17 @@ $wgDebugRedirects         = false;
 $wgDebugRawPage         = false; # Avoid overlapping debug entries by leaving out CSS
 
 $wgDebugComments        = false;
-$wgReadOnly             = 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 
+ * If set, wfDebugLog() output for that group will go to that file instead
  * of the regular $wgDebugLogFile. Useful for enabling selective logging
  * in production.
  */
@@ -737,13 +772,19 @@ $wgBlockAllowsUTEdit    = false; # Blocks allow users to edit their own user tal
 
 # Pages anonymous user may see as an array, e.g.:
 # array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
-# NOTE: This will only work if $wgGroupPermissions['*']['read'] 
+# NOTE: This will only work if $wgGroupPermissions['*']['read']
 # is false -- see below. Otherwise, ALL pages are accessible,
 # regardless of this setting.
 # Also note that this will only protect _pages in the wiki_.
-# Uploaded files will remain readable. Make your upload 
+# Uploaded files will remain readable. Make your upload
 # directory name unguessable, or use .htaccess to protect it.
-$wgWhitelistRead = false;      
+$wgWhitelistRead = false;
+
+/** 
+ * Should editors be required to have a validated e-mail
+ * address before being allowed to edit?
+ */
+$wgEmailConfirmToEdit=false;
 
 /**
  * Permission keys given to users in each group.
@@ -752,9 +793,9 @@ $wgWhitelistRead = false;
  * combined with the permissions of all groups that a given user is listed
  * in in the user_groups table.
  *
- * Functionality to make pages inaccessible has not been extensively tested 
+ * Functionality to make pages inaccessible has not been extensively tested
  * for security. Use at your own risk!
- * 
+ *
  * This replaces wgWhitelistAccount and wgWhitelistEdit
  */
 $wgGroupPermissions = array();
@@ -814,10 +855,10 @@ $wgGroupPermissions['bureaucrat']['userrights'] = true;
  */
 # $wgGroupPermissions['developer']['siteadmin'] = true;
 
-
 /**
  * Set of available actions that can be restricted via Special:Protect
  * You probably shouldn't change this.
+ * Translated trough restriction-* messages.
  */
 $wgRestrictionTypes = array( 'edit', 'move' );
 
@@ -883,6 +924,8 @@ $wgCachePages       = true;
 /**
  * Set this to current time to invalidate all prior cached pages. Affects both
  * client- and server-side caching.
+ * You can get the current date on your server by using the command:
+ *   date +%Y%m%d%H%M%S
  */
 $wgCacheEpoch = '20030516000000';
 
@@ -999,12 +1042,12 @@ $wgDisableCookieCheck = false;
 /**  Whether to allow inline image pointing to other websites */
 $wgAllowExternalImages = true;
 
-/** If the above is false, you can specify an exception here. Image URLs 
+/** If the above is false, you can specify an exception here. Image URLs
   * that start with this string are then rendered, while all others are not.
   * You can use this to set up a trusted, simple repository of images.
   *
-  * Example: 
-  * $wgAllowExternalImagesFrom = 'http://127.0.0.1/'; 
+  * Example:
+  * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
   */
 $wgAllowExternalImagesFrom = '';
 
@@ -1016,6 +1059,8 @@ $wgDisableQueryPages = false;
 $wgUseWatchlistCache = false;
 /** The hour or so mentioned above */
 $wgWLCacheTimeout = 3600;
+/** Number of links to a page required before it is deemed "wanted" */
+$wgWantedPagesThreshold = 1;
 
 /**
  * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
@@ -1092,8 +1137,8 @@ $wgUseDumbLinkUpdate = false;
  *   ALF_PRELOAD_EXISTENCE
  *       Preload cur_id during replaceLinkHolders
  *   ALF_NO_LINK_LOCK
- *       Don't use locking reads when updating the link table. This is 
- *       necessary for wikis with a high edit rate for performance 
+ *       Don't use locking reads when updating the link table. This is
+ *       necessary for wikis with a high edit rate for performance
  *       reasons, but may cause link table inconsistency
  *   ALF_NO_BLOCK_LOCK
  *       As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
@@ -1218,11 +1263,11 @@ $wgSVGConverters = array(
 $wgSVGConverter = 'ImageMagick';
 /** If not in the executable PATH, specify */
 $wgSVGConverterPath = '';
-/** Don't scale a SVG larger than this unless its native size is larger */
+/** Don't scale a SVG larger than this */
 $wgSVGMaxSize = 1024;
-/** 
- * Don't thumbnail an image if it will use too much working memory 
- * Default is 50 MB if decompressed to RGBA form, which corresponds to 
+/**
+ * Don't thumbnail an image if it will use too much working memory
+ * Default is 50 MB if decompressed to RGBA form, which corresponds to
  * 12.5 million pixels or 3500x3500
  */
 $wgMaxImageArea = 1.25e7;
@@ -1247,7 +1292,7 @@ if( !isset( $wgCommandLineMode ) ) {
 #
 
 /** Log IP addresses in the recentchanges table */
-$wgPutIPinRC = false;
+$wgPutIPinRC = true;
 
 /**
  * Recentchanges items are periodically purged; entries older than this many
@@ -1321,6 +1366,12 @@ $wgCapitalLinks = true;
  */
 $wgImportSources = array();
 
+/**
+ * If set to false, disables the full-history option on Special:Export.
+ * This is currently poorly optimized for long edit histories, so is
+ * disabled on Wikimedia's sites.
+ */
+$wgExportAllowHistory = true;
 
 
 /** Text matching this regular expression will be recognised as spam
@@ -1360,6 +1411,7 @@ $wgRawHtml = false;
  *   'extension=tidy.so' to php.ini.
  */
 $wgUseTidy = false;
+$wgAlwaysUseTidy = false;
 $wgTidyBin = 'tidy';
 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
 $wgTidyOpts = '';
@@ -1433,8 +1485,8 @@ $wgAllowPageInfo = false;
 /** Maximum indent level of toc. */
 $wgMaxTocLevel = 999;
 
-/** Use external C++ diff engine (module wikidiff from the extensions package) */
-$wgUseExternalDiffEngine = false;
+/** Name of the external diff engine to use */
+$wgExternalDiffEngine = false;
 
 /** Use RC Patrolling to check for vandalism */
 $wgUseRCPatrol = true;
@@ -1742,6 +1794,12 @@ $wgExternalStores = false;
  */
 $wgExternalServers = array();
 
+/**
+ * The place to put new revisions, false to put them in the local text table.
+ * Part of a URL, e.g. DB://cluster1
+ */
+$wgDefaultExternalStore = false;
+
 /**
 * list of trusted media-types and mime types.
 * Use the MEDIATYPE_xxx constants to represent media types.
@@ -1780,6 +1838,10 @@ $wgHTTPProxy = false;
  * Enable interwiki transcluding.  Only when iw_trans=1.
  */
 $wgEnableScaryTranscluding = false;
+/**
+ * Expiry time for interwiki transclusion
+ */
+$wgTranscludeCacheExpiry = 3600;
 
 /**
  * Support blog-style "trackbacks" for articles.  See
@@ -1793,4 +1855,9 @@ $wgUseTrackbacks = false;
 
 $wgFilterRobotsWL = false;
 
+/**
+ * Enable filtering of categories in Recentchanges
+ */
+$wgAllowCategorizedRecentChanges = false ;
+
 ?>