First Implementation

This commit is contained in:
2026-05-26 23:14:12 +02:00
parent 7706c7dfbf
commit 46a307a5b0
4 changed files with 12 additions and 5 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$_SESSION["user"] = $user["username"]; $_SESSION["user"] = $user["username"];
$_SESSION["user_email"] = $user["email"]; $_SESSION["user_email"] = $user["email"];
// Weiterleitung zum Profil // Weiterleitung zur Homepage
header("Location: index.php?pfad=profile"); header("Location: index.php");
exit(); exit();
} else { } else {
+2 -2
View File
@@ -29,8 +29,8 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$_SESSION["user"] = $vorname . " " . $nachname; $_SESSION["user"] = $vorname . " " . $nachname;
$_SESSION["user_email"] = $email; $_SESSION["user_email"] = $email;
// Weiterleitung zum Profil // Weiterleitung zur Homepage
header("Location: index.php?pfad=profile"); header("Location: index.php");
exit(); exit();
} }
} }
+8 -1
View File
@@ -1,3 +1,7 @@
<?php
session_start();
ob_start();
?>
<!-- <!--
Seite: Index der Lernplattform Seite: Index der Lernplattform
Funktion: Webseitengerüst, Anzeigen von Content Funktion: Webseitengerüst, Anzeigen von Content
@@ -36,4 +40,7 @@
?> ?>
</body> </body>
</html> </html>
<?php
ob_end_flush();
?>