<?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";
include __DIR__ . '/../../header.php';
include __DIR__ . '/../../menu.php';
?>
<main class="content-area admin-page-area">
  <div class="content-wrapper admin-main admin-main-shell">
    <div class="storm-divider"></div>
    <div class="admin-topbar admin-topbar-pro">
      <a class="admin-return" href="dashboard.php">← Return to Admin Dashboard</a>
      <a class="admin-return" href="../index.php">🏠 Return to Main Site</a>
      <a class="admin-return" href="../login/logout.php">Logout</a>
    </div>
