Thread subject: PHP-Fusion :: Where is captcha code for comments?

Posted by matr1x on 20-10-2009 16:33
#1

Just a question where to find (which file) the code for captcha (to replace with re-captcha) concerning site comments (custom pages, articles, news etc.)?
For contact and register was easy, just replace code in contact.php and register.php.

Posted by PolarFox on 20-10-2009 18:24
#2

/includes/comments_include.php
is that what you want?

Posted by matr1x on 21-10-2009 10:07
#3

I think this might be it. I will try to work on this file later. Thanks PolarFox B)

Posted by slaughter on 12-11-2009 11:45
#4

Code
         } elseif ($settings['guestposts'] == "1") {
            $comment_name = trim(stripinput($_POST['comment_name']));
            $comment_name = preg_replace("(^[0-9]*)", "", $comment_name);
            if (isnum($comment_name)) { $comment_name = ""; }
            include_once INCLUDES."securimage/securimage.php";
            $securimage = new Securimage();
            if (!isset($_POST['com_captcha_code']) || $securimage->check($_POST['com_captcha_code']) == false) { redirect($link); }
         }



Line 41-48.