SMF Support > Converting to SMF
Zorum Converter (beta)
Grudge:
Attached to this post is a beta version of a converter to convert all zorum members/boards/topics and messages to SMF. Please feedback any issues you may have with it!
Note, as Zorum uses a different password system to SMF you need to add these lines to LogInOut.php, otherwise all users need to request a new password:
Replace:
--- Code: --- if ($user_settings['passwd'] == crypt($_REQUEST['passwrd'], substr($_REQUEST['passwrd'], 0, 2)) || $user_settings['passwd'] == md5($_REQUEST['passwrd']))
--- End code ---
With:
--- Code: --- $request = db_query("SELECT PASSWORD('$_REQUEST[passwrd]')");
list ($zorum_password) = mysql_fetch_row($request);
mysql_free_result($request);
if ($user_settings['passwd'] == $zorum_password)
{
updateMemberData($user_settings['ID_MEMBER'], array('passwd' => '\'' . $md5_passwrd . '\''));
$user_settings['passwd'] = $md5_passwrd;
}
elseif ($user_settings['passwd'] == crypt($_REQUEST['passwrd'], substr($_REQUEST['passwrd'], 0, 2)) || $user_settings['passwd'] == md5($_REQUEST['passwrd']))
--- End code ---
Regards,
Grudge
Grudge:
This got downloaded, did anyone actually test to see if it worked?!
[Unknown]:
You probably want...
SELECT /*!41000 OLD_PASSWORD('$_REQUEST[passwrd]'), */PASSWORD('$_REQUEST[passwrd]')
-[Unknown]
Onsite:
Sorry Grudge,
I never saw the post, and I originally requested the converter.
I'll give it a go in the next day or so.
Onsite:
Well it worked for all the topics and posts, but none of the members were converted.
Navigation
[0] Message Index
[#] Next page
Go to full version