From c94122c9fd1402fcd43f4e1c22953187ecf00bde Mon Sep 17 00:00:00 2001 From: marc-go Date: Fri, 9 Oct 2026 19:36:56 +0200 Subject: [PATCH] Fix variable name in token validation and add login template --- api/api.php | 4 +-- public/templates/login/login.html | 52 +++++++++++++++++++++++++++++++ public/templates/templates.json | 6 ++++ 3 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 public/templates/login/login.html diff --git a/api/api.php b/api/api.php index 050884c..d9ab707 100755 --- a/api/api.php +++ b/api/api.php @@ -88,7 +88,7 @@ class gbAPI { $given_string = explode(".", $given); - if (count($parts) !== 2) { + if (count($given_string) !== 2) { return false; } @@ -120,7 +120,7 @@ class gbAPI { $given_string = explode(".", $given); - if (count($parts) !== 2) { + if (count($given_string) !== 2) { return false; } diff --git a/public/templates/login/login.html b/public/templates/login/login.html new file mode 100644 index 0000000..1b23f80 --- /dev/null +++ b/public/templates/login/login.html @@ -0,0 +1,52 @@ + + + + + + %appname% // Login + + + + + + +
+
+

%appname%

+

Admin Panel Login



+

+

+ Login +
+
+ + + \ No newline at end of file diff --git a/public/templates/templates.json b/public/templates/templates.json index b23bcc2..9498c72 100755 --- a/public/templates/templates.json +++ b/public/templates/templates.json @@ -18,5 +18,11 @@ "dir_name":"entrys_frontend", "html_file":"entrys_frontend.html", "css_files":[] + }, + "login":{ + "name":"login", + "dir_name":"login", + "html_file":"login.html", + "css_files":[] } } \ No newline at end of file