Moving QuestyCaptcha to ConfirmEdit
[toast/cookiecaptcha.git] / QuestyCaptcha.php
1 <?php
2 /**
3  * A question-based captcha plugin.
4  *
5  * Copyright (C) 2009 Benjamin Lees <emufarmers@gmail.com>
6  * http://www.mediawiki.org/
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  * http://www.gnu.org/copyleft/gpl.html
22  *
23  * @addtogroup Extensions
24  */
25
26 if ( !defined( 'MEDIAWIKI' ) ) {
27         exit;
28 }
29
30 global $wgCaptchaQuestions;
31 $wgCaptchaQuestions = array();
32 //$wgCaptchaQuestions[] = array( 'question' => "A question?", 'answer' => "An answer!" );
33 //$wgCaptchaQuestions[] = array( 'question' => 'How much wood would a woodchuck chuck if a woodchuck could chuck wood?', 'answer' => 'as much wood as...' );
34 //$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );
35 //add your questions in LocalSettings.php using this format
36
37 $wgExtensionMessagesFiles['QuestyCaptcha'] = dirname(__FILE__).'/QuestyCaptcha.i18n.php';
38 $wgAutoloadClasses['QuestyCaptcha'] = dirname( __FILE__ ) . '/QuestyCaptcha.class.php';
39