01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
$ sudo yum install python-imaging
$ sudo python captcha.py --font=/usr/share/fonts/dejavu/DejaVuSans.ttf --count=200 --wordlist=words --key=xxxxxxxxx --output=captcha
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
require_once("$IP/extensions/ConfirmEdit/FancyCaptcha.php");
$wgCaptchaClass = 'FancyCaptcha';
$wgCaptchaDirectory = "$IP/extensions/ConfirmEdit/captcha";
$wgCaptchaDirectoryLevels = 0;
$wgCaptchaSecret = "xxxxxxxxx";