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
https://forums.phpfreaks.com/topic/60450-md5vbulletin-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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