diff --git a/index.php b/index.php index 9c8f618..9878bac 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,18 @@ require_once __DIR__ . '/db/config.php'; @ini_set('display_errors', '0'); @error_reporting(E_ALL); +session_start(); + +// Simple admin check: access via index.php?admin=lili +if (isset($_GET['admin']) && $_GET['admin'] === 'lili') { + $_SESSION['is_admin'] = true; +} +if (isset($_GET['logout'])) { + unset($_SESSION['is_admin']); +} + +$isAdmin = !empty($_SESSION['is_admin']); + $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Lili Records Radio - La mejor música en vivo.'; $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? ''; $streamUrl = "https://play.radioking.io/lili-record-s-radio"; @@ -453,6 +465,12 @@ try { + + +
+ @@ -460,38 +478,46 @@ try {
Mensajes de la Audiencia
- = count($requests) ?> -No hay mensajes todavía.
+ +¡Conéctate con Lili Records!
Mensajes de la Audiencia
+ = count($requests) ?>= htmlspecialchars($req['message']) ?>
- = date('d M, H:i', strtotime($req['created_at'])) ?> - - -No hay mensajes todavía.
¡Conéctate con Lili Records!
= htmlspecialchars($req['message']) ?>
+ = date('d M, H:i', strtotime($req['created_at'])) ?> + + +¡Envíanos tu mensaje!
+Tus peticiones y saludos llegan directo a cabina.
+Escanea para apoyar a la radio