 ?: 'profile-pics/default.jpeg'; ?>)
User # schrieb:
+@@ -179,11 +179,6 @@ session_start();
diff --git a/FVS-Social/.idea/.gitignore b/FVS-Social/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/FVS-Social/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/FVS-Social/.idea/FVS-Social.iml b/FVS-Social/.idea/FVS-Social.iml
new file mode 100644
index 0000000..c956989
--- /dev/null
+++ b/FVS-Social/.idea/FVS-Social.iml
@@ -0,0 +1,8 @@
+
+
Hier Einloggen
Hier Regestrieren");
+ $user_page = isset($_GET['user']) ? $_GET['user'] : 'posts';
+
+if(!isset($_SESSION['user_id'])) {
+ header("Location: login/login-page.html");
}
include 'db_connect.php';
try {
$userId = $_SESSION['user_id'];
-
+
$stmt1 = $pdo->prepare("SELECT username, email, created_at FROM users WHERE id = :id");
$stmt1->execute([':id' => $userId]);
$user = $stmt1->fetch(PDO::FETCH_ASSOC);
@@ -37,18 +36,13 @@ session_start();
} else {
$profile_image = 'profile-pics/default.jpeg';
}
-
-
-
if(!$user){
die("Benutzer nicht gefunden!");
}
}catch (PDOException $e){
die("Fehler: " . $e->getMessage());
}
-
?>
-
User # schrieb:
+@@ -179,11 +179,6 @@ session_start();
+ + + +
Erstellt am:
+ +