<?php
// Customer auth guard — include at top of every customer page
if(session_status() === PHP_SESSION_NONE) session_start();
if(!isset($_SESSION['user_id'])){
    header('Location: /stile-lpg/login.php');
    exit;
}
if($_SESSION['user_role'] === 'admin'){
    header('Location: /stile-lpg/admin/index.php');
    exit;
}
