From 06a4f9a6c0eb21b478e8df32714c5956c1de3f97 Mon Sep 17 00:00:00 2001 From: marc-go Date: Sat, 3 Oct 2026 19:31:34 +0200 Subject: [PATCH] Add setup and API files with enhanced user interface and error handling --- api/api.php | 13 ++ api/setup/save.php | 3 + public/templates/entrys_frontend/entrys.html | 38 ------ public/templates/setup/setup.html | 118 ++++++++++++++++++- 4 files changed, 130 insertions(+), 42 deletions(-) create mode 100644 api/api.php create mode 100644 api/setup/save.php diff --git a/api/api.php b/api/api.php new file mode 100644 index 0000000..d02cd72 --- /dev/null +++ b/api/api.php @@ -0,0 +1,13 @@ +authRequited) { + $this->checkAuth(); + } + } +} \ No newline at end of file diff --git a/api/setup/save.php b/api/setup/save.php new file mode 100644 index 0000000..6328718 --- /dev/null +++ b/api/setup/save.php @@ -0,0 +1,3 @@ + - - - - - - - - - -
-

Hello!

-

Welcome to your Guestbook! Enter here your prefered username and password.

-

-

-

- Save -
- - \ No newline at end of file diff --git a/public/templates/setup/setup.html b/public/templates/setup/setup.html index cb93c27..e64f264 100755 --- a/public/templates/setup/setup.html +++ b/public/templates/setup/setup.html @@ -1,11 +1,121 @@ - - - Setup + + + + + Setup + + -

La setup

+
+

Hello!

+

Welcome to your Guestbook! Enter here your prefered username and password.

+

+

+

+ Save +
+ +
+ Warning +
+
+ Your browser is using http instead of https. That means your connection is not encrypted and everyone in your network can read your credentials. +
+
+ I know what i'm doing! +
+
+ +
+ Error +
+
+ +
+
+ Close +
+
+ \ No newline at end of file