From 7d2f612ac81bfc7b915c1d22f9e3fc0c39ec3b91 Mon Sep 17 00:00:00 2001 From: Jeremy Shipman Date: Sun, 29 Jul 2007 23:01:32 +0000 Subject: [PATCH] Captcha hasn't been comitted. So i commented out that stuff. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39380 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/sitefeatures/PageCommentInterface.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/sitefeatures/PageCommentInterface.php b/code/sitefeatures/PageCommentInterface.php index 5ebbb20c..4e4f04ba 100755 --- a/code/sitefeatures/PageCommentInterface.php +++ b/code/sitefeatures/PageCommentInterface.php @@ -39,9 +39,10 @@ class PageCommentInterface extends ViewableData { $fields->push(new TextField("Math","Spam protection question: ".MathSpamProtection::getMathQuestion())); } - if(CaptchaSpamProtection::isEnabled()){ + /*//TODO + if(CaptchaSpamProtection::isEnabled()){ $fields->push(new TextField("Captcha",CaptchaSpamProtection::getImage()."

Please copy down the text from the image above")); - } + } */ $fields->push(new TextareaField("Comment", "Comments")); @@ -120,12 +121,13 @@ class PageCommentInterface_Form extends Form { } } + /* if(CaptchaSpamProtection::isEnabled()){ if(!CaptchaSpamProtection::correctAnswer($data['Captcha'])){ echo "

You got the captcha protection question wrong.

"; return; } - } + }*/ Cookie::set("PageCommentInterface_Name", $data['Name']);