Welcome Guest. Please Login or Register  


You are here: Index > Advanced Electron Forums > Development > Topic : reCAPTCHA

A2 Hosting

News:

Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

Thanks,
The AEF Team

1


Threaded Mode | Print  

 reCAPTCHA, Attempting to integrate (16 Replies, Read 43071 times)
IATIA
Group: Member
Post Group: Newbie
Posts: 7
Status:
I am attempting to integrate the google reCAPTCHA in AEF 1.0.9. I got as far as putting it in the registration page and verifying with google, but I do not where the AEF validation file is so I can get to it after google validation.

Help! Please! Thanks!
IP: --   

reCAPTCHA
VasiliyRS
Group: Support
Post Group: Working Member
Posts: 212
Status:
SAFAD has done reCAPTCHA intergration, i think he'll help you out as soon as he can.

-----------------------
For quick AEF help join our IRC channel :
http://anelectron.com/board/index.php?tid=6469
Contribute to AEF: https://github.com/AEFGroup/Advanced-Electron-Forum

Board Image
IP: --   

reCAPTCHA
IATIA
Group: Member
Post Group: Newbie
Posts: 7
Status:
Figured it out.  :xd: Clean and simple.

Just looking in the wrong spot.

Thanks

If anyone is interested, I will more than happy to post the mod.

Edited by IATIA : September 1, 2011, 6:14 am
IP: --   

reCAPTCHA
SAFAD
Group: Administrator
Post Group: Elite Member
Posts: 279
Status:
Hi,
Sorry it took me long time to come and reply to this.
I am glad you figured it all yourself, Congratulations !
Enjoy AEF more now !

-----------------------
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer
My Blog
IP: --   

reCAPTCHA
IATIA
Group: Member
Post Group: Newbie
Posts: 7
Status:
I was wondering if there is a way to time out the input of the registration validation.  This would eliminate the forwarding of the CAPTCHA to a human for decryption.

Thanks.
IP: --   

reCAPTCHA
SAFAD
Group: Administrator
Post Group: Elite Member
Posts: 279
Status:
CSRF protection is implemented in AEF 1.1, check our GitHUB repository -> main/csrf_protection.php for more informations !

-----------------------
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer
My Blog
IP: --   

reCAPTCHA
nexgenforum
Group: Member
Post Group: Working Newbie
Posts: 65
Status:
@IATIA  bro could u plz tell me how u integrate google recaptcha to your forum i want it too plz anyone have idea plz post here and pm me also  :nerd:



-----------------------
DOMAINS HOSTING SSL WEBSITES
All in one place with Affordable prices
IP: --   

reCAPTCHA
HIMALAYA
Group: Member
Post Group: Newbie
Posts: 16
Status:
i want to use recaptcha google? how do it?

-----------------------
Board Image
IP: --   

reCAPTCHA
IATIA
Group: Member
Post Group: Newbie
Posts: 7
Status:
Been busy. I will gather my notes and post the information in a day or two. It is pretty simple once figured out.
IP: --   

reCAPTCHA
IATIA
Group: Member
Post Group: Newbie
Posts: 7
Status:
You need 'recaptchalib.php' from Google and register with Google for your keys.

------------------------------------------------------------------------------ ------------------------

MAIN/REGISTER.PHP

///////Google reCAPTCHA//////////////////////////////

//Is secuirty code to be checked

if ($globals['sec_conf']) {

//Check the Security Confirmation Code

require_once('recaptchalib.php');
$privatekey = "X0X0X0X0X0X0X0X0X0X0"; // you get this from the signup page
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if (!$resp->is_valid) {
//What happens when the CAPTCHA was entered incorrectly
$error[] =  $resp->error;
}
}

///////END Google reCAPTCHA//////////////////////////////




MAIN/LOGIN.PHP

///////Google reCAPTCHA//////////////////////////////

//Is secuirty code to be checked

if($globals['fpass_sec_conf']){

//Check the Security Confirmation Code

require_once('recaptchalib.php');
$privatekey = "X0X0X0X0X0X0X0X0X0X0"; // you get this from the signup page
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {

//What happens when the CAPTCHA was entered incorrectly

$error[] =  $resp->error;
}

}

