Post new topic Reply to topic  [ 2 posts ] 
Change CAPTCHA script 
Author Message

Joined: Sat Feb 27, 2010 1:36 pm
Posts: 1
 Change CAPTCHA script
Hi - how easy would it be to change the CAPTCHA script that's used? We find it quite difficult to read ourselves and would like to change it for a different one.

Which files would we find the code in?

Cheers


Mon Mar 08, 2010 8:22 am
Profile
Site Admin
User avatar

Joined: Tue Dec 29, 2009 11:39 am
Posts: 11
Post Re: Change CAPTCHA script
Hi,

The CAPTCHA script sits in /includes/kcaptcha/

The actual code that processes the CAPTCHA is in submit.php

Line 39 is the validation:
Code:
if ($settings['link_captcha'] && $_SESSION['captcha_keystring'] !== $_POST['captcha']) $err = $lang['error_captcha'];


and line 54 assigns the path to the image for the template:
Code:
if ($settings['link_captcha']) $smarty->assign('captcha_image', 'includes/kcaptcha/?' . session_name() . '=' . session_id());


Hope that helps :)

_________________
XEWeb
http://www.xeweb.net

GoLinks Script
http://www.golinks-script.com


Mon Mar 08, 2010 8:58 am
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forum/DivisionCore.