MediaWiki Code Snippets

12 Aug

For reference, MediaWiki code snippets for LocalSettings.php:

# Must be logged in to edit
$wgDefaultUserOptions [‘editsection’] = false;

# Disable reading by anonymous users
$wgGroupPermissions[‘*’][‘read’] = false;

# Disable registration
$wgGroupPermissions[‘*’][‘createaccount’] = false;

# Image Uploads
$wgEnableUploads  = true;
$wgFileExtensions = array(‘png’,’gif’,’jpg’,’jpeg’,’doc’,’xls’,’mpp’,’pdf’,’ppt’,’tiff’,’bmp’,’docx’, ‘xlsx’, ‘pptx’,’ps’,’odt’,’ods’,’odp’,’odg’);

For External database user authentication, see here:

http://www.mediawiki.org/wiki/Extension:ExtAuthDB