From cc5bd4931c2c9ea4fcb1b117fbc3fa535034e0a1 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Tue, 17 Feb 2026 18:45:07 +0000 Subject: [PATCH] Auto commit: 2026-02-17T18:45:07.833Z --- admin.php | 98 +++++++++++++++++++++++++++++++++++++++---- api/song_requests.php | 7 +++- index.php | 26 ++++++++++++ 3 files changed, 123 insertions(+), 8 deletions(-) diff --git a/admin.php b/admin.php index 56e571d..f99561e 100644 --- a/admin.php +++ b/admin.php @@ -48,6 +48,30 @@ $locations = $stmt->fetchAll(); + +
+
+
+
+
+
+ + +
+
+ SONANDO AHORA: +

Lili Records Radio

+

En vivo desde el estudio

+
+
+
+ 00:00 +
+
+
+
+
+
@@ -159,20 +183,47 @@ $locations = $stmt->fetchAll();
+ diff --git a/api/song_requests.php b/api/song_requests.php index b9430d4..3968b37 100644 --- a/api/song_requests.php +++ b/api/song_requests.php @@ -69,11 +69,16 @@ if ($method === 'GET') { $stmt = $db->query("SELECT HOUR(created_at) as hour, COUNT(*) as count FROM song_requests WHERE created_at > DATE_SUB(NOW(), INTERVAL 24 HOUR) GROUP BY hour ORDER BY hour ASC"); $volume_stats = $stmt->fetchAll(); + // Visitor locations (last 10 minutes) + $stmt = $db->query("SELECT country, country_code, lat, lon, COUNT(*) as count FROM visitor_logs WHERE last_activity > DATE_SUB(NOW(), INTERVAL 10 MINUTE) GROUP BY country_code"); + $locations = $stmt->fetchAll(); + echo json_encode([ 'success' => true, 'top_artists' => $top_artists, 'top_songs' => $top_songs, - 'volume_stats' => $volume_stats + 'volume_stats' => $volume_stats, + 'locations' => $locations ]); } catch (Exception $e) { echo json_encode(['success' => false, 'error' => $e->getMessage()]); diff --git a/index.php b/index.php index f6ed7d2..d371c9d 100644 --- a/index.php +++ b/index.php @@ -1024,6 +1024,22 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
+ + + +
@@ -2394,6 +2410,16 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; trackTitle.classList.add('scrolling'); trackTitle.innerHTML = `${title}      ${title}     `; } + + // Update Sticky Bar + const stickyBar = document.getElementById('sticky-now-playing'); + const stickyCover = document.getElementById('sticky-track-cover'); + const stickyInfo = document.getElementById('sticky-track-info'); + if (stickyBar && stickyCover && stickyInfo) { + stickyCover.src = coverUrl; + stickyInfo.textContent = `${artist} - ${title}`; + stickyBar.style.display = 'block'; + } }, 500); }