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 { + + +
+ Cerrar Sesión Admin +
+ @@ -460,38 +478,46 @@ try { Lili Records Promo
-
-
Mensajes de la Audiencia
- -
- -
- -
- -

No hay mensajes todavía.
¡Conéctate con Lili Records!

+ +
+
Mensajes de la Audiencia
+
- - -
- -

- - - -
- - - + +
+ +
+ +

No hay mensajes todavía.
¡Conéctate con Lili Records!

- -
- - -
+ + +
+ +

+ + + +
+ + + +
+ +
+ + +
+ +
+
¡Envíanos tu mensaje!
+
+

Tus peticiones y saludos llegan directo a cabina.

+
QR Pago +

Escanea para apoyar a la radio

@@ -509,7 +535,7 @@ try {
- Tu mensaje aparecerá aquí y se enviará por WhatsApp + Tu mensaje se enviará de forma privada a los administradores.
@@ -600,7 +626,9 @@ try { // Scroll to bottom of comments const commentsList = document.getElementById('commentsList'); - commentsList.scrollTop = 0; // Show latest first + if (commentsList) { + commentsList.scrollTop = 0; // Show latest first + } \ No newline at end of file