moving define(mediawiki, true) from index.php to includes/Defines.php
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index a78d784..1815178 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 # $Id$
 # DO NOT EDIT THIS FILE!
 # To customize your installation, edit "LocalSettings.php".
@@ -7,7 +8,10 @@
 # like $wgScriptPath, you must also localize everything that
 # depends on it.
 
-$wgVersion                     = '1.3.0beta4';
+# This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
+if( defined( "MEDIAWIKI" ) ) {
+
+$wgVersion                     = '1.4-prealpha';
 
 $wgSitename         = 'MediaWiki'; # Please customize!
 $wgMetaNamespace    = FALSE; # will be same as you set $wgSitename
@@ -58,11 +62,27 @@ $wgDBserver         = 'localhost';
 $wgDBname           = 'wikidb';
 $wgDBconnection     = '';
 $wgDBuser           = 'wikiuser';
-$wgDBtype           = "mysql"; # "mysql" for working code and "pgsql" for development/broken code
+$wgDBtype           = "mysql"; # "mysql" for working code and "PostgreSQL" for development/broken code
+$wgDBprefix         = ''; # Table name prefix
 
 # Database load balancer
-$wgDBservers           = false; # e.g. array(0 => "larousse", 1 => "pliny")
-$wgDBloads                     = false; # e.g. array(0 => 0.6, 1 => 0.4);
+# 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)
+#
+# Leave at false to use the single-server variables above
+$wgDBservers           = false; 
 
 # Sysop SQL queries
 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
@@ -70,6 +90,7 @@ $wgDBsqluser          = 'sqluser';
 $wgDBsqlpassword       = 'sqlpass';
 $wgDBpassword       = 'userpass';
 $wgSqlLogFile           = "{$wgUploadDirectory}/sqllog_mFhyRe6";
+$wgDBerrorLog          = false; # File to log MySQL errors to
 
 $wgDBminWordLen     = 4;
 $wgDBtransactions      = false; # Set to true if using InnoDB tables
@@ -82,10 +103,6 @@ $wgBufferSQLResults     = true; # use buffered queries by default
 # Array, interwiki prefix => database name
 $wgLocalDatabases   = array();
 
-# Database load balancer
-$wgDBservers           = false; # e.g. array("larousse", "pliny")
-$wgDBloads                     = false; # e.g. array(0.6, 0.4);
-
 # memcached settings
 # See docs/memcached.doc
 #
@@ -112,6 +129,9 @@ $wgUseDynamicDates  = false; # Enable to allow rewriting dates in page text
                                                         # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
 $wgAmericanDates    = false; # Enable for English module to print dates
                                                         # as eg 'May 12' instead of '12 May'
+$wgTranslateNumerals = true; # For Hindi and Arabic use local numerals instead
+                             # of Western style (0-9) numerals in interface.
+
 $wgLocalInterwiki   = 'w';
 $wgShowIPinHeader      = true; # For non-logged in users
 $wgMaxNameChars     = 32; # Maximum number of bytes in username
@@ -133,6 +153,7 @@ $wgReadOnlyFile         = "{$wgUploadDirectory}/lock_yBgMBwiR";
 # used, as it may contain private data.
 $wgDebugLogFile         = '';
 $wgDebugRedirects              = false;
+$wgDebugRawPage         = false; # Avoid overlapping debug entries by leaving out CSS
 
 $wgDebugComments        = false;
 $wgReadOnly             = false;
@@ -154,7 +175,7 @@ $wgUseCategoryMagic         = true;
 # FIXME: need fixing
 $wgUseCategoryBrowser   = false;
 
-$wgEnablePersistentLC  = false;        # Persistent link cache in linkscc table; FAILS on MySQL 3.x
+$wgEnablePersistentLC  = false;        # Obsolete, do not use
 $wgCompressedPersistentLC = true; # use gzcompressed blobs
 
 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
@@ -217,6 +238,10 @@ $wgCookieExpiration = 2592000;
 # don't specify ports here (80 is default)
 # $wgSquidServers = array('127.0.0.1');
 
+# Maximum number of titles to purge in any one client operation
+$wgMaxSquidPurgeTitles = 400;
+
+
 # Set to set an explicit domain on the login cookies
 # eg, "justthis.domain.org" or ".any.subdomain.net"
 $wgCookieDomain = '';
@@ -244,6 +269,7 @@ $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table i
 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
+$wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
 
 $wgDisableCounters = false;
 $wgDisableTextSearch = false;
@@ -270,7 +296,7 @@ $wgCompressRevisions = false;
 
 # This is the list of preferred extensions for uploading files. Uploading
 # files with extensions not in this list will trigger a warning.
-$wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg' );
+$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
 
 # Files with these extensions will never be allowed as uploads.
 $wgFileBlacklist = array(
@@ -329,7 +355,9 @@ $wgImageMagickConvertCommand    = '/usr/bin/convert';
 # PHPTal is a library for page templates. MediaWiki includes
 # a recent PHPTal distribution. It is required to use the
 # Monobook (default) skin.
-$wgUsePHPTal = true;
+#
+# Currently it does not work on PHP5.
+$wgUsePHPTal = version_compare( phpversion(), "5.0", "lt" );
 
 if( !isset( $wgCommandLineMode ) ) {
        $wgCommandLineMode = false;
@@ -399,6 +427,12 @@ $wgGoToEdit = false;
 # constructs.
 $wgUserHtml = true;
 
+# Allow raw, unchecked HTML in <html>...</html> sections.
+# THIS IS VERY DANGEROUS on a publically editable site.
+# Don't enable it unless you've restricted editing to trusted
+# users only.
+$wgRawHtml = false;
+
 # $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. 
@@ -420,4 +454,35 @@ $wgAllowRealName = true;
 # Extensions
 $wgExtensionFunctions = array();
 
+# Allow user Javascript page?
+$wgAllowUserJs = true;
+
+# Allow user Cascading Style Sheets (CSS)?
+$wgAllowUserCss = true;
+
+# Filter for Special:Randompage. Part of a WHERE clause
+$wgExtraRandompageSQL = false;
+
+# Allow the "info" action, very inefficient at the moment
+$wgAllowPageInfo = false;
+
+# Maximum indent level of toc.
+$wgMaxTocLevel = 999;
+
+# Recognise longitude/latitude coordinates
+$wgUseGeoMode = false;
+
+# Validation for print or other production versions
+$wgUseValidation = false;
+
+# Use external C++ diff engine (module wikidiff from the
+# extensions package)
+$wgUseExternalDiffEngine = false;
+
+# Use RC Patrolling to check for vandalism
+$wgUseRCPatrol = true;
+
+} else {
+       die();
+}
 ?>