<?php
/**
 * Admin Session Guard
 * Include this at the top of every protected admin page.
 */
session_start();
if (empty($_SESSION['admin_logged_in']) || $_SESSION['admin_logged_in'] !== true) {
    header('Location: login.php');
    exit;
}
?>
