~ubuntu-branches/ubuntu/saucy/mediawiki-extensions/saucy

« back to all changes in this revision

Viewing changes to include/MathCaptcha.php

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-05-04 15:13:35 UTC
  • mfrom: (0.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100504151335-54qeucg3ec108q28
Tags: 2.2
* Added Replaces:/Conflicts: to allow a proper upgrade.
Closes: #580066
* Fixed package descriptions.
Closes: #579667
* Patched mediawiki-extensions-fckeditor to make it work with
  php 5.3. The fix may not be perfect but at least it work.
  Not closing the bug (#579822) for now..

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
 
 * @addtogroup Extensions
8
 
 * @author Rob Church <robchur@gmail.com>
9
 
 * @copyright © 2006 Rob Church
10
 
 * @licence GNU General Public Licence 2.0
11
 
 */
12
 
 
13
 
if( !defined( 'MEDIAWIKI' ) ) {
14
 
        echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
15
 
        die( 1 );
16
 
}
17
 
$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php';
18