From c26af931e24e3da1bde3ee3530204ee7697be421 Mon Sep 17 00:00:00 2001 From: Krystian Rzepa Date: Fri, 28 Dec 2018 19:57:43 +0000 Subject: [PATCH] Zaktualizuj 'index.php' --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]'; - - ?> + ?>
@@ -100,7 +100,7 @@ if ($_SESSION['zalogowany']==false): ?> Login:
-Hasło:
+Hasło: