php - How to login using OSCommerce customers database? -


i have website , i'm using oscommerce shoppig cart. need make user login site using oscommerce email , password.

i know there function

tep_validate_password($plain, $encrypted) 

but when tried this:

    require('market/catalog/includes/functions/password_funcs.php');  $x = tep_validate_password('0123272502','$p$dhxb6skb3xydesvygfvbpnq62urxpb.');  if($x == true){echo 'true';} else {echo 'false';} 

it returns nothing @ all.

am using wrong?

your encrypted password oscommerce 2.2 should 19f1a88bdf871623e92cd12d29718d01:83 not $p$dhxb6skb3xydesvygfvbpnq62urxpb.

if using oscommerce 2.3.x u have define dir_ws_classes , used inside included function.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -