MySQL to authorize an user from IPBoard account

koodra

New Member
Ive recently get IPBoard board software for my gaming community, I converted it from SMF.When I used smf, I used a system to authorize players to register in my game servers, this script called a php script wich made a hash (sha1) of the password the player inputted in the game and sended it back to the script running in the game. Then I checked if the player was registered or not in the forum before letting him play. Well, IPBoard uses a different hash:\[code\]$hash = md5( md5( $salt ) . md5( $password ) );\[/code\]Where:\[code\]$hash is the value stored in the database column members_pass_hash.$salt is the value stored in the database column members_pass_salt.$password is the plaintext password.\[/code\]What I am trying is to make a php script that will return to the script in the game the correct hash, and I will compare it later from the game into the database. This is my code:\[code\] <?phpinclude("mta_sdk.php");$input = mta::getInput(); // Configuraci
 
Back
Top