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] Link to comment https://forums.phpfreaks.com/topic/60450-md5vbulletin-help-please/ 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']??? Link to comment https://forums.phpfreaks.com/topic/60450-md5vbulletin-help-please/#findComment-300697 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 Link to comment https://forums.phpfreaks.com/topic/60450-md5vbulletin-help-please/#findComment-300698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.