Difference between revisions of "Complément LocalSettings"
From Blik
Line 10: | Line 10: | ||
$wgEnableUploads = true; | $wgEnableUploads = true; | ||
$wgUseTeX = false; | $wgUseTeX = false; | ||
− | |||
− | |||
− | |||
# Protection lecteurs inconnus | # Protection lecteurs inconnus |
Revision as of 08:01, 18 December 2019
$wgLogo = "${wgScriptPath}/images/wikilogo.gif"; $wgUsePathInfo = true; $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) ); $wgLocalInterwiki = $wgSitename; $wgEnableUploads = true; $wgUseTeX = false; # Protection lecteurs inconnus $wgGroupPermissions['*'] ['read'] = true; $wgGroupPermissions['user'] ['read'] = true; $wgGroupPermissions['sysop']['read'] = true; $wgGroupPermissions['*'] ['createaccount'] = false; $wgGroupPermissions['user'] ['createaccount'] = false; $wgGroupPermissions['sysop']['createaccount'] = true; $wgGroupPermissions['*'] ['createpage'] = false; $wgGroupPermissions['user'] ['createpage'] = false; $wgGroupPermissions['sysop']['createpage'] = true; # protection contre l'edition des pages $wgGroupPermissions['*'] ['edit'] = false; $wgGroupPermissions['user'] ['edit'] = true; $wgGroupPermissions['sysop']['edit'] = true; # protection contre le chargement de pages $wgGroupPermissions['*'] ['upload'] = false; $wgGroupPermissions['user'] ['upload'] = true; $wgGroupPermissions['sysop']['upload'] = true; # Ajouter plusieurs extensions $wgFileExtensions = array_merge( $wgFileExtensions, array( 'pdf', 'ppt', 'html', 'htm', 'txt' ) ); $wgWhitelistRead = array( ":Main Page", ":Page Principale", ":Blog", ":Plex", ":Aide", ":Présentation_courante", "Special:UserLogin", "Special:UserLogout", "Wikipedia:Help", "Wikipedia:Help", utf8_encode("Aide en français"), ); #ajouter des images groupées $wgUploadLocalDirectory = "${wgScriptPath}/dirsafe"; #obtenir les explication des erreurs de la base $wgShowSQLErrors = true; #accepter les entrées <html></html> $wgRawHtml = true;