From 96594641dce6bfe53e55711ed8c29055f4703fa5 Mon Sep 17 00:00:00 2001
From: Turtle <104490184+CodingTurtle2@users.noreply.github.com>
Date: Sun, 11 Jan 2026 13:32:08 +0100
Subject: [PATCH] g6.2
---
README.md | 7 ++
files/lib/basic.js | 9 +-
files/login.html | 10 +-
files/prof/auswertung.html | 2 +-
files/prof/kursAnzeige.html | 2 +-
files/prof/uebersicht.html | 2 +-
files/student/kursAnzeige.html | 2 +-
files/student/uebersicht.html | 6 +-
files/student/umfrage.html | 4 +-
index.php | 8 +-
utils/url_handler.php | 200 ++++++++++++++++++---------------
11 files changed, 143 insertions(+), 109 deletions(-)
create mode 100644 README.md
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..c32d931
--- /dev/null
+++ b/README.md
@@ -0,0 +1,7 @@
+Gruppe 14: SASSY
+
+WebServer starten:
+`php -qS localhost:8000`
+
+WebServer (Debug) starten:
+`php -S localhost:8000`
\ No newline at end of file
diff --git a/files/lib/basic.js b/files/lib/basic.js
index f75096f..4a027cf 100644
--- a/files/lib/basic.js
+++ b/files/lib/basic.js
@@ -349,14 +349,7 @@ function form1(string) {
async function getUserData(couchDB) {
- let username = getURLArgsMap()["user"];
- if (!username) {
- if (debug && typeof (debug_username) == "string") {
- username = debug_username;
- } else {
- return null;
- }
- }
+ let username = localStorage.getItem("user");
const res = await couchDB.get("users");
if (!res) return null;
const data = res[username];
diff --git a/files/login.html b/files/login.html
index 08ca1fb..a45742c 100644
--- a/files/login.html
+++ b/files/login.html
@@ -7,6 +7,7 @@
+