- Shows get a description and an icon upload; broadcasts get a scheduled_at
start time. schema.sql adds the columns to existing databases and seeds
the descriptions from the old hand-written sidebar.
- The dashboard and cli/set_show.php take an optional date and Eastern start
time when queuing; index.php shows it with the UTC conversion.
- liveBroadcast() and currentShow() ignore broadcasts unseen for longer than
the grace period, so a stopped poller can't leave a show stuck as live.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The poller's lock file in /tmp could be left owned by another user after a
manual run, leaving cron unable to open it. Lock the script file instead.
SETUP.md walks through installing the site on Yunohost, including the
/etc/cron.d entry for the poller, which was missing on the server and left
the recently played list empty.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Document the expanded scope, admin pages, broadcast and track history
rules, upload handling, coding conventions, server-only deployment
steps and planned work.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- admin/shows.php: list shows
- admin/show_edit.php: add, edit and delete shows, with validated
background image uploads saved under generated names
- admin/index.php: queue the next show, switch the live show, or clear
the queue
- includes/broadcasts.php: setBroadcastShow() and clearQueuedShow(),
shared by the dashboard and cli/set_show.php
- includes/admin_layout.php: flash messages and Shows nav link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- admins and login_attempts tables
- cli/create_admin.php: create an admin or reset a password over SSH
(no email involved)
- includes/auth.php: hardened admin sessions, login throttling (5
failures per IP per 15 minutes) and CSRF helpers
- admin/: login, logout and a dashboard showing broadcast status
- includes/admin_layout.php: shared admin page layout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- sql/schema.sql: shows, broadcasts and played_tracks tables, seeded
with the five shows
- cli/poll_icecast.php: cron-run poller that records broadcasts and
tracks every 15 seconds while streaming; tracks are cleared ten
minutes after a broadcast ends
- cli/set_show.php: queue the next show, or assign one to the live
broadcast
- recently_played.php: track history rows for live.php, with album art
and album title linking to Last.fm
- live.php: recently played list, show name in heading, and per-show
header background
- includes/icecast.php: Icecast parsing, album art and Last.fm helpers
shared by now_playing.php and the poller
- includes/db.php: use UTC for the database session
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>