From c33addca42a8738e4f55477916ada31033188840 Mon Sep 17 00:00:00 2001 From: Jakob Date: Sun, 8 Mar 2020 16:19:27 +0100 Subject: [PATCH] %REQUIRE_LOGIN% --- threadr/profile/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/threadr/profile/index.php b/threadr/profile/index.php index dbea1d4..14e30f3 100644 --- a/threadr/profile/index.php +++ b/threadr/profile/index.php @@ -3,6 +3,7 @@ session_start(); %SET_LOGIN_VARIABLE% %PLEAZE_NO_CACHE% %NO_CHEAP_SESSION_STEALING% +%REQUIRE_LOGIN% $pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!'); $statement = $pdo->prepare('SELECT name FROM users WHERE id = :user_id;'); // to be replaced with optional user name off the user data table