Ah, I see it. So I believe I need to do something like:
Code:
if (
$bbuserinfo['password'] != iif($password AND !$md5password, md5(md5($password) . $bbuserinfo['salt']), '') AND
$bbuserinfo['password'] != md5($md5password . $bbuserinfo['salt']) AND
$bbuserinfo['password'] != iif($md5password_utf, md5($md5password_utf . $bbuserinfo['salt']), '')
// Add a line here:
// AND $bbuserinfo['password'] != (this bit I haven't figured out yet)
)
{
return false;
}
... where I have to figure out how to check for the old perl
crypt($password,"aa") password. If anyone would like to tell me what I should put in that line, I promise to be your best friend. Otherwise I'm off to learn how PHP deals with encryption.