<?php
// Protect admin folder - redirect to login
session_name('ensi_admin_session');
session_start();

if (!isset($_SESSION['admin_id'])) {
    header('Location: login.php');
    exit;
}

header('Location: dashboard.php');
exit;
