diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/OATHAuth/OATHAuth.php |
first commit
Diffstat (limited to 'www/wiki/extensions/OATHAuth/OATHAuth.php')
-rw-r--r-- | www/wiki/extensions/OATHAuth/OATHAuth.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/wiki/extensions/OATHAuth/OATHAuth.php b/www/wiki/extensions/OATHAuth/OATHAuth.php new file mode 100644 index 00000000..6cf00b0a --- /dev/null +++ b/www/wiki/extensions/OATHAuth/OATHAuth.php @@ -0,0 +1,29 @@ +<?php +/** + * OATHAuth extension - Support for HMAC based one time passwords + * + * + * For more info see http://mediawiki.org/wiki/Extension:OATHAuth + * + * @file + * @ingroup Extensions + * @author Ryan Lane <rlane@wikimedia.org> + * @copyright © 2012 Ryan Lane + * @license GPL-2.0-or-later + */ + +if ( function_exists( 'wfLoadExtension' ) ) { + wfLoadExtension( 'OATHAuth' ); + + $wgMessagesDirs['OATHAuth'] = __DIR__ . '/i18n'; + $wgExtensionMessagesFiles['OATHAuthAlias'] = __DIR__ . '/OATHAuth.alias.php'; + + /* wfWarn( + 'Deprecated PHP entry point used for OATHAuth extension. Please use wfLoadExtension instead, ' . + 'see https://www.mediawiki.org/wiki/Extension_registration for more details.' + ); */ + + return true; +} else { + die( 'This version of the OATHAuth extension requires MediaWiki 1.25+' ); +} |