User:Twisted86/LocalSettings.php

Please see also this thread at the MW help desk.

<?php


 * 1) This file was automatically generated by the MediaWiki installer.
 * 2) If you make manual changes, please keep track in case you need to
 * 3) recreate them later.
 * 4) See includes/DefaultSettings.php for all configurable settings
 * 5) and their default values, but don't forget to make changes in _this_
 * 6) file, not there.
 * 1) file, not there.

if( defined( 'MW_INSTALL_PATH' ) ) { $IP = MW_INSTALL_PATH; } else { $IP = dirname( __FILE__ ); }
 * 1) If you customize your file layout, set $IP to the directory that contains
 * 2) the other MediaWiki files. It will be used as a base to locate files.

$path = array( $IP, "$IP/includes", "$IP/languages" ); set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path );

require_once( "$IP/includes/DefaultSettings.php" );


 * 1) If PHP's memory limit is very low, some operations may fail.
 * 2) 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" ); } }
 * 1) Uncomment this to disable output compression
 * 2) $wgDisableOutputCompression = true;

$wgSitename        = "WikiHawk";

$wgScriptPath      = ""; $wgScriptExtension = ".php5";
 * 1) The URL base path to the directory containing the wiki;
 * 2) defaults for all runtime URL paths are based off of this.


 * 1) For more information on customizing the URLs please see:
 * 2) http://www.mediawiki.org/wiki/Manual:Short_URL

$wgEnableEmail     = true; $wgEnableUserEmail = true;

$wgEmergencyContact = "joe@foo.bar"; $wgPasswordSender = "joe@foo.bar";

$wgLocaltimezone = "America/Los_Angeles"; $oldtz = getenv("TZ"); putenv("TZ=$wgLocaltimezone"); $wgLocalTZoffset = date("Z") / 60; putenv("TZ=$oldtz");
 * 1) Set Default Timezone
 * 1) Versions before 1.7.0 used $wgLocalTZoffset as hours.
 * 2) After 1.7.0 offset as minutes

$wgLogo = "/images/WikiHawk.png";
 * 1) use my logo

$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false;
 * 1) Restrict anonymous editing, reading, account creation, page creation

$wgGroupPermissions['user']['edit'] = true; $wgGroupPermissions['user']['createpage'] = true; $wgGroupPermissions['user']['createtalk'] = true; $wgGroupPermissions['user']['autopatrol'] = true;
 * 1) Allow registered users to edit, read, and create pages
 * 2) also mark all edits as patrolled

$wgEmailConfirmToEdit = true;
 * 1) Must confirm e-mail address to edit

$wgDefaultUserOptions['forceeditsummary'] = true;
 * 1) Force edit summaries for all new accounts

$wgFileExtensions[] = 'pdf';
 * 1) Allow PDF upload

$wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true;
 * 1) For a detailed description of the following switches see
 * 2) http://www.mediawiki.org/wiki/Extension:Email_notification
 * 3) and http://www.mediawiki.org/wiki/Extension:Email_notification
 * 4) There are many more options for fine tuning available see
 * 5) /includes/DefaultSettings.php
 * 6) UPO means: this is also a user preference option

$wgDBtype          = "mysql"; $wgDBserver        = "db.foo.bar"; $wgDBname          = "foobar"; $wgDBuser          = "foobar"; $wgDBpassword      = "foobar";

$wgDBprefix        = "";
 * 1) MySQL specific settings

$wgDBTableOptions  = "TYPE=InnoDB";
 * 1) MySQL table options to use during installation or update

$wgDBmysql5 = false;
 * 1) Experimental charset support for MySQL 4.1/5.0.

$wgDBport          = "5432"; $wgDBmwschema      = "mediawiki"; $wgDBts2schema     = "public";
 * 1) Postgres specific settings

$wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array;
 * 1) Shared memory settings

$wgEnableUploads      = true; $wgUseImageMagick = false; $wgImageMagickConvertCommand = "/usr/bin/convert";
 * 1) To enable image uploads, make sure the 'images' directory
 * 2) is writable, then set this to true:


 * 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:
 * 5) $wgHashedUploadDirectory = false;

$wgUseTeX          = false;
 * 1) If you have the appropriate support software installed
 * 2) you can enable inline LaTeX equations:

$wgLocalInterwiki  = $wgSitename;

$wgLanguageCode = "en";

$wgProxyKey = "foobar";

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

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = "";
 * 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.
 * 4) $wgEnableCreativeCommonsRdf = true;
 * 1) $wgRightsCode = ""; # Not yet used

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

