<?php
/**
 * Shared CRM page bootstrap: session gate, cache headers, HTML head.
 */
if (!isset($_SESSION['userid']) || !isset($_SESSION['database'])) {
    header('Location: ../web_logout.php');
    exit;
}

header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Pragma: no-cache');
header('Expires: 0');

include __DIR__ . '/head.php';
