2005-09-30 09:21:02 +00:00
|
|
|
<?php
|
2007-04-09 16:42:18 +00:00
|
|
|
|
2006-01-27 08:00:32 +00:00
|
|
|
/**
|
2011-01-31 05:30:34 +00:00
|
|
|
* ConfirmEdit MediaWiki extension.
|
|
|
|
*
|
|
|
|
* This is a framework that holds a variety of CAPTCHA tools. The
|
|
|
|
* default one, 'SimpleCaptcha', is not intended as a production-
|
|
|
|
* level CAPTCHA system, and another one of the options provided
|
|
|
|
* should be used in its place for any real usages.
|
2006-01-27 08:00:32 +00:00
|
|
|
*
|
2007-06-14 16:41:57 +00:00
|
|
|
* Copyright (C) 2005-2007 Brion Vibber <brion@wikimedia.org>
|
2006-01-27 08:00:32 +00:00
|
|
|
* http://www.mediawiki.org/
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* 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.,
|
2010-06-21 13:45:17 +00:00
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2006-01-27 08:00:32 +00:00
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*
|
2010-06-06 15:12:22 +00:00
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2006-01-27 08:00:32 +00:00
|
|
|
*/
|
2005-09-30 09:21:02 +00:00
|
|
|
|
2015-05-25 20:25:40 +00:00
|
|
|
if ( function_exists( 'wfLoadExtension' ) ) {
|
|
|
|
wfLoadExtension( 'ConfirmEdit' );
|
|
|
|
// Keep i18n globals so mergeMessageFileList.php doesn't break
|
|
|
|
$wgMessagesDirs['ConfirmEdit'] = __DIR__ . '/i18n';
|
|
|
|
$wgExtensionMessagesFiles['ConfirmEditAlias'] = __DIR__ . '/ConfirmEdit.alias.php';
|
|
|
|
/* wfWarn(
|
|
|
|
'Deprecated PHP entry point used for ConfirmEdit extension. ' .
|
|
|
|
'Please use wfLoadExtension instead, ' .
|
|
|
|
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
|
|
|
|
); */
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
die( 'This version of the ConfirmEdit extension requires MediaWiki 1.25+' );
|
2007-11-12 07:42:25 +00:00
|
|
|
}
|