10 lines
153 B
PHP
10 lines
153 B
PHP
<?php
|
|
session_start();
|
|
|
|
function check_auth() {
|
|
if (!isset($_SESSION['user_id'])) {
|
|
header('Location: login.php');
|
|
exit();
|
|
}
|
|
}
|
|
?>
|