Topic: SMF -> PunBB conversion, regarding changing the user password hashing.
I have a SMF based forum and I need to convert all the stuff. I was just wondering what gets modified in account creation besides the users table.
I also need to register accounts via a mysql query. I just need to run a query with the username, password and email for that, right?
What I used so far. I just need to change punbb's password checking method to match smf's, anyone know where I could find the one in punbb to change it?
INSERT INTO users(id, username, password, salt, registered, registration_ip, last_visit, email)
SELECT id_member, member_name, passwd, password_salt, date_registered, member_ip, last_login, email_address
FROM `smf_members`
Edit: I think it would be something like this in login.php
sha1(strtolower($form_username).($form_password));
Edit2: Replacing forum_hash with this works for the one user. How do I get the current active username? I tried " $forum_user['username']" I'd prefer not having to go back through and change all method calls to pass the username rather than the salt.
function forum_hash($str, $salt)
{
$test = 'Advocatus';
return sha1(strtolower($test).$str);
}