Jump to content

md5/vbulletin help please :)


lJesterl

Recommended Posts

I hope someone here can help me because I simply can't figure it out. Yes I know md5 is safer, more secure etc, but im trying to get the data to be also inserted into another table so i can use it with another script that doesnt have md5 encryption for the passwords. I have attached the file from vbulletin called register.php Here is the code im using

 


$query=mysql_query("insert into users (alias,pass,email,joindate,ipaddress) values('$username','$currentpassword','$email','$dater','$ipr')");


 

Everything works fine and everything is set into users aswell as vb_users(the vbulleting users table) the only problem is I don't know what to put for $currentpassword I have tried every possible combination I can think of and it doesnt work. The only thing that sorta works is this.

 


$currentpassword = htmlspecialchars_uni($vbulletin->GPC['password_md5']);

 

Only problem is the password is encrypted. I have tried to simply do

 


$currentpassword = htmlspecialchars_uni($vbulletin->GPC['password']);

 

but the password field remains blank. Any suggestions?

 

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

$currentpassword = htmlspecialchars_uni($vbulletin->GPC['password_md5']);

that is class generated

ithink this is

GPC['password_md5'] from the class but where is the value for that

do you have this inside your class like

$_POST['password_md5']???

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.