From 5f573a468f8738f19e29180fb4242007c113cffc Mon Sep 17 00:00:00 2001
From: Kilian Hofmann
Date: Fri, 21 Jun 2024 12:47:08 +0200
Subject: [PATCH] Login/Register/confirm and new comment feature
---
base/helpers.php | 16 ++++
base/icons.php | 7 ++
tasks/calc/index.php | 2 +-
tasks/guestBook/components/newComment.php | 2 +-
tasks/guestBookDB/actions/comment.php | 32 ++++----
tasks/guestBookDB/actions/login.php | 74 ++++++++++++++++++
tasks/guestBookDB/actions/logout.php | 24 ++++++
tasks/guestBookDB/actions/register.php | 87 +++++++++++++++++++++
tasks/guestBookDB/components/message.php | 7 ++
tasks/guestBookDB/components/newComment.php | 17 +---
tasks/guestBookDB/confirm.php | 44 +++++++++++
tasks/guestBookDB/index.php | 28 +++++--
tasks/guestBookDB/login.php | 86 ++++++++++++++++++++
tasks/guestBookDB/queries.php | 43 ++++++++++
tasks/guestBookDB/register.php | 87 +++++++++++++++++++++
15 files changed, 516 insertions(+), 40 deletions(-)
create mode 100644 base/helpers.php
create mode 100644 tasks/guestBookDB/actions/login.php
create mode 100644 tasks/guestBookDB/actions/logout.php
create mode 100644 tasks/guestBookDB/actions/register.php
create mode 100644 tasks/guestBookDB/components/message.php
create mode 100644 tasks/guestBookDB/confirm.php
create mode 100644 tasks/guestBookDB/login.php
create mode 100644 tasks/guestBookDB/register.php
diff --git a/base/helpers.php b/base/helpers.php
new file mode 100644
index 0000000..a9b4d22
--- /dev/null
+++ b/base/helpers.php
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tasks/calc/index.php b/tasks/calc/index.php
index fe42874..857c615 100644
--- a/tasks/calc/index.php
+++ b/tasks/calc/index.php
@@ -108,7 +108,7 @@
Result: = $result ?>
- } ?>
+
= $error ?>
diff --git a/tasks/guestBook/components/newComment.php b/tasks/guestBook/components/newComment.php
index 2656c27..959e36c 100644
--- a/tasks/guestBook/components/newComment.php
+++ b/tasks/guestBook/components/newComment.php
@@ -1,4 +1,4 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tasks/guestBookDB/login.php b/tasks/guestBookDB/login.php
new file mode 100644
index 0000000..a4bd28f
--- /dev/null
+++ b/tasks/guestBookDB/login.php
@@ -0,0 +1,86 @@
+
+
+
+