moving define(mediawiki, true) from index.php to includes/Defines.php
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index aa7f853..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
@@ -59,6 +63,7 @@ $wgDBname           = 'wikidb';
 $wgDBconnection     = '';
 $wgDBuser           = 'wikiuser';
 $wgDBtype           = "mysql"; # "mysql" for working code and "PostgreSQL" for development/broken code
+$wgDBprefix         = ''; # Table name prefix
 
 # Database load balancer
 # This is a two-dimensional array, an array of server info structures
@@ -68,7 +73,14 @@ $wgDBtype           = "mysql"; # "mysql" for working code and "PostgreSQL" for d
 #   user:      DB user
 #   password:  DB password
 #   type:      "mysql" or "pgsql"
-#   load:      ratio of DB_READ load, must be >=0, the sum of all loads must be >0
+#   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; 
 
@@ -117,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
@@ -138,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;
@@ -159,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
@@ -280,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(
@@ -339,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;
@@ -409,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. 
@@ -441,4 +465,24 @@ $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();
+}
 ?>