Difference between revisions of "Complément LocalSettings"

From Blik
Jump to: navigation, search
(Created page with "<pre> $wgLogo = "${wgScriptPath}/images/wikilogo.gif"; $wgUsePathInfo = true; $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) ); $wgLocalInt...")
 
Line 50: Line 50:
 
utf8_encode("Aide en français"),
 
utf8_encode("Aide en français"),
 
);
 
);
 +
 +
#ajouter des images groupées
 +
$wgUploadLocalDirectory = "${wgScriptPath}/dirsafe";
  
 
#obtenir les explication des erreurs de la base
 
#obtenir les explication des erreurs de la base

Revision as of 13:45, 15 June 2016

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