No problem.
In ./pages/register.php, replace:
- Code: Select all
if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) {
with
- Code: Select all
if ($solvemedia_response->is_valid) {
Also, don't forget to include this line of code as according to their specifications in ./pages/register.php:
- Code: Select all
require_once("solvemedialib.php");
$privkey="your_private_key";
$hashkey="your_hash_key";
$solvemedia_response = solvemedia_check_answer($privkey,
$_SERVER["REMOTE_ADDR"],
$_POST["adcopy_challenge"],
$_POST["adcopy_response"],
$hashkey);
It is recommend to place that code anywhere after:
- Code: Select all
require_once("./config.php");
if(in_array($language, $LANGUAGE_LIST)) {
include('./lang/'.$language.'.php');
} else {
include('./lang/'.$LANGUAGE_LIST[0].'.php');
}
Finally, find in ./styles/Indigo/register.php:
- Code: Select all
<img src="CaptchaSecurityImages.php?width=100&height=40&characters=5" /><br /><input id="security_code" name="security_code" type="text" />
Replace with:
- Code: Select all
<?php echo solvemedia_get_html("your_challenge_key"); //outputs the widget ?>
Optional: You can remove the following code which appears twice in ./pages/register.php:
- Code: Select all
unset($_SESSION['security_code']);
That in theory should work.