07.06.2014, 22:11
Okay so Im getting a problem, I have whirlpool hash on my script and I want to continue using it, but I made a script where I can register without going ingame, it works fine but the hash is not the same as the SA:MP Whirlpool i registered the top account ingame
And this bottom one in the script >
I did the same password but they not the same when hashed...
PHP CODE>
And this bottom one in the script >
I did the same password but they not the same when hashed...
PHP CODE>
PHP код:
<?
require_once("config.php");
$user = mysql_real_escape_string($_POST['user']);
$pass = Whirlpool(mysql_real_escape_string($_POST['lastname']));
$admin = mysql_real_escape_string($_POST['Admin']);
$sql="INSERT INTO players (user, pass, Admin)
VALUES ('$user', '$pass', '$admin')";
mysql_query($sql);
function Whirlpool($str)
{
return strtoupper(hash('whirlpool', $str));
}
?>