]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - extensions/ConfirmEdit/ConfirmEdit.php
MediaWiki 1.30.2
[autoinstalls/mediawiki.git] / extensions / ConfirmEdit / ConfirmEdit.php
1 <?php
2
3 /**
4  * ConfirmEdit MediaWiki extension.
5  *
6  * This is a framework that holds a variety of CAPTCHA tools. The
7  * default one, 'SimpleCaptcha', is not intended as a production-
8  * level CAPTCHA system, and another one of the options provided
9  * should be used in its place for any real usages.
10  *
11  * Copyright (C) 2005-2007 Brion Vibber <brion@wikimedia.org>
12  * http://www.mediawiki.org/
13  *
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 2 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, write to the Free Software Foundation, Inc.,
26  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27  * http://www.gnu.org/copyleft/gpl.html
28  *
29  * @file
30  * @ingroup Extensions
31  */
32
33 if ( function_exists( 'wfLoadExtension' ) ) {
34         wfLoadExtension( 'ConfirmEdit' );
35         // Keep i18n globals so mergeMessageFileList.php doesn't break
36         $wgMessagesDirs['ConfirmEdit'] = __DIR__ . '/i18n';
37         $wgExtensionMessagesFiles['ConfirmEditAlias'] = __DIR__ . '/ConfirmEdit.alias.php';
38         wfWarn(
39                 'Deprecated PHP entry point used for ConfirmEdit extension. ' .
40                 'Please use wfLoadExtension instead, ' .
41                 'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
42         );
43         return;
44 } else {
45         die( 'This version of the ConfirmEdit extension requires MediaWiki 1.25+' );
46 }