From 7060efbbb4a9bf5306a2afe3873a797bc2a429f0 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 14 Feb 2026 16:04:13 +0000 Subject: [PATCH] Auto commit: 2026-02-14T16:04:13.421Z --- admin.php | 90 ++++++++++++++++++++++++++++++++++++++++++++ includes/tracker.php | 5 ++- index.php | 45 +++++++++++----------- 3 files changed, 116 insertions(+), 24 deletions(-) create mode 100644 admin.php diff --git a/admin.php b/admin.php new file mode 100644 index 0000000..026b19c --- /dev/null +++ b/admin.php @@ -0,0 +1,90 @@ +query("SELECT COUNT(*) FROM visitor_logs WHERE last_activity > DATE_SUB(NOW(), INTERVAL 10 MINUTE)"); +$active_users = $stmt->fetchColumn(); + +// Get country distribution for active users +$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(); + +?> + + + + + + Admin Dashboard - Lili Records + + + + + +
+
+
+

Panel de Administración Real-Time

+

Lili Records Radio Statistics

+
+
+ +
+
+
+
Usuarios Conectados
+
+

En los últimos 10 minutos

+
+ +
+
Distribución por País
+
    + +
  • + + +
  • + +
+
+
+
+
+
Mapa de Conexiones
+
+
+
+
+
+ + + + + diff --git a/includes/tracker.php b/includes/tracker.php index 2b01d00..93b24eb 100644 --- a/includes/tracker.php +++ b/includes/tracker.php @@ -6,7 +6,10 @@ function track_visitor() { session_start(); } - $ip = $_SERVER['REMOTE_ADDR']; + $ip = $_SERVER['HTTP_CF_CONNECTING_IP'] ?? $_SERVER['HTTP_X_FORWARDED_FOR'] ?? $_SERVER['REMOTE_ADDR']; + // X-Forwarded-For can be a comma-separated list + $ip = explode(',', $ip)[0]; + $session_id = session_id(); $db = db(); diff --git a/index.php b/index.php index f7a9513..d28193e 100644 --- a/index.php +++ b/index.php @@ -394,7 +394,6 @@ $whatsapp_link = "https://wa.me/" . preg_replace('/[^0-9]/', '', $whatsapp_numbe
EN VIVO
Cargando stream...
-
@@ -402,35 +401,35 @@ $whatsapp_link = "https://wa.me/" . preg_replace('/[^0-9]/', '', $whatsapp_numbe - +
- - -
- - - - - - - -
- - -
-

Apoya nuestro proyecto

-
- - Transfermóvil +
+ + + + + + +
-

Escanea para donar

+ + + +
+

+ Panel Admin Real-Time +

+ +
+ +