fix a problem by not inserting __MWTEMPLATESECTION for section titles that don't...
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index 71b2a54..0319147 100644 (file)
@@ -92,12 +92,12 @@ $wgRedirectScript   = "{$wgScriptPath}/redirect.php";
  * style path as seen by users
  * @global string $wgStylePath
  */
-$wgStylePath   = "{$wgScriptPath}/style";
+$wgStylePath   = "{$wgScriptPath}/skins";
 /**
  * filesystem stylesheets directory
  * @global string $wgStyleDirectory
  */
-$wgStyleDirectory = "{$IP}/style";
+$wgStyleDirectory = "{$IP}/skins";
 $wgStyleSheetPath = &$wgStylePath;
 $wgStyleSheetDirectory = &$wgStyleDirectory;
 $wgArticlePath      = "{$wgScript}?title=$1";
@@ -117,14 +117,15 @@ $wgTmpDirectory     = "{$wgUploadDirectory}/tmp";
  * Default to wikiadmin@SERVER_NAME
  * @global string $wgEmergencyContact
  */
-$wgEmergencyContact = 'wikiadmin@' . getenv( 'SERVER_NAME' );
+$wgEmergencyContact = 'wikiadmin@' . $_SERVER['SERVER_NAME'];
+
 /**
  * Password reminder email address
  * The address we should use as sender when a user is requesting his password
  * Default to apache@SERVER_NAME
  * @global string $wgPasswordSender
  */
-$wgPasswordSender      = 'Wikipedia Mail <apache@' . getenv( 'SERVER_NAME' ) . '>';
+$wgPasswordSender      = 'Wikipedia Mail <apache@' . $_SERVER['SERVER_NAME'] . '>';
 
 
 /**
@@ -162,8 +163,15 @@ $wgDBuser           = 'wikiuser';
 $wgDBtype           = "mysql";
 /** Table name prefix */
 $wgDBprefix         = ''; 
+/** Database schema
+ * on some databases this allows separate 
+ * logical namespace for application data
+ */
+$wgDBschema        = 'mediawiki';
 /**#@-*/
 
+
+
 # Shared database for multiple wikis.
 # Presently used for storing a user table for single sign-on
 # The server for this database must be the same as for the main
@@ -228,17 +236,45 @@ $wgMemCachedDebug   = false;
 $wgSessionsInMemcached = false;
 $wgLinkCacheMemcached = false; # Not fully tested
 
-# Turck MMCache shared memory
-# You can use this for persistent caching where your wiki runs on a small number of 
-# servers. Mutually exclusive with memcached. MMCache must be installed.
+/**
+ * Turck MMCache shared memory
+ * You can use this for persistent caching where your wiki runs on a small
+ * number of servers. Mutually exclusive with memcached. MMCache must be
+ * installed.
+ *
+ * @global bool $wgUseTurckShm Enable or disabled Turck MMCache
+ */
 $wgUseTurckShm      = false;
 
 
 # Language settings
 #
+/**
+ * Site language code
+ * Default to 'en'. Should be one of ./language/Language(.*).php
+ * @global string $wgLanguageCode
+ */
 $wgLanguageCode     = 'en';
-$wgLanguageFile     = false; # Filename of a language file generated by dumpMessages.php
-$wgInterwikiMagic      = true; # Treat language links as magic connectors, not inline links
+
+/**
+ * Languages which the user may select to display the user interface
+ * in instead of the default language. This option is currently
+ * experimental and WILL FAIL FOR MANY COMMON TASKS AND PERHAPS
+ * CORRUPT YOUR DATABASE WITH BOGUS DATA.
+ * Set to eg array( 'en', 'fr', 'zh' ) etc
+ */
+$wgUserLanguages = array();
+
+/**
+ * Filename of a language file generated by dumpMessages.php
+ * @global string|false $wgLanguageFile (default:false)
+ */
+$wgLanguageFile     = false;
+/**
+ * Treat language links as magic connectors, not inline links
+ * @global bool $wgInterwikiMagic (default:true)
+ */
+$wgInterwikiMagic      = true;
 $wgInputEncoding       = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this
 $wgOutputEncoding      = 'ISO-8859-1'; # unless you set the next option to true:
 $wgUseLatin1           = false; # Enable ISO-8859-1 compatibility mode
@@ -278,6 +314,10 @@ $wgReadOnlyFile         = "{$wgUploadDirectory}/lock_yBgMBwiR";
 # The debug log file should be not be publicly accessible if it is
 # used, as it may contain private data.
 $wgDebugLogFile         = '';
+
+/**#@+
+ * @global bool
+ */
 $wgDebugRedirects              = false;
 $wgDebugRawPage         = false; # Avoid overlapping debug entries by leaving out CSS
 
@@ -306,6 +346,7 @@ $wgCompressedPersistentLC = true; # use gzcompressed blobs
 $wgUseOldExistenceCheck = false;  # use old prefill link method, for debugging only
 
 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
+/**#@-*/
 
 # wgHitcounterUpdateFreq sets how often page counters should be
 # updated, higher values are easier on the database. A value of 1
@@ -494,10 +535,6 @@ $wgSiteNotice = "";
 # 
 $wgUseImageResize              = false;
 
-## Set maximum width of images on image description pages.
-## Images bigger than this will be rendered down.
-$wgMaxImageWidth = 800;
-
 ## Resizing can be done using PHP's internal image libraries
 ## or using ImageMagick. The later supports more file formats
 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
@@ -584,9 +621,9 @@ $wgGoToEdit = false;
 $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.
+# THIS IS VERY DANGEROUS on a publically editable site, so
+# you can't enable it unless you've restricted editing to
+# trusted users only with $wgWhitelistEdit.
 $wgRawHtml = false;
 
 # $wgUseTidy: use tidy to make sure HTML output is sane.
@@ -645,16 +682,33 @@ $wgUseRCPatrol = true;
 # If you rename it, then you can access them through the new namespace name.
 #
 # Custom namespaces should start at 100.
-#$wgExtraNamespaces
-#      array(100 => "Hilfe", 
+#$wgExtraNamespaces =
+#      array(100 => "Hilfe",
 #            101 => "Hilfe_Diskussion",
-#            102 =>"Aide", 
-#            103 =>"Discussion_Aide"
+#            102 => "Aide",
+#            103 => "Discussion_Aide"
 #            );
+$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 list of
+# settings the user can choose from:
+$wgImageLimits = array (
+       array(320,240),
+       array(640,480),
+       array(800,600),
+       array(1024,768),
+       array(1280,1024),
+       array(10000,10000) );
+
 } else {
        die();
 }