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
This commit is contained in:
Jeremy Shipman 2007-07-29 23:01:32 +00:00
parent 1fb1cfa978
commit 7d2f612ac8
1 changed files with 5 additions and 3 deletions

View File

@ -39,9 +39,10 @@ class PageCommentInterface extends ViewableData {
$fields->push(new TextField("Math","Spam protection question: ".MathSpamProtection::getMathQuestion())); $fields->push(new TextField("Math","Spam protection question: ".MathSpamProtection::getMathQuestion()));
} }
if(CaptchaSpamProtection::isEnabled()){ /*//TODO
if(CaptchaSpamProtection::isEnabled()){
$fields->push(new TextField("Captcha",CaptchaSpamProtection::getImage()."<br /><br />Please copy down the text from the image above")); $fields->push(new TextField("Captcha",CaptchaSpamProtection::getImage()."<br /><br />Please copy down the text from the image above"));
} } */
$fields->push(new TextareaField("Comment", "Comments")); $fields->push(new TextareaField("Comment", "Comments"));
@ -120,12 +121,13 @@ class PageCommentInterface_Form extends Form {
} }
} }
/*
if(CaptchaSpamProtection::isEnabled()){ if(CaptchaSpamProtection::isEnabled()){
if(!CaptchaSpamProtection::correctAnswer($data['Captcha'])){ if(!CaptchaSpamProtection::correctAnswer($data['Captcha'])){
echo "<div class='BlogError'><p>You got the captcha protection question wrong.</p></div>"; echo "<div class='BlogError'><p>You got the captcha protection question wrong.</p></div>";
return; return;
} }
} }*/
Cookie::set("PageCommentInterface_Name", $data['Name']); Cookie::set("PageCommentInterface_Name", $data['Name']);