Log in

View Full Version : vbulletin DB


necksys
05-30-2005, 04:48 AM
Greetings.
I have script written on language PHP, but it is necessary to me that he used one database with vbulletin. In vbulletin the password to be stored approximately in such kind:
md5 (md5 ('password')),
I have written the following function, but it does not work:


function check_extern_pass($chatpwd, $forumpwd)
{
if (sl(md5(md5($chatpwd)))==sl($forumpwd)) return 1;

return 0;
}


Please, tell as correctly to correct this function that my script could take the password from a database vbulletin.

I very much would be grateful to you.
Thanks.

ps. sorry for my bad English :speechless:

Marco van Herwaarden
05-30-2005, 08:35 AM
What does the 'sl' function do?

necksys
05-30-2005, 02:14 PM
This function translates string argument in the bottom register

Andreas
05-30-2005, 02:21 PM
1) I don't understand what sl() does do
2) The value of column password in vB table user is md5(md5('password') . $salt), where $salt is the value of column salt for this record. (FAQ)

Colin F
05-30-2005, 05:05 PM
if you're setting cookies, the password as Kirby wrote it is md5()'d with the license number:

md5(md5_and_salted_pass . Licensenumber)

necksys
06-11-2005, 05:09 PM
The value of column password in vB table user is md5(md5('password') . $salt), where $salt is the value of column salt for this record. (FAQ)

Yes, thanks, it works.:)
But I have faced one more problem:

It's necessary for me, that additional fields of a database which contain in the table xxx_userfield, were kept in the general table of users - xxx_user. as in a foreign script it's impossible to use at once two tables of a database. I would be very grateful to you if have prompted me as it can be made.

Thanks.