Zaktualizuj 'index.php'
This commit is contained in:
parent
a0f8a89ae7
commit
dd1b7297a2
@ -36,6 +36,7 @@ if (isset($_POST['loguj']))
|
|||||||
{
|
{
|
||||||
$login = filter($_POST['login']);
|
$login = filter($_POST['login']);
|
||||||
$password = filter($_POST['password']);
|
$password = filter($_POST['password']);
|
||||||
|
$password = md5($password);
|
||||||
if (mysql_num_rows(mysql_query("SELECT * FROM `users` WHERE `user_login`='$login' && `user_pass`='$password' && `aktywne`='1'")) > 0)
|
if (mysql_num_rows(mysql_query("SELECT * FROM `users` WHERE `user_login`='$login' && `user_pass`='$password' && `aktywne`='1'")) > 0)
|
||||||
{
|
{
|
||||||
$_SESSION['zalogowany'] = true;
|
$_SESSION['zalogowany'] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user