///////END Google reCAPTCHA//////////////////////////////




THEMES/DEFAULT/REGISTER_THEME.PHP

<!-- GOOGLE CAPTCHA -->

<tr>
<td class="ucpflc" align="center" colspan="2">

<?php
if ($globals['sec_conf']) {
require_once('recaptchalib.php');
$publickey = "X0X0X0X0X0X0X0X0X0X0"; // you get this from the signup page
echo recaptcha_get_html($publickey);
}?>

</td>
</tr>

<!-- END GOOGLE CAPTCHA -->
IP: --   

reCAPTCHA
HIMALAYA
Group: Member
Post Group: Newbie
Posts: 16
Status:
I've got Recaptcha google. place the file in which part? please help me...


-----------------------
Board Image
IP: --   

reCAPTCHA
IATIA
Group: Member
Post Group: Newbie
Posts: 7
Status:
There are three files that are modified. The name of the file is in caps and the first line of code is the original code. Just search for the first line and replace the routine with the new code.

For instance.

MAIN/REGISTER.PHP <-- ORIGINAL CODE

          //Is secuirty code to be checked <-- SEARCH FOR THIS
            if ($globals['sec_conf'] && (extension_loaded('gd') || extension_loaded('GD'))) {

                //Check the Security Confirmation Code
                if (!(isset($_POST['sec_conf'])) || strlen(trim($_POST['sec_conf'])) < 1) {

                    $error[] = $l['no_security_code'];
                } else {


                    $sec_conf = inputsec(strtolower(htmlizer(trim($_POST['sec_conf']))));

                    //////////////////////////////////
                    // This is a very important thing
                    // to check for automated registrations
                    //////////////////////////////////

                    if ($sec_conf != $validation_code) {

                        $error[] = $l['wrong_security_code'];
                    }
                }
            }


REPLACE THIS CODE ROUTINE WITH THE FOLOWING

///////Google reCAPTCHA//////////////////////////////

//Is secuirty code to be checked <-- THIS IS THE LINE TO SEARCH FOR

if ($globals['sec_conf']) {

//Check the Security Confirmation Code

require_once('recaptchalib.php');
$privatekey = "X0X0X0X0X0X0X0X0X0X0"; // you get this from the signup page
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if (!$resp->is_valid) {
//What happens when the CAPTCHA was entered incorrectly
$error[] =  $resp->error;
}
}

///////END Google reCAPTCHA//////////////////////////////



Edited by IATIA : May 8, 2012, 4:09 am
IP: --   

reCAPTCHA
HIMALAYA
Group: Member
Post Group: Newbie
Posts: 16
Status:
then the next second .. how to do?

how to put login.php and register_theme.php?



Edited by HIMALAYA : May 8, 2012, 5:18 am

-----------------------
Board Image
IP: --   

reCAPTCHA
HIMALAYA
Group: Member
Post Group: Newbie
Posts: 16
Status:
how it goes? anyone can help ...? please help me?

-----------------------
Board Image
IP: --   

reCAPTCHA
nexgenforum
Group: Member
Post Group: Working Newbie
Posts: 65
Status:
@IATIA  i understood all the stuff now plz tell me where to put captcha lib file to the main folder or forum root ? Btw thanks very much

R U a coder

-----------------------
DOMAINS HOSTING SSL WEBSITES
All in one place with Affordable prices
IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Members who read this topic
, oOAeroOo, sagrma, warminster, Buster, VasiliyRS, SAFAD, cristrixy, cefram, haylau, CruzBishop, IATIA, Jimi, culbertculver2, Strange, gagews, KnownSyntax, Lorataco, hijohnnikon, Knele, Sammael, Fuadshifu, Kim_Smith, nexgenforum, scamsurvivors, HIMALAYA, idrishaikh, tunisiashare, quality, yogeshvashist98, gamebits, TasosP, ☣Palmer, ezinna, julestar, blakker, EJMcGinley


Users viewing this topic
1 guests, 0 users.

A2 Hosting

All times are GMT. The time now is August 25, 2019, 8:44 pm.

  Powered By AEF 1.1.0 Preview © 2007-2011 AEF Group. All rights reservedQueries: 13  |  Page Created In:0.116