Manual:BlockUsers.php/fr

Version de MediaWiki :
1.35
Category:MediaWiki code/fr#BlockUsers.php

Détails

blockUsers.php file is a maintenance script to block or unblock a batch of users.

By default, all users are hard blocked, auto blocked from any current and subsequent IP addresses, email disabled, unable to write to their user page and unable to create further accounts with no expiry to this block. You can change these configuration through options.

Options/Arguments

Option/ArgumentDescriptionType
<file>A file where each line contains the name of a user to be blocked. If not given, script reads from standard inputoptionnel
--performerUsername that will be shown in the log entries (does not need to be in the sysop group)optionnel
--reasonReason for blocks. If empty, no reason will be shown in the logsoptionnel
--reblockReblock users who are already blockedoptionnel
--expiryExpiry of the block (can be something like "1 week" or a timestamp)optionnel
--unblockIf this option is passed, script will unblock the users insteadoptionnel
--allow-createaccountAllow account creation for blocked IPsoptionnel
--allow-emailAllow blocked accounts to send emailsoptionnel
--allow-talkeditThe block user will be able to edit their own talk pageoptionnel
--disable-hardblockDon't block logged in accounts from a blocked IP addressoptionnel
--disable-autoblockDon't autoblock IP addresses used by the accountsoptionnel

Usage

php maintenance/run.php blockUsers [ <file>| --performer| --reason| --reblock| --expiry| --unblock| --allow-createaccount| --allow-email| --allow-talkedit| --disable-hardblock| --disable-autoblock ]
Dans la version MediaWiki 1.39.12 et antérieure, vous devez invoquer des scripts de maintenance à l'aide de php maintenance/scriptName.php au lieu de php maintenance/run.php scriptName.
Terminal

(This will block the users contained in the text file "userlist.txt")

If the filename is omitted, the script will expect a list of users on the standard input.

See also

Category:Maintenance scripts/fr#ChangePassword.php Category:User maintenance scripts/fr
Category:Maintenance scripts/fr Category:MediaWiki code/fr Category:User maintenance scripts/fr