lJesterl Posted July 17, 2007 Share Posted July 17, 2007 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] Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 17, 2007 Share Posted July 17, 2007 $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']??? Quote Link to comment Share on other sites More sharing options...
lJesterl Posted July 17, 2007 Author Share Posted July 17, 2007 I don't really understand vbulletin all that well so im not sure. I know with phpbb you simply use $curpass instead of $password, curpass being the password before md5 + salt Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.