From 2cd6ec0601b49469a094aacbd2ce9b0d72385689 Mon Sep 17 00:00:00 2001 From: Krystian Rzepa Date: Tue, 27 Nov 2018 17:56:59 +0000 Subject: [PATCH] Zaktualizuj 'index.php' --- index.php | 75 ++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 60 insertions(+), 15 deletions(-) diff --git a/index.php b/index.php index 2e4678d..0512bf3 100644 --- a/index.php +++ b/index.php @@ -1,15 +1,60 @@ - + 0) + { + $_SESSION['zalogowany'] = true; + $_SESSION['login'] = $login; + } + else { echo "Wpisano zle dane lub konto nieaktywne."; } +} + +if ($_SESSION['zalogowany']==true) +{ + echo "Zalogowano jako ".$_SESSION['login'].""; echo ' [Wyloguj]'; + +} + +if ($_SESSION['zalogowany']==false): ?> + +
+Login:
+Hasło:
+ +
+ +--------------------------------------------------- + +
+ +
+ + \ No newline at end of file