%REQUIRE_LOGIN%

master
Jakob 2020-03-08 16:19:27 +01:00
parent c8193dd06b
commit c33addca42
1 changed files with 1 additions and 0 deletions

View File

@ -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