Jump to content
Sign in to follow this  
Druide

NEW: Anti Robot Registration Validation

Recommended Posts

Hi I am using osC2.3.1

and install this add on,

the SQL file 3.1 doesn't work, got error message,

import 3.0 but still need to mannually modify that file

 

I finally make it works

 

but I just wonder, when client forgot password, and the validation code show up,

there is a button there, said "Re-arrange Code",

it doesn't seems renew, when you click on it, it just re-arrange the character position, so is this button fuction necessary?

 

Can I have "renew" button instead but how can I modify code? I am newbie so have no idea about coding at all.

(something like hotmail got refresh | renew the image)

 

Can someone please help?

Share this post


Link to post
Share on other sites

Can anyone confirm with me that this contribution works with OSC 2.3?

 

Have a look here for an alternative method http://forums.oscommerce.com/topic/318221-osc-recaptcha/page__view__findpost__p__1643730


REMEMBER BACKUP, BACKUP AND BACKUP

Get the latest Responsive osCommerce CE (community edition) here

It's very easy to over complicate what are simple things in life

Share this post


Link to post
Share on other sites

Hi all.

Could anyone help with fix error in account_validation.php (many errors in log)

PHP Notice: Undefined variable: rangeList in /***/includes/functions/account_validation.php on line 47, referer: http://***/contact_us.php

PHP Notice: Undefined offset: 36 in /***/includes/functions/account_validation.php on line 49, referer: http://***/contact_us.php

PHP Notice: Undefined variable: rangeList in /***/includes/functions/account_validation.php on line 47, referer: http://***/contact_us.php

PHP Notice: Undefined offset: 57 in /***/includes/functions/account_validation.php on line 49, referer: http://***/contact_us.php

???

Edited by kgtu5

Share this post


Link to post
Share on other sites

Hi all.

Could anyone help with fix error in account_validation.php (many errors in log)

 

???

 

Yes, you will need to replace the urand function in /includes/functions/account_validation.php (the entire function) with the following code:


function urand($min = NULL, $max = NULL){
       static $alreadyGenerated = array();
       $rangeList = array();
$full = $max + abs($min);
       $range = ($min || $max) ? ($max - $min) + 1 : NULL; 
       do{
           $randValue = ($range) ? rand($min, $max) : rand();
           $key = $randValue + $full;
           if(count($rangeList) == $range) unset($alreadyGenerated);
           if($range) $rangeList[$key] = $randValue;
       }while(isset($alreadyGenerated[$key]) && $alreadyGenerated[$key] == $randValue + $full);
       unset($rangeList);
       $alreadyGenerated[$key] = $randValue + $full;
return $randValue;
   }

Share this post


Link to post
Share on other sites

Hello,

 

I'm using 2.2 MS2 and I get this error:

 

PHP Notice: Constant already defined in /var/www.mysite/validation_png.php on line 28, referer:

mysite/contact_us.php

 

validation_png.php line 28:

define($configuration['cfgKey'], $configuration['cfgValue']);

 

Can anybody help?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×