Difference between revisions of "Complément LocalSettings"
From Blik
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
+ | $wgArticlePath="$1"; | ||
$wgLogo = "${wgScriptPath}/images/wikilogo.gif"; | $wgLogo = "${wgScriptPath}/images/wikilogo.gif"; | ||
Line 10: | Line 11: | ||
$wgEnableUploads = true; | $wgEnableUploads = true; | ||
$wgUseTeX = false; | $wgUseTeX = false; | ||
− | |||
− | |||
− | |||
# Protection lecteurs inconnus | # Protection lecteurs inconnus | ||
Line 62: | Line 60: | ||
#accepter les entrées <html></html> | #accepter les entrées <html></html> | ||
$wgRawHtml = true; | $wgRawHtml = true; | ||
+ | |||
+ | #blanchit le referrer | ||
+ | $wgExternalLinkTarget = '_blank'; | ||
</pre> | </pre> | ||
[[-|return]] | [[-|return]] |
Latest revision as of 11:38, 4 April 2021
$wgArticlePath="$1"; $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; #blanchit le referrer $wgExternalLinkTarget = '_blank';