Podręcznik:CheckUsernames.php
Appearance
Wersja MediaWiki: | ≥ 1.3 |
Plik MediaWiki: checkUsernames.php | |
---|---|
Lokalizacja: | maintenance/ |
Kod źródłowy: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Klasy: | checkUsernames |
Szczegóły
checkUsernames.php file is a maintenance script that is used to check that all usernames in the database (user table) are actually valid.
Existing usernames can become invalid if User::isValidUserName()
is altered or if $wgMaxNameChars
is changed.
Options
This script does not accept any options.
Użycie
php checkUsernames.php
In case invalid usernames are found, the script returns the user_id and the username for each of the affected users.
Terminal
$ php maintenance/checkUsernames.php Found: 1: 'Jay' Found: 2: 'MediaWiki default' Found: 4: 'Maintenance script' Found: 5: 'ScriptImporter'