Username Password

Lost Password
Navigation
Home
Articles
Forum
Web Links
Photo Gallery
Videos
MP3 Album
Free eBook
Software
FAQ
Search
Contact Us
Last Seen Users
fardan6 2 weeks
agungnguga 6 weeks
rizalufikri 6 weeks
faisal_malms... 7 weeks
Administrator 7 weeks
irfan4313 weeks
vigo8715 weeks
k1t1n616 weeks
zee18 weeks
kambing hitam18 weeks
Users Online
Guests Online: 21

Members Online: 0

Total Members: 21,130
Newest Member: aguspc1
Popular Downloads
1000 Hacker Tutorial... 65535
Radmin 3.1 12586
SQL Injection Expose... 12366
Cara Mudah Membuat W... 11426
Free eBook Cara muda... 11266
1000 Photoshop Brushes 10805
Avenged Sevenfold-Ni... 10720
The Art of Manipulat... 10408
Ubuntu Is My Favouri... 10088
Blink 182-Neighborho... 10044
Sponsor
Hosted By Dracoola
Tracklink
Locations of visitors to this page
RSS - Feeds
RSS - News
RSS - Articles
RSS - Forum
RSS - Downloads
RSS - Photo Gallery
RSS - Weblinks
Patch Re-captcha PHP-Fusion 7 For Defending Spambot Attack
PHP-Fusion

This is Step By Step to Patch Recaptcha into your PHP-Fusion 7 Comment Form.

1. Get Public & Private Key from http://www.google.com/recaptcha

2. Download the Recaptcha library from here extract recaptchalib.php & upload to directory www[dot]yoursite[dot]com/includes/

3. edit file "comments_include.php" from www[dot]yoursite[dot]com/includes/ directory

4. Find this line (line 39)

if (iMEMBER) {
$comment_name = $userdata['user_id'];


Add this code after it

//Update By EVA-00 For patch Recaptcha
//Start Here
require_once BASEDIR."includes/recaptchalib.php";
$privatekey = "inpur-your-private-key"; //you got this key from the signup page
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
{redirect($link);}
}
//End Here


5. the last one, find this line ( line 165)

echo display_bbcodes("360px", "comment_message");

Add this code after it

//Update By EVA-00 For patch Recaptcha
//Start Here
echo "<br />".$locale['global_158']."<br /><br />";
require_once BASEDIR."includes/recaptchalib.php";
$publickey = "Input-Your-Public-key"; // you got this key from the signup page
echo recaptcha_get_html($publickey);
//End Here


Done, you can download full script here and modify it as you want.

Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 100% [2 Votes]
Very Good Very Good 0% [No Votes]
Good Good 0% [No Votes]
Average Average 0% [No Votes]
Poor Poor 0% [No Votes]
Follow Us
Try Our Web Mobile
Becoming a Fan
Follow Us @xybrain
Our Web Mail
Paper
Latest Articles
Membuat/ Mengubah So...
Meningkatkan Volume ...
Memaksimalkan Fungsi...
Multiple Booting Win...
Instal Metasploit 3 ...
Shoutbox
You must login to post a message.

20/03/2025 15:18
Salam bro huxni, dan member yang lain...share apalagi yang enak ya?? Smile

19/04/2024 00:31
salam bro faisal_malmsteen long time no online Smile

18/03/2024 09:45
Dulu kalo lagi bulan puasa paling enak maennya di xyb, salam u/ Eva dan member lain

31/12/2023 14:32
udah sepi :0

25/11/2023 01:01
udah 1 thn lebih nulis disini. para users pada sibuk semua

Copyright © 2007-2016