Quale
12-28-2009, 12:38 AM
I found a bunch of md5 stuff in functions_login.php
Which one of those actually encrypt the password?
can't make sense of it :confused: (my php isn't that great)
This is the code:
<?PHP
include("sql.php");
$user = $_GET['user'];
$pass= $_GET['pass'];
$id= $_GET['id'];
$check_info = @mysql_query("SELECT * FROM `user` WHERE `username` = '$user'");
$user_info = mysql_fetch_assoc($check_info);
$check_info = @mysql_query("SELECT * FROM `user` WHERE `membergroupids` = '$id'");
$user_info = mysql_fetch_assoc($check_info);
if($user == $user_info['username'] && $pass == $user_info['password'] && $id == $user_info['membergroupids'])
{
echo 'true';
}
else
{
echo 'false';
}
?>
Where should I put the MD5 and SALT encrypt stuff? :(
Please help me <3
Which one of those actually encrypt the password?
can't make sense of it :confused: (my php isn't that great)
This is the code:
<?PHP
include("sql.php");
$user = $_GET['user'];
$pass= $_GET['pass'];
$id= $_GET['id'];
$check_info = @mysql_query("SELECT * FROM `user` WHERE `username` = '$user'");
$user_info = mysql_fetch_assoc($check_info);
$check_info = @mysql_query("SELECT * FROM `user` WHERE `membergroupids` = '$id'");
$user_info = mysql_fetch_assoc($check_info);
if($user == $user_info['username'] && $pass == $user_info['password'] && $id == $user_info['membergroupids'])
{
echo 'true';
}
else
{
echo 'false';
}
?>
Where should I put the MD5 and SALT encrypt stuff? :(
Please help me <3