User:Al Maghi/Industrialization guide/LocalSettings.php
Appearance
(Redirected from Manual:Industrialization guide/LocalSettings.php)
Stable LocalSettings
[edit]<?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.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings
# 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 = "TestExtension";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/wikiTestExtension";
$wgScriptExtension = ".php";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "admin@localhost";
$wgPasswordSender = "admin@localhost";
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "wikidb";
$wgDBuser = "wikiuser";
$wgDBpassword = "hello";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = true;
## 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 = false;
# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
# $wgShellLocale = "en_US.UTF-8";
## 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 = strtolower( $wgSitename );
$wgLanguageCode = "en";
$wgSecretKey = "19597af226acd6e37e276e48189d112c563ac5322812b36d7817e8545f8c7708";
## 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 = "";
# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
$wgAllowSlowParserFunctions = true;
$wgUseAjax = true;
##### --- End of Network & System Administration settings --- #####
#
#
##### -== Start of Wiki Administration settings ==- #####
# Here is the location of the small 155x135 logo that go at the upper left corner of every page
//$wgLogo = "$wgScriptPath/images/wikiLogo.png";
# Here is the favicon in reader's browser
//$wgFavicon = "$wgScriptPath/images/favicon.ico";
## Namespaces
$wgExportFromNamespaces = true;
# Extranamespaces:
// $wgExtraNamespaces[100] = "Private";
// $wgExtraNamespaces[101] = "Private_talk";
// $wgNamespacesWithSubpages[100] = true;
// $wgNamespacesWithSubpages[101] = true;
// $wgNonincludableNamespaces
# ExtraAliases:
// $wgNamespaceAliases
## Default user options
# See http://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions
$wgDefaultUserOptions['math'] = 2; // Sets math render preference
$wgDefaultUserOptions['rcdays'] = 14;
$wgDefaultUserOptions['rclimit'] = 50;
$wgDefaultUserOptions['imagesize'] = 2;
$wgDefaultUserOptions['thumbsize'] = 5; //large thumbnail
$wgDefaultUserOptions['rememberpassword'] = 0; //No, for security reason
$wgDefaultUserOptions['enotifwatchlistpages'] = 1; //email if watchlist change
$wgDefaultUserOptions['enotifusertalkpages'] = 1; //email if user talk page
$wgDefaultUserOptions['enotifminoredits'] = 0;
$wgDefaultUserOptions['watchlistdays'] = 7.0;
$wgDefaultUserOptions['watchlisthideown'] = 1; //hide my own edits on watchlist
$wgDefaultUserOptions['watchlisthidebots'] = 1; //hide bot edits
$wgDefaultUserOptions['watchlisthideminor'] = 1; //hide minor edits
$wgDefaultUserOptions['watchcreations'] = 1; //add pages I create to watchlist
$wgDefaultUserOptions['watchdefault'] = 1; //add pages I edit
$wgDefaultUserOptions['watchmoves'] = 1; //add pages I move
$wgDefaultUserOptions['watchdeletion'] = 1; //add pages I delete
## User rights (view in extension)
# Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;
# But allow them to read these pages:
$wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents");
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
## Extension:SimpleSecurity
#
//$wgSecurityUseDBHook = true; # Add this to enable the experimental DB hook for stronger security
//include("$IP/extensions/SimpleSecurity/SimpleSecurity.php");
//$wgSecurityRenderInfo = true;
//$wgSecurityAllowUnreadableLinks = false;
//$wgSecurityExtraGroups = array(
// 'groupA' => 'Unrestricted user group',
// 'groupB' => 'Marketers group'
//);
//$wgPageRestrictions['Category:Market']['read'] = array('groupA', 'groupB'); //Pages that are categorized into Market pages
//$wgPageRestrictions['Category:Market']['edit'] = array('groupA', 'groupB'); //are restricted to group A and B,
//$wgPageRestrictions['Category:Market']['move'] = array('groupA', 'groupB'); //users not belonging to any group cannot read them.
//$wgPageRestrictions['Namespace:Private']['read'] = 'groupA'; //Pages in Private namespace (Private:Pagename)
//$wgPageRestrictions['Namespace:Private']['edit'] = 'groupA'; //are restricted
//$wgPageRestrictions['Namespace:Private']['move'] = 'groupA'; //to users belonging to group A.
##### Extension Chapter of LocalSettings.php
#
# MediaWiki Extensions
#
############ See http://www.mediawiki.org/
//require_once('extensions/Nuke/SpecialNuke.php');
require_once( "$IP/extensions/OpenSearchXml/OpenSearchXml.php" ); # Extension:OpenSearchXml - search suggestions & highlight
$wgEnableMWSuggest = true; // need $wgScriptExtension = ".php5";
$wgAdvancedSearchHighlighting = true;
$wgSearchHighlightBoundaries = true;
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); # Extension:ParserFunctions
require_once('extensions/Cite/Cite.php'); # Extension to allow use of footnotes
require_once("{$IP}/extensions/CategoryTree/CategoryTree.php");
$wgCategoryTreeSidebarRoot = "Main"; // Is category:Main existing ?
require_once("$IP/extensions/CharInsert/CharInsert.php"); # Extension:CharInsert: Edit tools below edit box
require_once( "{$IP}/extensions/Intersection/DynamicPageList.php" ); //DPL Limited to intersection.
require_once( "$IP/extensions/Gadgets/Gadgets.php");
require_once($IP.'/extensions/InputBox/InputBox.php'); // <inputbox>
require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php"); // Uses geshi, a THIRD-PARTY tool.
require_once( "{$IP}/extensions/Contributors/Contributors.php" );
require_once('extensions/Interwiki/SpecialInterwiki.php');
$wgGroupPermissions['*']['interwiki'] = false;
$wgGroupPermissions['sysop']['interwiki'] = true;
require_once( "{$IP}/extensions/Duplicator/Duplicator.php" );
require_once( "$IP/extensions/MultiBoilerplate/MultiBoilerplate.php" );
$wgMultiBoilerplateOptions = false; //[ "My Boilerplate" ] = "Template:My Boilerplate";
$wgMultiBoilerplateDiplaySpecialPage = true;
require_once("extensions/SubPageList3/SubPageList3.php"); //<splist/>
require_once("$IP/extensions/MultiUpload/SpecialMultipleUpload.php");
$wgMaxUploadFiles = 6;
require_once("$IP/extensions/ImageMap/ImageMap.php"); // clickable image map
require_once( "$IP/extensions/ContributionScores/ContributionScores.php" );
$wgContribScoreIgnoreBots = true; // Exclude Bots from the reporting - Can be omitted.
$wgContribScoreIgnoreBlockedUsers = true; // Exclude Blocked Users from the reporting - Can be omitted.
$wgContribScoreDisableCache = false; // Set to true to disable cache for parser function and inclusion of table
//Each array defines a report - 7,50 is "past 7 days" and "LIMIT 50" - Can be omitted.
$wgContribScoreReports = array(
array(7,50), // Last 7 days, top 50 users
array(14,50), // Last 14 days, top 50 users
array(21,50), // Last 21 days, top 50 users
array(30,50), // Last 30 days, top 50 users
array(0,50));
#
//require_once("$IP/extensions/ConfirmAccount/SpecialConfirmAccount.php");
//require_once("$IP/extensions/Collection/Collection.php");
//include_once('extensions/CheckUser/CheckUser.php'); // Need to run php install.php
require_once("$IP/extensions/Renameuser/SpecialRenameuser.php");
require_once("$IP/extensions/CategoryTests/CategoryTests.php");
## Skin
//require_once( "extensions/CategoryStepper/CategoryStepper.php" );
// $wgCategoryStepper = false; //MediaWiki:Categorystepper instead
require_once( "$IP/extensions/CategoryOnUpload/CategoryOnUpload.php" );
## Not in SVN repository or unstable:
//include_once("$IP/extensions/MassEditRegex/MassEditRegex.php");
//require_once( "$IP/extensions/UsageStatistics/SpecialUserStats.php" );
// $wgUserStatsGoogleCharts = 1; // default 0 is using GNUplot tool if installed on server
//require_once("$IP/extensions/embed_document.php"); # Embed document extension.
//require_once( "$IP/extensions/TopTenPages.php" );
//require_once("$IP/extensions/GroupPermissionsManager/GroupPermissionsManager.php");
//include('extensions/FreeMind.php');
//require_once 'extensions/SpecialUploadLocal/SpecialUploadLocal.php';
// $wgUploadLocalDirectory = $IP.'/extensions/SpecialUploadLocal/images'; //// need an ftp access to extensions folder
//require_once( "$IP/extensions/FCKeditor/FCKeditor.php" ); # Extension:WYSWYG FCKeditor //$wgFCKEditorExcludedNamespaces
//require_once("extensions/articletocategory.php"); #Add article to cat. box
# Categorization extensions
// require_once( 'extensions/CategorySuggest/CategorySuggest.php");
// require_once( 'extensions/SelectCategory/SelectCategory.php' );
# Events or Calendar extensions
//include("extensions/events/Events.php");
//include("includes/SpecialEvents.php");
//require_once("$IP/extensions/Calendar/Calendar.php");
// $wgExtraNamespaces[106] = "Calendars";
// $wgExtraNamespaces[107] = "Calendars_talk";
// $wgNamespacesWithSubpages[106] = true;
// $wgNamespacesWithSubpages[107] = true;
## Maintenance scripts extension:
//$wgGroupPermissions['bureaucrat']['maintenanceshell'] = true; # maintenanceShell permission
//require_once("$IP/extensions/MaintenanceShell/MaintenanceShell.php"); // this line must remain last
//--removal of all suggestions to use MaintenanceShell. Suggestion of ^demon
########
# Debbuging:
$wgShowExceptionDetails = true;