added myself to creators

This commit is contained in:
jvvg 2013-06-15 11:03:00 -04:00
parent 5b37e7dd88
commit a437947228

View file

@ -1,81 +1,81 @@
<?php <?php
/* /*
(c) Aaron Schulz 2007, GPL (c) Aaron Schulz 2007, GPL
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License along You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc., with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
http://www.gnu.org/copyleft/gpl.html http://www.gnu.org/copyleft/gpl.html
*/ */
if ( !defined( 'MEDIAWIKI' ) ) { if ( !defined( 'MEDIAWIKI' ) ) {
echo "ConfirmAccount extension\n"; echo "ConfirmAccount extension\n";
exit( 1 ) ; exit( 1 ) ;
} }
$wgExtensionCredits['specialpage'][] = array( $wgExtensionCredits['specialpage'][] = array(
'path' => __FILE__, 'path' => __FILE__,
'name' => 'Confirm User Accounts', 'name' => 'Confirm User Accounts',
'descriptionmsg' => 'confirmedit-desc', 'descriptionmsg' => 'confirmedit-desc',
'author' => 'Aaron Schulz', 'author' => 'Aaron Schulz and Jacob G.',
'url' => 'https://www.mediawiki.org/wiki/Extension:ConfirmAccount', 'url' => 'https://www.mediawiki.org/wiki/Extension:ConfirmAccount',
); );
# Load default config variables # Load default config variables
require( dirname( __FILE__ ) . '/ConfirmAccount.config.php' ); require( dirname( __FILE__ ) . '/ConfirmAccount.config.php' );
# Define were PHP files and i18n files are located # Define were PHP files and i18n files are located
require( dirname( __FILE__ ) . '/ConfirmAccount.setup.php' ); require( dirname( __FILE__ ) . '/ConfirmAccount.setup.php' );
ConfirmAccountSetup::defineSourcePaths( $wgAutoloadClasses, $wgExtensionMessagesFiles ); ConfirmAccountSetup::defineSourcePaths( $wgAutoloadClasses, $wgExtensionMessagesFiles );
# Define JS/CSS modules and file locations # Define JS/CSS modules and file locations
ConfirmAccountUISetup::defineResourceModules( $wgResourceModules ); ConfirmAccountUISetup::defineResourceModules( $wgResourceModules );
# Let some users confirm account requests and view credentials for created accounts # Let some users confirm account requests and view credentials for created accounts
$wgAvailableRights[] = 'confirmaccount'; // user can confirm account requests $wgAvailableRights[] = 'confirmaccount'; // user can confirm account requests
$wgAvailableRights[] = 'requestips'; // user can see IPs in request queue $wgAvailableRights[] = 'requestips'; // user can see IPs in request queue
$wgAvailableRights[] = 'lookupcredentials'; // user can lookup info on confirmed users $wgAvailableRights[] = 'lookupcredentials'; // user can lookup info on confirmed users
# Actually register special pages # Actually register special pages
ConfirmAccountUISetup::defineSpecialPages( $wgSpecialPages, $wgSpecialPageGroups ); ConfirmAccountUISetup::defineSpecialPages( $wgSpecialPages, $wgSpecialPageGroups );
# ####### HOOK CALLBACK FUNCTIONS ######### # ####### HOOK CALLBACK FUNCTIONS #########
# UI-related hook handlers # UI-related hook handlers
ConfirmAccountUISetup::defineHookHandlers( $wgHooks ); ConfirmAccountUISetup::defineHookHandlers( $wgHooks );
# Check for account name collisions # Check for account name collisions
$wgHooks['AbortNewAccount'][] = 'ConfirmAccountUIHooks::checkIfAccountNameIsPending'; $wgHooks['AbortNewAccount'][] = 'ConfirmAccountUIHooks::checkIfAccountNameIsPending';
# Schema changes # Schema changes
$wgHooks['LoadExtensionSchemaUpdates'][] = 'ConfirmAccountUpdaterHooks::addSchemaUpdates'; $wgHooks['LoadExtensionSchemaUpdates'][] = 'ConfirmAccountUpdaterHooks::addSchemaUpdates';
# ####### END HOOK CALLBACK FUNCTIONS ######### # ####### END HOOK CALLBACK FUNCTIONS #########
# Load the extension after setup is finished # Load the extension after setup is finished
$wgExtensionFunctions[] = 'efLoadConfirmAccount'; $wgExtensionFunctions[] = 'efLoadConfirmAccount';
/** /**
* This function is for setup that has to happen in Setup.php * This function is for setup that has to happen in Setup.php
* when the functions in $wgExtensionFunctions get executed. * when the functions in $wgExtensionFunctions get executed.
* @return void * @return void
*/ */
function efLoadConfirmAccount() { function efLoadConfirmAccount() {
global $wgEnableEmail; global $wgEnableEmail;
# This extension needs email enabled! # This extension needs email enabled!
# Otherwise users can't get their passwords... # Otherwise users can't get their passwords...
if ( !$wgEnableEmail ) { if ( !$wgEnableEmail ) {
echo "ConfirmAccount extension requires \$wgEnableEmail set to true.\n"; echo "ConfirmAccount extension requires \$wgEnableEmail set to true.\n";
exit( 1 ) ; exit( 1 ) ;
} }
} }