The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello, i'm working on a system where a player in an online game (counterstrike) can link they're online game account to their forum account.
I can do everything else but the linking PHP code. What I want to do is make an external PHP page that receives the queries from the game server. It receives the players input, their forum user name and password. In the external PHP page, I want to use the user name and password given and check it against the MySQL tables for vBulletin. I tried MD5 hashing the raw password from the query, but it is different from the MD5 in the database. Is there some other type of hashing that vBulletin uses? A snippit of code would be great! This is what I have now, And I always get 0 rows returned because the passwords are differet.... (I know I am entering the correct password ![]() PHP Code:
|
#2
|
|||
|
|||
![]()
You might want to remove your database info from the code
![]() As for your error check this line of code. PHP Code:
|
#3
|
|||
|
|||
![]()
Oops, i saw that but that is not the problem (That probally happened when i was rewriting the variables for that example) i think it's the way the PHP MD5's the raw password, when I do it manually, the Hashes are not the same. Is there some sort of algorithm?
|
#4
|
|||
|
|||
![]()
Oh,
vBulletin uses a salt value on top of their password. I think passwords are encrypted like this (Don't quote me on this though). md5($password.$salt); The salt value is stored in the user table. |
#5
|
|||
|
|||
![]() Quote:
Does anyone else happen to know? It seems like vBulletin uses a Javascript code to hash it's passwords, but the code is very jumbled up and hard to read. I could be wrong though. |
#6
|
|||
|
|||
![]()
that's how it's done...
Line 144 functions_login.php Code:
md5($md5password . $vbulletin->userinfo['salt']) |
#7
|
||||
|
||||
![]()
Try this (untested) ;
PHP Code:
|
#8
|
|||
|
|||
![]()
THANK YOU! This worked! Thank you for your help everyone!
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|