2010-06-14, 07:46 PM
Hello!
i want to make a bridge to phpsge
what is phpsge? php strategy game engine is an opensource cms, and whit it you can create your strategy browsergame.
you can find it on source forge: https://sourceforge.net/projects/phpstrategygame/
phpsge use the md5() hasch for passwords.
i don't now how mybb hasch the password, can you help me?
i want to make a bridge to phpsge
what is phpsge? php strategy game engine is an opensource cms, and whit it you can create your strategy browsergame.
you can find it on source forge: https://sourceforge.net/projects/phpstrategygame/
phpsge use the md5() hasch for passwords.
function login($username,$password) {
session_start();
$q = "SELECT * FROM ".TB_PREFIX."users where username = '$username'";
$result = mysql_query($q);
$dbarray = mysql_fetch_array($result);
if($dbarray['password'] == md5($password)) {
$_SESSION['nik']=$dbarray['username'];
$_SESSION['log']="y";
$_SESSION['id']=$dbarray['id'];
header ("Location: main.php");
}
else {
return false;
}
i don't now how mybb hasch the password, can you help me?