2012-05-07 21:54:44 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* OATHAuth extension - Support for HMAC based one time passwords
|
|
|
|
*
|
|
|
|
*
|
2018-11-09 14:28:55 +00:00
|
|
|
* For more info see https://mediawiki.org/wiki/Extension:OATHAuth
|
2012-05-07 21:54:44 +00:00
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
|
|
|
* @author Ryan Lane <rlane@wikimedia.org>
|
|
|
|
* @copyright © 2012 Ryan Lane
|
2018-04-07 00:02:48 +00:00
|
|
|
* @license GPL-2.0-or-later
|
2012-05-07 21:54:44 +00:00
|
|
|
*/
|
|
|
|
|
2015-12-17 21:09:57 +00:00
|
|
|
if ( function_exists( 'wfLoadExtension' ) ) {
|
|
|
|
wfLoadExtension( 'OATHAuth' );
|
2012-05-07 21:54:44 +00:00
|
|
|
|
2015-12-17 21:09:57 +00:00
|
|
|
$wgMessagesDirs['OATHAuth'] = __DIR__ . '/i18n';
|
2016-01-19 22:07:57 +00:00
|
|
|
$wgExtensionMessagesFiles['OATHAuthAlias'] = __DIR__ . '/OATHAuth.alias.php';
|
2014-05-11 08:16:03 +00:00
|
|
|
|
2018-10-26 19:17:55 +00:00
|
|
|
wfWarn(
|
2015-12-17 21:09:57 +00:00
|
|
|
'Deprecated PHP entry point used for OATHAuth extension. Please use wfLoadExtension instead, ' .
|
|
|
|
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
2018-10-26 19:17:55 +00:00
|
|
|
);
|
2012-05-07 21:54:44 +00:00
|
|
|
|
2015-12-17 21:09:57 +00:00
|
|
|
return true;
|
|
|
|
} else {
|
2018-10-26 19:17:55 +00:00
|
|
|
die( 'This version of the OATHAuth extension requires MediaWiki 1.32+' );
|
2016-01-19 22:07:57 +00:00
|
|
|
}
|