User:Twisted86/LocalSettings.php
Please see also this thread at the MW help desk.
<?php # This file was automatically generated by the MediaWiki installer. # If you make manual changes, please keep track in case you need to # recreate them later. # # See includes/DefaultSettings.php for all configurable settings # and their default values, but don't forget to make changes in _this_ # file, not there. # If you customize your file layout, set $IP to the directory that contains # the other MediaWiki files. It will be used as a base to locate files. if( defined( 'MW_INSTALL_PATH' ) ) { $IP = MW_INSTALL_PATH; } else { $IP = dirname( __FILE__ ); } $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" ); # 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" ); } } ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; $wgSitename = "WikiHawk"; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. $wgScriptPath = ""; $wgScriptExtension = ".php5"; ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL $wgEnableEmail = true; $wgEnableUserEmail = true; $wgEmergencyContact = "joe@foo.bar"; $wgPasswordSender = "joe@foo.bar"; #Set Default Timezone $wgLocaltimezone = "America/Los_Angeles"; $oldtz = getenv("TZ"); putenv("TZ=$wgLocaltimezone"); # Versions before 1.7.0 used $wgLocalTZoffset as hours. # After 1.7.0 offset as minutes $wgLocalTZoffset = date("Z") / 60; putenv("TZ=$oldtz"); # use my logo $wgLogo = "/images/WikiHawk.png"; # Restrict anonymous editing, reading, account creation, page creation $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false; # Allow registered users to edit, read, and create pages # also mark all edits as patrolled $wgGroupPermissions['user']['edit'] = true; $wgGroupPermissions['user']['createpage'] = true; $wgGroupPermissions['user']['createtalk'] = true; $wgGroupPermissions['user']['autopatrol'] = true; # Must confirm e-mail address to edit $wgEmailConfirmToEdit = true; # Force edit summaries for all new accounts $wgDefaultUserOptions['forceeditsummary'] = true; # Allow PDF upload $wgFileExtensions[] = 'pdf'; ## For a detailed description of the following switches see ## http://www.mediawiki.org/wiki/Extension:Email_notification ## and http://www.mediawiki.org/wiki/Extension:Email_notification ## There are many more options for fine tuning available see ## /includes/DefaultSettings.php ## UPO means: this is also a user preference option $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; $wgDBtype = "mysql"; $wgDBserver = "db.foo.bar"; $wgDBname = "foobar"; $wgDBuser = "foobar"; $wgDBpassword = "foobar"; # MySQL specific settings $wgDBprefix = ""; # MySQL table options to use during installation or update $wgDBTableOptions = "TYPE=InnoDB"; # Experimental charset support for MySQL 4.1/5.0. $wgDBmysql5 = false; # Postgres specific settings $wgDBport = "5432"; $wgDBmwschema = "mediawiki"; $wgDBts2schema = "public"; ## Shared memory settings $wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array(); ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; $wgUseImageMagick = false; $wgImageMagickConvertCommand = "/usr/bin/convert"; ## If you want to use image uploads under safe mode, ## create the directories images/archive, images/thumb and ## images/temp, and make them all writable. Then uncomment ## this, if it's not already uncommented: # $wgHashedUploadDirectory = false; ## If you have the appropriate support software installed ## you can enable inline LaTeX equations: $wgUseTeX = false; $wgLocalInterwiki = $wgSitename; $wgLanguageCode = "en"; $wgProxyKey = "foobar"; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': $wgDefaultSkin = 'monobook'; ## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. # $wgEnableCreativeCommonsRdf = true; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; # $wgRightsCode = ""; # Not yet used $wgDiff3 = "/usr/bin/diff3"; # When you make changes to this configuration file, this will make # sure that cached pages are cleared. $configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); $wgCacheEpoch = max( $wgCacheEpoch, $configdate ); # Allow users to dismiss the sitenototice require_once("extensions/DismissableSiteNotice/DismissableSiteNotice.php"); # install parser and namespace lockdown extensions require_once("extensions/ParserFunctions/ParserFunctions.php"); require_once("extensions/Lockdown.php"); # enable sub-pages in Main $wgNamespacesWithSubpages[NS_MAIN] = 1; # add custom namespace for DM-only stuff $wgExtraNamespaces[100] = "DM"; $wgExtraNamespaces[101] = "DM talk"; # add custom namespaces for individual players' 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"; # add groups to support player namespaces $wgGroupPermissions['AlanD']['edit'] = true; $wgGroupPermissions['JohnC']['edit'] = true; $wgGroupPermissions['LisaC']['edit'] = true; $wgGroupPermissions['AdamS']['edit'] = true; $wgGroupPermissions['ShawnO']['edit'] = true; $wgGroupPermissions['JasonP']['edit'] = true; # Only allow sysops to read "DM" namespace $wgNamespacePermissionLockdown[100]['*'] = array('sysop'); $wgNamespacePermissionLockdown[101]['*'] = array('sysop'); # Only allow individual users (and sysop) access to their own namespaces $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'); # Make DM and player namespace pages not includable in other pages $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; # add Cite extension require_once( $IP.'/extensions/Cite/Cite.php' ); $wgUseTidy=true; # keep 30 days of recent changes $wgRCMaxAge=30 * 24 * 3600; require 'extensions/StubManager.php'; # load parser extensions that allow previous/next buttons require 'extensions/PageAfterAndBefore/PageAfterAndBefore.php'; $wgAllowDisplayTitle=true; $wgUpgradeKey = 'foobar'; ?>