<?php
session_start();
$role = $_SESSION['role'] ?? 'guest';
if (!in_array($role, ['master','admin'])) {
  header('Location: /login/index.php');
  exit;
}
?>
<?php include('../header.php'); ?>
<?php include('../menu.php'); ?>
<link rel="stylesheet" href="/css/style.css">

<main class="main-container">
  <section class="content-box">
    <h2 class="text-warning">🎚️ Icecast Backup</h2>
    <p>This panel links to the backup Icecast server.</p>
    <div class="mt-3">
      <a href="http://cr3.broadcasturself.com:6969" target="_blank" class="btn btn-dark">
        Open Icecast Backup
      </a>
    </div>
  </section>
</main>

<?php include('../footer.php'); ?>
