8 lines
153 B
PHP
8 lines
153 B
PHP
<?php
|
|
session_start();
|
|
|
|
if (!isset($_SESSION['user_id'])) {
|
|
header('Location: index.php?error=You must be logged in to view this page');
|
|
exit;
|
|
}
|