Zaktualizuj 'index.php'

This commit is contained in:
Krystian Rzepa 2019-01-01 14:38:27 +00:00
parent a0f8a89ae7
commit dd1b7297a2

View File

@ -36,6 +36,7 @@ if (isset($_POST['loguj']))
{
$login = filter($_POST['login']);
$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)
{
$_SESSION['zalogowany'] = true;