LocalSettings.php

From Elanthipedia
Jump to navigation Jump to search


ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" ); require_once( "includes/DefaultSettings.php" ); require_once( "$IP/extensions/ImageMap/ImageMap.php" ); require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); require_once("$IP/extensions/Newuserlog/Newuserlog.php"); require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );

  1. require_once( "{$IP}/extensions/Cite/Cite.php" );
  2. If PHP's memory limit is very low, some operations may fail.

ini_set( 'memory_limit', '20M' );

if ( $wgCommandLineMode ) {

       if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
               die( "This script must be run from the command line\n" );
       }

} elseif ( empty( $wgNoOutputBuffer ) ) {

       ## Compress output if the browser supports it
  1. if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );

}

$wgSitename = "Elanthipedia";

$wgScriptPath = "/w"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";

    1. If using PHP as a CGI module, use the ugly URLs

$wgArticlePath = "/wiki/$1";

  1. $wgArticlePath = "$wgScript?title=$1";

$wgStylePath = "$wgScriptPath/skins"; $wgStyleDirectory = "$IP/skins"; $wgLogo = "$wgStylePath/common/images/wiki.png"; $wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images";

$wgEnableEmail = true; $wgEnableUserEmail = true;

$wgEmergencyContact = "wiki@elanthipedia.com"; $wgPasswordSender = "Elanthipedia Wiki <wiki@elanthipedia.com>";

$wgEnableParserCache = false;
$wgCachePages = false;
    1. For a detailed description of the following switches see
    2. http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent
    3. There are many more options for fine tuning available see
    4. /includes/DefaultSettings.php
    5. UPO means: this is also a user preference option

$wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; $wgEmailConfirmToEdit = true;


  1. If you're on MySQL 3.x, this next line must be FALSE:

$wgDBmysql4 = false;

$wgSaveDeletedFiles = true; $wgFileStore['deleted']['directory'] = "$IP/imgundelete";

  1. Experimental charset support for MySQL 4.1/5.0.

$wgDBmysql5 = false;

    1. Shared memory settings

$wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array();

    1. To enable image uploads, make sure the 'images' directory
    2. is writable, then uncomment this:

$wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/local/bin/convert";

$wgFileExtensions = array('png','jpg','jpeg','gif','bmp');

    1. If you want to use image uploads under safe mode,
    2. create the directories images/archive, images/thumb and
    3. images/temp, and make them all writable. Then uncomment
    4. this, if it's not already uncommented:
  1. $wgHashedUploadDirectory = false;
    1. If you have the appropriate support software installed
    2. you can enable inline LaTeX equations:
  1. $wgUseTeX = true;

$wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";

$wgLocalInterwiki = $wgSitename;

$wgLanguageCode = "en";

    1. Default skin: you can change the default skin. Use the internal symbolic
    2. names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
  1. $wgDefaultSkin = 'monobook';

$wgShowIPinHeader = false; # For non-logged in users

    1. For attaching licensing metadata to pages, and displaying an
    2. appropriate copyright notice / icon. GNU Free Documentation
    3. License and Creative Commons licenses are supported so far.
  1. $wgEnableCreativeCommonsRdf = true;

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = "";

  1. $wgRightsCode = ""; # Not yet used

$wgDiff3 = "/usr/bin/diff3";


 #
 # Permission keys given to users in each group.
 # All users are implicitly in the '*' group including anonymous visitors;
 # logged-in users are all implicitly in the 'user' group. These will be
 # combined with the permissions of all groups that a given user is listed
 # in in the user_groups table.
 #
 # This replaces wgWhitelistAccount and wgWhitelistEdit
 #
 # The following line should be commented, otherwise these settings will
 # throw away the settings on DefaultSettings.php (you probably don't want this).
 # With this line commented you will only overwrite the settings you explicitly
 # define here (that's what you probably want).
 #$wgGroupPermissions = array();
  1. $wgGroupPermissions['*' ]['createaccount'] = true;
  2. $wgGroupPermissions['*' ]['read'] = true;
  3. $wgGroupPermissions['*' ]['edit'] = false;

$wgGroupPermissions['*']['createaccount'] = true; $wgGroupPermissions['*']['read'] = true; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false;

$wgGroupPermissions['localop']['block'] = true; $wgGroupPermissions['localop']['createaccount'] = false; $wgGroupPermissions['localop']['delete'] = true; $wgGroupPermissions['localop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text $wgGroupPermissions['localop']['editinterface'] = false; $wgGroupPermissions['localop']['import'] = false; $wgGroupPermissions['localop']['importupload'] = false; $wgGroupPermissions['localop']['move'] = true; $wgGroupPermissions['localop']['patrol'] = true; $wgGroupPermissions['localop']['autopatrol'] = false; $wgGroupPermissions['localop']['protect'] = true; $wgGroupPermissions['localop']['proxyunbannable'] = false; $wgGroupPermissions['localop']['rollback'] = true; $wgGroupPermissions['localop']['trackback'] = false; $wgGroupPermissions['localop']['upload'] = true; $wgGroupPermissions['localop']['reupload'] = false; $wgGroupPermissions['localop']['reupload-shared'] = false; $wgGroupPermissions['localop']['unwatchedpages'] = false; $wgGroupPermissions['localop']['autoconfirmed'] = true; $wgGroupPermissions['localop']['upload_by_url'] = false; $wgGroupPermissions['localop']['ipblock-exempt'] = false;

 $wgRawHtml = 0;

// $wgEnableUploads = true;