~ubuntu-branches/ubuntu/utopic/mediawiki-extensions/utopic

« back to all changes in this revision

Viewing changes to dist/mediawiki-extensions-confirmedit/usr/share/mediawiki-extensions/confirmedit/MathCaptcha.php

  • Committer: Package Import Robot
  • Author(s): Thorsten Glaser
  • Date: 2013-12-31 11:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20131231114458-g45961ac13xvf81t
Tags: 3.5
* Remove old (harmful) mediawiki-extensions postrm in
  new mediawiki-extensions-base preinst (Closes: #698438)
* Stop shipping extensions that moved to core in 1.19
* Policy 3.9.5 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
 
3
 
/**
4
 
 * Captcha class using simple sums and the math renderer
5
 
 * Not brilliant, but enough to dissuade casual spam bots
6
 
 *
7
 
 * @file
8
 
 * @ingroup Extensions
9
 
 * @author Rob Church <robchur@gmail.com>
10
 
 * @copyright © 2006 Rob Church
11
 
 * @licence GNU General Public Licence 2.0
12
 
 */
13
 
 
14
 
if ( !defined( 'MEDIAWIKI' ) ) {
15
 
        exit;
16
 
}
17
 
 
18
 
require_once dirname( __FILE__ ) . '/ConfirmEdit.php';
19
 
$wgCaptchaClass = 'MathCaptcha';
20
 
 
21
 
$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php';