if( defined( 'MEDIAWIKI' ) ) {
/** MediaWiki version number */
-$wgVersion = '1.5pre-alpha';
+$wgVersion = '1.5alpha1';
/** Name of the site. It must be changed in LocalSettings.php */
$wgSitename = 'MediaWiki';
$wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
$wgServer = $wgProto.'://' . $wgServerName;
-if( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] != 80 ) {
+# 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 ) ) ) {
+
$wgServer .= ":" . $_SERVER['SERVER_PORT'];
}
unset($wgProto);
*/
$wgStyleDirectory = "{$IP}/skins";
$wgStyleSheetPath = &$wgStylePath;
-$wgStyleSheetDirectory = &$wgStyleDirectory;
$wgArticlePath = "{$wgScript}?title=$1";
$wgUploadPath = "{$wgScriptPath}/upload";
$wgUploadDirectory = "{$IP}/upload";
$wgUseSharedUploads = false;
/** Full path on the web server where shared uploads can be found */
$wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
-/** Path on the file system where shared uploads can be found */
+/** Path on the file system where shared uploads can be found. */
$wgSharedUploadDirectory = "/var/www/wiki3/images";
-/** Path on the file system where shared uploads can be found */
-$wgSharedUploadDBname = "commons";
+/** 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;
+
+/**
+ * Point the upload navigation link to an external URL
+ * Useful if you want to use a shared repository by default
+ * without disabling local uploads
+ * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
+*/
+$wgUploadNavigationUrl = 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.
+ *
+ * Example:
+ * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
+ */
+$wgThumbnailScriptPath = false;
+$wgSharedThumbnailScriptPath = false;
/**
* Set the following to false especially if you have a set of files that need to
*/
$wgHashedSharedUploadDirectory = true;
-/** set true if the repository uses latin1 filenames */
-$wgSharedLatin1=false;
-
/**
* 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.
# 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
-# 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)
+# 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)
#
# Leave at false to use the single-server variables above
$wgDBservers = false;
$wgDBtransactions = false;
/** Set to true to use enhanced fulltext search */
$wgDBmysql4 = false;
-$wgSqlTimeout = 30;
/**
* Other wikis on this site, can be administered from a single developer
/**
* Memcached-specific settings
- * See docs/memcached.doc
+ * See docs/memcached.txt
*/
$wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
$wgMemCachedServers = array( '127.0.0.1:11000' );
# Language settings
#
-/** Site language code, should be one of ./language/Language(.*).php */
+/** Site language code, should be one of ./languages/Language(.*).php */
$wgLanguageCode = 'en';
/** Filename of a language file generated by dumpMessages.php */
$wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
+/**
+ * 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;
+
# Proxy scanner settings
#
$wgDisableSearchUpdate = false;
/** Uploads have to be specially set up to be secure */
$wgEnableUploads = false;
+/**
+ * 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' );
+
/**
* 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
NS_CATEGORY_TALK => 1
);
-$wgNamespacesToBeSearchedDefault = array( NS_SPECIAL => 0, 0 => 1, 1 => 0,
- 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
+$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
+);
/** If set, a bold ugly notice will show up at the top of every page. */
$wgSiteNotice = '';
* $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.
+ *
+ * $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.
*/
$wgUseTidy = false;
$wgTidyBin = 'tidy';
$wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
$wgTidyOpts = '';
+$wgTidyInternal = function_exists( 'tidy_load_config' );
-/** See list of skins and their symbolic names in languagel/Language.php */
+/** See list of skins and their symbolic names in languages/Language.php */
$wgDefaultSkin = 'monobook';
/**
* no longer be accessible. If you rename it, then you can access them through
* the new namespace name.
*
- * Custom namespaces should start at 100 and stop at 255 (hard limit set by
- * database).
+ * Custom namespaces should start at 100 to avoid conflicting with standard
+ * namespaces, and should always follow the even/odd main/talk pattern.
*/
#$wgExtraNamespaces =
# array(100 => "Hilfe",
# );
$wgExtraNamespaces = NULL;
-/**
- * Enable SOAP interface. Off by default
- * SOAP is a protocoll for remote procedure calls (RPC) using http as
- * middleware. This interface can be used by bots or special clients to receive
- * articles from a wiki.
- * Most bots use the normal HTTP interface and don't use SOAP.
- * If unsure, set to false.
- */
-$wgEnableSOAP = false;
-
/**
* 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
array(1280,1024),
array(10000,10000) );
+/**
+ * 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
+);
/** Navigation links for the user sidebar.
* 'text' is the name of the MediaWiki message that contains the label of this link
* Contains a list of regexps : "/regexp/" matching problematic browsers
*/
$wgBrowserBlackList = array(
- "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
- // FIXME: Add some accurate, true things here
- );
+ "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
+ /**
+ * 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%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
+ * @link http://en.wikipedia.org/wiki/Template%3AOS9
+ */
+ "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
+);
/**
* Fake out the timezone that the server thinks it's in. This will be used for
$wgLoggedInGroupId = 2;
$wgSysopGroupId = 3;
$wgBureaucratGroupId = 4;
+$wgStewardGroupId = 5;
/**
* When translating messages with wfMsg(), it is not always clear what should be
/**
* Use http.dnsbl.sorbs.net to check for open proxies
*/
-$wgEnableSorbs = true;
+$wgEnableSorbs = false;
+
+/**
+ * On Special:Unusedimages, consider images "used", if they are put
+ * into a category. Default (false) is not to count those as used.
+ */
+$wgCountCategorizedImagesAsUsed = false;
+
+/**
+ * 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;
} else {
die();