Difference between revisions of "Complément LocalSettings"
From Blik
Line 1: | Line 1: | ||
<pre> | <pre> | ||
+ | $wgArticlePath="$1"; | ||
$wgLogo = "${wgScriptPath}/images/wikilogo.gif"; | $wgLogo = "${wgScriptPath}/images/wikilogo.gif"; | ||
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';