From b68879798a828e3285d8c5a5a9ffaadc38160c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=A0krab=C3=A1nek?= Date: Thu, 23 Feb 2023 10:29:08 +0100 Subject: [PATCH] add login system part 1 --- login/auth.php | 29 +++++++++++++++++++++++++++++ login/home.php | 25 +++++++++++++++++++++++++ login/index.php | 39 +++++++++++++++++++++++++++++++++++++++ login/logout.php | 6 ++++++ 4 files changed, 99 insertions(+) create mode 100644 login/auth.php create mode 100644 login/home.php create mode 100644 login/index.php create mode 100644 login/logout.php diff --git a/login/auth.php b/login/auth.php new file mode 100644 index 0000000..a0a6f44 --- /dev/null +++ b/login/auth.php @@ -0,0 +1,29 @@ + \ No newline at end of file diff --git a/login/home.php b/login/home.php new file mode 100644 index 0000000..c1aaad0 --- /dev/null +++ b/login/home.php @@ -0,0 +1,25 @@ + + + + + + + + Document + + +

+ +

+ + LOGOUT + + \ No newline at end of file diff --git a/login/index.php b/login/index.php new file mode 100644 index 0000000..f2b75f9 --- /dev/null +++ b/login/index.php @@ -0,0 +1,39 @@ + + + + + + + + Login system + + +

Login

+
+ + + +
+ + Přihlášený uživatel:". $_SESSION["username"]."

"; + echo "LOGOUT"; // \" escape uvozovek pro odkaz + } + if(isset($_GET["error"])){ + echo "

Error ". $_GET["error"]. "

"; + } + if(isset($_GET["login"])){ + echo "

Uživatel byl přihlášen

"; + } + if(isset($_GET["logout"])){ + echo "

Uživatel byl odhlášený

"; + } + + ?> + + + \ No newline at end of file diff --git a/login/logout.php b/login/logout.php new file mode 100644 index 0000000..acaeaa4 --- /dev/null +++ b/login/logout.php @@ -0,0 +1,6 @@ + \ No newline at end of file