$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); $wgCacheEpoch = max( $wgCacheEpoch, $configdate ); require_once("extensions/DismissableSiteNotice/DismissableSiteNotice.php");
 * 1) When you make changes to this configuration file, this will make
 * 2) sure that cached pages are cleared.
 * 1) Allow users to dismiss the sitenototice

require_once("extensions/ParserFunctions/ParserFunctions.php"); require_once("extensions/Lockdown.php");
 * 1) install parser and namespace lockdown extensions

$wgNamespacesWithSubpages[NS_MAIN] = 1;
 * 1) enable sub-pages in Main

$wgExtraNamespaces[100] = "DM"; $wgExtraNamespaces[101] = "DM talk";
 * 1) add custom namespace for DM-only stuff

$wgExtraNamespaces[102] = "AlanD"; $wgExtraNamespaces[103] = "AlanD_talk"; $wgExtraNamespaces[104] = "JohnC"; $wgExtraNamespaces[105] = "JohnC_talk"; $wgExtraNamespaces[106] = "LisaC"; $wgExtraNamespaces[107] = "LisaC_talk"; $wgExtraNamespaces[108] = "AdamS"; $wgExtraNamespaces[109] = "AdamS_talk"; $wgExtraNamespaces[110] = "ShawnO"; $wgExtraNamespaces[111] = "ShawnO_talk"; $wgExtraNamespaces[112] = "JasonP"; $wgExtraNamespaces[113] = "JasonP_talk";
 * 1) add custom namespaces for individual players' stuff

$wgGroupPermissions['AlanD']['edit']   = true; $wgGroupPermissions['JohnC']['edit']   = true; $wgGroupPermissions['LisaC']['edit']   = true; $wgGroupPermissions['AdamS']['edit']   = true; $wgGroupPermissions['ShawnO']['edit']   = true; $wgGroupPermissions['JasonP']['edit']   = true;
 * 1) add groups to support player namespaces

$wgNamespacePermissionLockdown[100]['*'] = array('sysop'); $wgNamespacePermissionLockdown[101]['*'] = array('sysop');
 * 1) Only allow sysops to read "DM" namespace

$wgNamespacePermissionLockdown[102]['*'] = array('sysop', 'AlanD'); $wgNamespacePermissionLockdown[103]['*'] = array('sysop', 'AlanD'); $wgNamespacePermissionLockdown[104]['*'] = array('sysop', 'JohnC'); $wgNamespacePermissionLockdown[105]['*'] = array('sysop', 'JohnC'); $wgNamespacePermissionLockdown[106]['*'] = array('sysop', 'LisaC'); $wgNamespacePermissionLockdown[107]['*'] = array('sysop', 'LisaC'); $wgNamespacePermissionLockdown[108]['*'] = array('sysop', 'AdamS'); $wgNamespacePermissionLockdown[109]['*'] = array('sysop', 'AdamS'); $wgNamespacePermissionLockdown[110]['*'] = array('sysop', 'ShawnO'); $wgNamespacePermissionLockdown[111]['*'] = array('sysop', 'ShawnO'); $wgNamespacePermissionLockdown[112]['*'] = array('sysop', 'JasonP'); $wgNamespacePermissionLockdown[113]['*'] = array('sysop', 'JasonP');
 * 1) Only allow individual users (and sysop) access to their own namespaces

$wgNonincludableNamespaces[] = 100; $wgNonincludableNamespaces[] = 101; $wgNonincludableNamespaces[] = 102; $wgNonincludableNamespaces[] = 103; $wgNonincludableNamespaces[] = 104; $wgNonincludableNamespaces[] = 105; $wgNonincludableNamespaces[] = 106; $wgNonincludableNamespaces[] = 107; $wgNonincludableNamespaces[] = 108; $wgNonincludableNamespaces[] = 109; $wgNonincludableNamespaces[] = 110; $wgNonincludableNamespaces[] = 111; $wgNonincludableNamespaces[] = 112; $wgNonincludableNamespaces[] = 113;
 * 1) Make DM and player namespace pages not includable in other pages

require_once( $IP.'/extensions/Cite/Cite.php' );
 * 1) add Cite extension

$wgUseTidy=true;

$wgRCMaxAge=30 * 24 * 3600;
 * 1) keep 30 days of recent changes

require 'extensions/StubManager.php';

require 'extensions/PageAfterAndBefore/PageAfterAndBefore.php';
 * 1) load parser extensions that allow previous/next buttons

$wgAllowDisplayTitle=true;

$wgUpgradeKey = 'foobar'; ?>