Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NEW: Anti Robot Registration Validation


Druide

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?

Link to comment
Share on other sites

  • 1 month later...
  • 5 weeks later...

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
Link to comment
Share on other sites

  • 3 months later...

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;
   }

Link to comment
Share on other sites

  • 2 years later...

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?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...