@@ -1,3 +1,13 @@
<?php
session_start();
if (!isset($_SESSION['user'])) {
$redirect = urlencode($_SERVER['REQUEST_URI']);
header("Location: login.php?redirect=$redirect");
exit;
}
?>
require __DIR__ . '/data/db.php';
The note is not visible to the blocked user.