De elektronische Werkplaats/A. Handleidingen/Server/LocalSettings
<source lang="php">
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'mp3', 'pdf', 'doc', 'ps' );
$wgDefaultUserOptions['fancysig'] = 1; $wgDefaultUserOptions['watchcreations'] = 1; $wgDefaultUserOptions['enotifwatchlistpages'] = 1; $wgDefaultUserOptions['watchdefault'] = 1;
$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false;
/**
- Set this to the number of authors that you want to be credited below an
- article text. Set it to zero to hide the attribution block, and a negative
- number (like -1) to show all authors. Note that this will require 2-3 extra
- database hits, which can have a not insignificant impact on performance for
- large wikis.
- /
$wgMaxCredits = 7;
/** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
- Otherwise, link to a separate credits page. */
$wgShowCreditsIfMax = true;
/** Go button goes straight to the edit screen if the article doesn't exist. */ $wgGoToEdit = false;
/** Whether or not to allow and use real name fields. Defaults to true. */ $wgAllowRealName = false;
$wgAllowExternalImages = true;
$wgAllowUserJs = true;
require_once( "{$IP}/extensions/Cite/Cite.php" ); include("extensions/Graphviz.php"); $wgGraphVizSettings->dotCommand = "/usr/bin/dot";
$wgRCShowWatchingUsers = true;
$wgUrlProtocols[]='webcal://'; $wgUrlProtocols[]='feed://';
$wgUseFileCache = false; //Helpt dit? $wgCachePages = false;
include("extensions/CategoryPermissionsFnwi.php"); //// Staat hier iets gevoeligs in?
$wgCategoryExclusive=array("Scholar", "Public", "Open"); //add groups to category permissions by: $wgGroupPermissions['*']['Public_read']=true; $wgGroupPermissions['scholar']['Public_edit']=true; $wgGroupPermissions['scholar']['Public_move']=true; $wgGroupPermissions['scholar']['Public_create']=true; $wgGroupPermissions['assistant']['Public_edit']=true; $wgGroupPermissions['assistant']['Public_move']=true; $wgGroupPermissions['assistant']['Public_create']=true;
- $wgGroupPermissions['*']['Open_read']=true;
- $wgGroupPermissions['user']['Open_edit']=true;
- $wgGroupPermissions['user']['Open_move']=true;
- $wgGroupPermissions['user']['Open_create']=true;
$wgGroupPermissions['scholar']['Scholar_read']=true; $wgGroupPermissions['scholar']['Scholar_edit']=true; $wgGroupPermissions['scholar']['Scholar_move']=true; $wgGroupPermissions['scholar']['Scholar_create']=true;
- Enable subpages in the main namespace
$wgNamespacesWithSubpages[NS_MAIN] = true; $wgNamespacesWithSubpages[NS_PROJECT] = true; $wgNamespacesWithSubpages[NS_HELP] = true;
- Enable RenameUser extension
require_once("{$IP}/extensions/Renameuser/SpecialRenameuser.php");
- Enable Who Is Watching extension
require_once("{$IP}/extensions/WhoIsWatching/SpecialWhoIsWatching.php"); $wgPageShowWatchingUsers = true;
- Enable ImportUsers extensions
require_once("{$IP}/extensions/SpecialImportUsers.php");
$wgUseAjax = true; require_once( 'extensions/CategoryTree/CategoryTree.php' );
require_once( "{$IP}/extensions/ASHighlight/ashighlight.php" );
- require_once($IP."/extensions/w2l/wiki2latex.php");
$wgUsePathInfo = false;
$wgAllowCopyUploads = true;
$wgAllowCategorizedRecentChanges = true;
require_once("$IP/extensions/DeleteBatch/DeleteBatch.php"); </source>