i can't use this for lavalair.net because md5 can't be reversed thus if i wanna use sha1 all the passwords data will be lost.
so are you saying that the only reason sha1 isnt used in your script is because nobody would be able to login (you dont have the sha1 equivalent of their password) so their usernames would be lost?
lol thats not much of an excuse ... that would be fairly easy to do -- i mean, just use the this process in the login.php file and it should work okay .. leave it in for a month or two and the users who have logged in get their password security .. if someone doesnt login during that time, they deserve to have their account deleted blum.gif (or you could leave it in permanently lol)
CODE
|--| check if username exists, if true[username exists], check if pass (after sha1 encryption) exists in the database,
|--| --| if true[sha1 pass is present], continue login normally
|--| --| elseif [sha1 pass is not present], check if the md5 encrypted password exists and continue login normally, either silently updating the db or ask the user to re-input their password telling them that it is to improve security etc further details can be found at blah blah ..
|--| --| else[neither password is present with any encryption type], it is an incorrect password
|--| else[the username doesn't exist], the username does not exist and the appropriate error message(s) can be dispayed