Difference between revisions of "Complément LocalSettings"

From Blik
Jump to: navigation, search
Line 60: Line 60:
 
$wgRawHtml = true;
 
$wgRawHtml = true;
  
#referrer est blanchi (on ne sait pas quelle page appelle)
+
#blanchit le referrer  
 
$wgExternalLinkTarget = '_blank';
 
$wgExternalLinkTarget = '_blank';
 
</pre>
 
</pre>
 
[[-|return]]
 
[[-|return]]

Revision as of 15:19, 13 June 2020

$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';

return