MediaWiki/LocalSettings.php: Difference between revisions
(Die Seite wurde neu angelegt: „* Logo $wgLogo = "skins/common/images/mediawiki.png"; * Uploads $wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMa…“) |
No edit summary |
||
Line 6: | Line 6: | ||
$wgUseImageResize = true; | $wgUseImageResize = true; | ||
$wgUseImageMagick = true; | $wgUseImageMagick = true; | ||
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'zip', 'rar', 'ace', '7z', | $wgImageMagickConvertCommand = "/usr/bin/convert"; | ||
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'svg', 'mp4', 'pdf', 'zip', 'rar', 'ace', '7z', | |||
'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'odt', 'ods', 'odp', 'odg', 'odf', 'csv'); | |||
$wgSVGConverter = 'rsvg'; | |||
$wgMaxUploadSize = 1024*1024*256; #256MB | |||
#$wgAllowExternalImages = true; | #$wgAllowExternalImages = true; | ||
Latest revision as of 16:12, 19 February 2018
- Logo
$wgLogo = "skins/common/images/mediawiki.png";
- Uploads
$wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'svg', 'mp4', 'pdf', 'zip', 'rar', 'ace', '7z', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'odt', 'ods', 'odp', 'odg', 'odf', 'csv'); $wgSVGConverter = 'rsvg'; $wgMaxUploadSize = 1024*1024*256; #256MB #$wgAllowExternalImages = true;
- Link Protocols
$wgUrlProtocols = array('http://','https://','ftp://','file://','mailto:','news:');
- Timezone
$wgLocaltimezone = "Europe/Berlin"; $wgLocalTZoffset = date("Z") / 60;
- TeX
$wgUseTeX = true; $wgTmpDirectory = "$IP/images/math";
- No write permissions to anonymous
$wgGroupPermissions['*']['edit'] = false;
- No anonymous access except Mainpage
$wgWhitelistRead = array ("Hauptseite", "Spezial:Anmelden", "Spezial:Abmelden", "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-"); $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['createaccount'] = false;
- Namespaces
$wgExtraNamespaces[100] = "Privat"; $wgExtraNamespaces[101] = "Privat_talk"; $wgNamespacesWithSubpages[NS_MAIN] = true; # Subpages "/" $wgContentNamespaces = array (100,102); $wgNamespacesToBeSearchedDefault[102] = true;