X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=8180443347b26d3e873d34f8ab61b1bda256af92;hb=711fad668b86ff837a31808fe71056b9257e4d80;hp=be858c22c1314c05b05286a0f9ef6002ab5e29fa;hpb=0cf832a339422a3beb088b88e43f69322f2cbad0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index be858c22c1..8180443347 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2089,7 +2089,7 @@ $wgExternalStores = []; * Create a cluster named 'cluster1' containing three servers: * @code * $wgExternalServers = [ - * 'cluster1' => [ 'srv28', 'srv29', 'srv30' ] + * 'cluster1' => * ]; * @endcode * @@ -5431,11 +5431,30 @@ $wgDeleteRevisionsLimit = 0; $wgHideUserContribLimit = 1000; /** - * Number of accounts each IP address may create, 0 to disable. + * Number of accounts each IP address may create per specified period(s). + * + * @par Example: + * @code + * $wgAccountCreationThrottle = [ + * // no more than 100 per month + * [ + * 'count' => 100, + * 'seconds' => 30*86400, + * ], + * // no more than 10 per day + * [ + * 'count' => 10, + * 'seconds' => 86400, + * ], + * ]; + * @endcode * * @warning Requires $wgMainCacheType to be enabled */ -$wgAccountCreationThrottle = 0; +$wgAccountCreationThrottle = [ [ + 'count' => 0, + 'seconds' => 86400, +] ]; /** * Edits matching these regular expressions in body text