diff --git a/index.php b/index.php index f8c8937..204a924 100644 --- a/index.php +++ b/index.php @@ -45,7 +45,8 @@ if (isset($_GET['wyloguj'])==1) if (isset($_POST['loguj'])) { - + $login = filter($_POST['login']); + $password = filter($_POST['password']); if (mysql_num_rows(mysql_query("SELECT * FROM `users` WHERE `user_login`='$login' && `user_pass`='$password' && `aktywne`='1'")) > 0) { $_SESSION['zalogowany'] = true; @@ -57,8 +58,7 @@ if (isset($_POST['loguj'])) if ($_SESSION['zalogowany']==true) { echo "Zalogowano jako ".$_SESSION['login'].""; echo ' [Wyloguj]'; - - ?> + ?>