<?php
if (!ob_get_level()) ob_start();
if (session_status() !== PHP_SESSION_ACTIVE) session_start();
require __DIR__ . '/../auth.php';
require_once __DIR__ . '/admin_lib.php';
$CAN_EDIT = $GLOBALS['CAN_EDIT'] ?? false;
$CAN_VIEW = $GLOBALS['CAN_VIEW'] ?? true;
if (!isset($pageTitle)) $pageTitle = "Admin | Almost Heaven Radio";
$pageBodyClass = 'page-admin';
include __DIR__ . '/../../header.php';
include __DIR__ . '/../../menu.php';
?>
<link rel="stylesheet" href="/admin/assets/admin-v2.css?v=4">
<main class="main-container admin-v2-shell">
  <div class="admin-topbar">
    <a class="admin-return" href="/admin/dashboard.php">← Return to Admin Dashboard</a>
    <a class="admin-return" href="/admin/file-finder.php" style="margin-left:10px;">📁 File Finder</a>
    <a class="admin-return" href="/index.php" style="margin-left:10px;">🏠 Return to Main Site</a>
    <a class="admin-return" href="/login/logout.php" style="margin-left:10px;">Logout</a>
  </div>
