# 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 );
+ die( 1 );
}
/**
$wgServer = $wgProto.'://' . $wgServerName;
# If the port is a non-standard one, add it to the URL
if( isset( $_SERVER['SERVER_PORT'] )
+ && !strpos( $wgServerName, ':' )
&& ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
|| ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
$wgUploadBaseUrl = "";
/**#@-*/
+
+/**
+ * By default deleted files are simply discarded; to save them and
+ * make it possible to undelete images, create a directory which
+ * is writable to the web server but is not exposed to the internet.
+ *
+ * Set $wgSaveDeletedFiles to true and set up the save path in
+ * $wgFileStore['deleted']['directory'].
+ */
+$wgSaveDeletedFiles = false;
+
+/**
+ * New file storage paths; currently used only for deleted files.
+ * Set it like this:
+ *
+ * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
+ *
+ */
+$wgFileStore = array();
+$wgFileStore['deleted']['directory'] = null; // Don't forget to set this.
+$wgFileStore['deleted']['url'] = null; // Private
+$wgFileStore['deleted']['hash'] = 3; // 3-level subdirectory split
+
/**
* Allowed title characters -- regex character class
* Don't change this unless you know what you're doing
*/
/** database host name or ip address */
$wgDBserver = 'localhost';
+/** database port number */
+$wgDBport = '';
/** name of the database */
$wgDBname = 'wikidb';
/** */
$wgSearchType = null;
/** Table name prefix */
$wgDBprefix = '';
-/** Database schema
- * on some databases this allows separate
- * logical namespace for application data
- */
-$wgDBschema = 'mediawiki';
/**#@-*/
/** Live high performance sites should disable this - some checks acquire giant mysql locks */
/** How long to wait for a slave to catch up to the master */
$wgMasterWaitTimeout = 10;
-/** File to log MySQL errors to */
+/** File to log database errors to */
$wgDBerrorLog = false;
/** When to give an error message */
* 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
# 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
$wgDisableCookieCheck = false;
/** Whether to allow inline image pointing to other websites */
-$wgAllowExternalImages = true;
+$wgAllowExternalImages = false;
/** 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.
$wgProfileCallTree = false;
/** If not empty, specifies profiler type to load */
$wgProfilerType = '';
+/** Should application server host be put into profiling table */
+$wgProfilePerHost = false;
/** Settings for UDP profiler */
$wgUDPProfilerHost = '127.0.0.1';
*/
$wgImportSources = array();
+/**
+ * Optional default target namespace for interwiki imports.
+ * Can use this to create an incoming "transwiki"-style queue.
+ * Set to numeric key, not the name.
+ *
+ * Users may override this in the Special:Import dialog.
+ */
+$wgImportTargetNamespace = null;
+
/**
* 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;
+
+/**
+ * If set nonzero, Special:Export requests for history of pages with
+ * more revisions than this will be rejected. On some big sites things
+ * could get bogged down by very very long pages.
+ */
+$wgExportMaxHistory = 0;
+
$wgExportAllowListContributors = false ;
/** Use XML parser? */
$wgUseXMLparser = false ;
-/** Extensions */
-$wgSkinExtensionFunctions = array();
+/*****************************************************************************
+ * Extensions
+ */
+
+/**
+ * A list of callback functions which are called once MediaWiki is fully initialised
+ */
$wgExtensionFunctions = array();
+
+/**
+ * Extension functions for initialisation of skins. This is called somewhat earlier
+ * than $wgExtensionFunctions.
+ */
+$wgSkinExtensionFunctions = array();
+
+
+/**
+ * Special page list.
+ * See the top of SpecialPage.php for documentation.
+ */
+$wgSpecialPages = array();
+
+/**
+ * Array mapping class names to filenames, for autoloading.
+ */
+$wgAutoloadClasses = array();
+
/**
* An array of extension types and inside that their names, versions, authors
* and urls, note that the version and url key can be omitted.
* Where $type is 'specialpage', 'parserhook', or 'other'.
*/
$wgExtensionCredits = array();
+/*
+ * end extensions
+ ******************************************************************************/
/**
* Allow user Javascript page?
* an action, which is a specific kind of event that can exist in that
* log type.
*/
-$wgLogTypes = array( '', 'block', 'protect', 'rights', 'delete', 'upload', 'move' );
+$wgLogTypes = array( '',
+ 'block',
+ 'protect',
+ 'rights',
+ 'delete',
+ 'upload',
+ 'move',
+ 'import' );
/**
* Lists the message key string for each log type. The localized messages
'rights' => 'rightslog',
'delete' => 'dellogpage',
'upload' => 'uploadlogpage',
- 'move' => 'movelogpage' );
+ 'move' => 'movelogpage',
+ 'import' => 'importlogpage' );
/**
* Lists the message key string for descriptive text to be shown at the
'rights' => 'rightslogtext',
'delete' => 'dellogpagetext',
'upload' => 'uploadlogpagetext',
- 'move' => 'movelogpagetext' );
+ 'move' => 'movelogpagetext',
+ 'import' => 'importlogpagetext', );
/**
* Lists the message key string for formatting individual events of each
'block/unblock' => 'unblocklogentry',
'protect/protect' => 'protectedarticle',
'protect/unprotect' => 'unprotectedarticle',
-
- // TODO: This whole section should be moved to extensions/Makesysop/SpecialMakesysop.php
'rights/rights' => 'rightslogentry',
- 'rights/addgroup' => 'addgrouplogentry',
- 'rights/rngroup' => 'renamegrouplogentry',
- 'rights/chgroup' => 'changegrouplogentry',
-
'delete/delete' => 'deletedarticle',
'delete/restore' => 'undeletedarticle',
'delete/revision' => 'revdelete-logentry',
'upload/upload' => 'uploadedimage',
'upload/revert' => 'uploadedimage',
'move/move' => '1movedto2',
- 'move/move_redir' => '1movedto2_redir' );
+ 'move/move_redir' => '1movedto2_redir',
+ 'import/upload' => 'import-logentry-upload',
+ 'import/interwiki' => 'import-logentry-interwiki' );
/**
* Experimental preview feature to fetch rendered text
*/
$wgNoFollowNsExceptions = array();
+/**
+ * Robot policies for namespaces
+ * e.g. $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
+ */
+$wgNamespaceRobotPolicies = array();
+
/**
* Specifies the minimal length of a user password. If set to
* 0, empty passwords are allowed.
/**
* Number of jobs to perform per request. May be less than one in which case
* jobs are performed probabalistically. If this is zero, jobs will not be done
- * during ordinary apache requests. In this case, maintenance/doJobs.php should
+ * during ordinary apache requests. In this case, maintenance/runJobs.php should
* be run periodically.
*/
$wgJobRunRate = 1;
*/
$wgJobLogFile = false;
+/**
+ * Number of rows to update per job
+ */
+$wgUpdateRowsPerJob = 500;
+
+/**
+ * Number of rows to update per query
+ */
+$wgUpdateRowsPerQuery = 10;
+
/**
* Enable use of AJAX features, currently auto suggestion for the search bar
*/
*/
$wgAllowTitlesInSVG = false;
+/**
+ * Array of namespaces which can be deemed to contain valid "content", as far
+ * as the site statistics are concerned. Useful if additional namespaces also
+ * contain "content" which should be considered when generating a count of the
+ * number of articles in the wiki.
+ */
+$wgContentNamespaces = array( NS_MAIN );
+
+/**
+ * Maximum amount of virtual memory available to shell processes under linux, in KB.
+ */
+$wgMaxShellMemory = 102400;
+
?>