Extension:ConfirmUsersEmail

Overview
This extension allows anyone with the confirmusersemail permission (Bureaucrat by default) to set other users emailconfirmed while not revealing said user's email address. This is not logged, but an email is sent to the user being emailconfirmed. Also, if you set the setemail right, users with that right can use this form to view and set email addresses as well.

Requires AddMessages Extension
Due to the deprecation of $wgMessageCache->addMessage, this extension now requires the Extension:AddMessages extension to be installed and to run prior to it.

Usage
Visit Special:ConfirmUsersEmail, type in a username, click the confirm button, and you've just confirmed their email! Easy as that. If they don't have an email specified or if they already have a confirmed email address, you will be shown an error message (unless you have the setemail right, in which case you can set the email address).

Download instructions
Please copy and paste the code found below into three new php text files (named accordingly), then place them in,  , and. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

User rights
confirmuseremail is the permission used to control access to the special page. By default, it is given to bureaucrats. If you wish to change this, please modify the $wgGroupPermissions line in ConfirmUsersEmail.php and change the 'bureaucrat' to another group.

setemail is the permissions used to control whether or not one can view and change email addresses. By default, nobody has this, but you can uncomment the line in ConfirmUsersEmail.php to give it to bureaucrats (or change 'bureaucrat' to another group).