[pmwiki-users] Turing Test for pmwiki
Marcus
prima at wordit.com
Mon Jul 14 22:44:59 CDT 2008
On Mon, Jul 14, 2008 at 3:03 PM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> The page variable to display the challenge is {$Captcha}
I still have the same problem. {$Captcha} displays the image
containing the response, not the challenge. Here you can see on this
page:
http://tinytuxbox.co.uk/newwiki/index.php?n=Main.Lingcaptcha
Here is the code:
cookbook/lingcaptcha.php (this is included via config.php)
<?php if (!defined('PmWiki')) exit();
$RecipeInfo['LingCaptcha']['Version'] = '2007-07-14';
$CaptchasList = array(
'What day comes after Monday?' => 'Tuesday',
'What color is a green apple?' => 'green',
'What is larger, an elephant or an ant?' => 'elephant',
'What shape is a circle? It is ro...' => 'round',
);
$CaptchaChallenge = array_rand($CaptchasList);
$CaptchaValue = $CaptchasList[$CaptchaChallenge];
include_once("$FarmD/cookbook/captcha.php");
------------------------------
captcha.php is unchanged from the original.
The form markup is displayed and the version number below it.
Thanks,
Marcus
More information about the pmwiki-users
mailing list