From 75899064c5fa48308a6ebdaf55bd9c9bc3b51173 Mon Sep 17 00:00:00 2001 From: marc-go Date: Tue, 17 Feb 2026 19:52:14 +0100 Subject: [PATCH] add tailadmin --- api/login/getcookies.php | 2 +- front/index.php | 5 +++-- front/panel/home.php | 0 front/panel/index.php | 13 +++++++++++++ tailadmin | 1 + 5 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 front/panel/home.php create mode 100644 front/panel/index.php create mode 160000 tailadmin diff --git a/api/login/getcookies.php b/api/login/getcookies.php index ca73ebc..c47647d 100644 --- a/api/login/getcookies.php +++ b/api/login/getcookies.php @@ -35,7 +35,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { setcookie("device_id", $device_id, time() + 3600, "/"); setcookie("username", $user, time() + 3600, "/"); - header("Location: /admin"); + header("Location: /panel"); exit; }else{ diff --git a/front/index.php b/front/index.php index 8447037..4b452a0 100755 --- a/front/index.php +++ b/front/index.php @@ -23,5 +23,6 @@ if (!$mcServ->checkLogin()) { header("Location: /login.php"); exit; }else{ - echo "angemeldet"; -} + header("Location: /panel"); + exit; +} \ No newline at end of file diff --git a/front/panel/home.php b/front/panel/home.php new file mode 100644 index 0000000..e69de29 diff --git a/front/panel/index.php b/front/panel/index.php new file mode 100644 index 0000000..97e1c74 --- /dev/null +++ b/front/panel/index.php @@ -0,0 +1,13 @@ +checkLogin()) { + header("Location: /admin/home.php"); + exit; +}else{ + header("Location: /login.php"); + exit; +} +?> \ No newline at end of file diff --git a/tailadmin b/tailadmin new file mode 160000 index 0000000..50aa8c1 --- /dev/null +++ b/tailadmin @@ -0,0 +1 @@ +Subproject commit 50aa8c15fac0f361b040ab29837c0ad505e98c24