14.01.2014, 01:16
Implementa nesse cуdigo pra min? Huheuehue
PHP код:
$result = mysql_query("SELECT `usuario`,`senha`,`ultimaskin` FROM `usuarios` WHERE usuario='".$_POST['usuario']."'");
while($data = mysql_fetch_array($result)) // Make $data an array of the query you just executed.
{
$senha = $data['senha'];
$usuario = $data['usuario'];
$ultimaskin = $data['ultimaskin'];
}
function udb_hash($pass)
{
$length = strlen($pass);
$s1 = 1;
$s2 = 0;
for($i=0; $i<$length; $i++)
{
$s1 = ($s1 + ord($pass[$i])) % 65521;
$s2 = ($s2 + $s1) % 65521;
}
$wy= ($s2 << 16) + $s1;
return $wy;
}
if($senha == $_POST['senha'])
{
$problema = false;
$_SESSION['logado'] = 1;
$_SESSION['usuario'] = $usuario;
$_SESSION['skin'] = $ultimaskin;
echo "<meta http-equiv='refresh' content='0; url=naoachou.php'>";
}