De elektronische Werkplaats/A. Handleidingen/Server/LocalSettings

Uit Werkplaats
Ga naar: navigatie, zoeken


<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;

  1. $wgGroupPermissions['*']['Open_read']=true;
  2. $wgGroupPermissions['user']['Open_edit']=true;
  3. $wgGroupPermissions['user']['Open_move']=true;
  4. $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;

  1. Enable subpages in the main namespace

$wgNamespacesWithSubpages[NS_MAIN] = true; $wgNamespacesWithSubpages[NS_PROJECT] = true; $wgNamespacesWithSubpages[NS_HELP] = true;

  1. Enable RenameUser extension

require_once("{$IP}/extensions/Renameuser/SpecialRenameuser.php");

  1. Enable Who Is Watching extension

require_once("{$IP}/extensions/WhoIsWatching/SpecialWhoIsWatching.php"); $wgPageShowWatchingUsers = true;

  1. Enable ImportUsers extensions

require_once("{$IP}/extensions/SpecialImportUsers.php");

$wgUseAjax = true; require_once( 'extensions/CategoryTree/CategoryTree.php' );

require_once( "{$IP}/extensions/ASHighlight/ashighlight.php" );

  1. require_once($IP."/extensions/w2l/wiki2latex.php");

$wgUsePathInfo = false;

$wgAllowCopyUploads = true;

$wgAllowCategorizedRecentChanges = true;

require_once("$IP/extensions/DeleteBatch/DeleteBatch.php"); </source>