<?php
if (!ob_get_level()) ob_start(); if (!isset($_SESSION)) session_start(); require __DIR__ . '/../auth.php'; require_once __DIR__ . '/admin_lib.php'; require_once __DIR__ . '/admin_bootstrap.php';
$CAN_EDIT = $GLOBALS['CAN_EDIT'] ?? false; $CAN_VIEW = $GLOBALS['CAN_VIEW'] ?? true; if (!isset($pageTitle)) $pageTitle = 'Underground FX Admin'; ugfx_admin_header($pageTitle); ?>
<div class="legacy-admin-shell"><div class="legacy-admin-topbar"><div><div class="eyebrow">LEGACY MANAGEMENT VIEW</div><h1 class="admin-title mb-1"><?= htmlspecialchars($pageTitle, ENT_QUOTES, 'UTF-8') ?></h1><p class="admin-note mb-0">HomeTime feature stack is still present here, now wrapped in the Underground FX control-room shell.</p></div><div class="legacy-admin-actions"><a class="admin-topbar-link" href="/admin/index.php"><i class="bi bi-speedometer2"></i> Dashboard</a><a class="admin-topbar-link" href="/index.php" target="_blank"><i class="bi bi-box-arrow-up-right"></i> Main site</a><a class="admin-topbar-link" href="/admin/logout.php"><i class="bi bi-door-open"></i> Logout</a></div></div>