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