<?php
if (!isset($_SESSION)) session_start();
require __DIR__ . '/../auth.php';

$CAN_EDIT = $GLOBALS['CAN_EDIT'] ?? false;
$CAN_VIEW = $GLOBALS['CAN_VIEW'] ?? true;

if (!isset($pageTitle)) $pageTitle = "Admin — Smurfette's Country Delights";
if (!isset($pageClass)) $pageClass = "page-admin";

include __DIR__ . '/../../includes/header.php';
include __DIR__ . '/../../includes/nav.php';
?>
<main class="content-area">
  <div class="smurf-divider"></div>
  <div class="content-wrapper admin-main">
    <div class="admin-topbar">
      <a class="admin-return" href="/admin/index.php">← Return to Admin</a>
      <a class="admin-return" href="/admin/logout.php" style="margin-left:10px;">Logout</a>
    </div>
