prepare('SELECT id, name FROM shows WHERE id = ?'); $stmt->execute([(int)($_POST['show_id'] ?? 0)]); $show = $stmt->fetch(); if (!$show) { flash('Please choose a show.', 'error'); } elseif (setBroadcastShow($db, (int)$show['id']) === 'live') { flash("The live broadcast is now {$show['name']}."); } else { flash("{$show['name']} is queued. It will go live as soon as the stream starts."); } } elseif ($action === 'clear_queue') { clearQueuedShow($db); flash('The queued show has been cleared.'); } header('Location: index.php'); exit; } $live = liveBroadcast($db); $current = currentShow($db); $shows = $db->query('SELECT id, name FROM shows ORDER BY name')->fetchAll(); adminHeader('Dashboard', $admin); ?>

Broadcast status

Live now, since UTC. Offline. is queued for the next broadcast. Offline. No show is queued.