From 6f66b76f147c34701f728dcdb85191a30c8753de Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 15 Feb 2026 18:25:41 +0000 Subject: [PATCH] Autosave: 20260215-182541 --- admin.php | 37 ---------------------------- index.php | 73 ++----------------------------------------------------- 2 files changed, 2 insertions(+), 108 deletions(-) diff --git a/admin.php b/admin.php index b0c3785..50c3e87 100644 --- a/admin.php +++ b/admin.php @@ -20,19 +20,6 @@ $active_phones = $stmt->fetchAll(); $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(); -// Handle Video Password Update -if (isset($_POST['update_video_pass'])) { - $new_pass = trim($_POST['video_pass']); - $stmt = $db->prepare("INSERT INTO settings (setting_key, setting_value) VALUES ('video_room_password', ?) ON DUPLICATE KEY UPDATE setting_value = ?"); - $stmt->execute([$new_pass, $new_pass]); - $success_msg = "Contraseña de la sala de video actualizada."; -} - -// Get current video password -$stmt = $db->prepare("SELECT setting_value FROM settings WHERE setting_key = 'video_room_password'"); -$stmt->execute(); -$current_video_pass = $stmt->fetchColumn() ?: "lili123"; - ?> @@ -60,30 +47,6 @@ $current_video_pass = $stmt->fetchColumn() ?: "lili123"; - -
- - -
-
-
-
Control de Sala de Video
-
-
- - -
-
- -
-
- Esta contraseña será solicitada a los usuarios que intenten activar su cámara en la web. -
-
-
-
-
-
diff --git a/index.php b/index.php index 6d64581..e8a23ee 100644 --- a/index.php +++ b/index.php @@ -11,12 +11,6 @@ $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? 'assets/pasted-20260215-1646 $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY"; $whatsapp_number = '+5359177041'; $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; - -// Fetch video room password -$db = db(); -$stmt = $db->prepare("SELECT setting_value FROM settings WHERE setting_key = 'video_room_password'"); -$stmt->execute(); -$video_room_pass = $stmt->fetchColumn() ?: "lili123"; ?> @@ -708,8 +702,8 @@ $video_room_pass = $stmt->fetchColumn() ?: "lili123"; - -
+ +

@@ -727,27 +721,6 @@ $video_room_pass = $stmt->fetchColumn() ?: "lili123";

- - -
-

- VIDEO EN VIVO -

-
- -
- -

Únete a la sala de video para que otros usuarios te vean en vivo.

- -

Integrado con la comunidad Lili Records

-
-
-
- LIVE -
-
@@ -1035,48 +1008,6 @@ $video_room_pass = $stmt->fetchColumn() ?: "lili123"; updateMetadata(); setInterval(updateMetadata, 30000); - // --- Video Call Functionality --- - function startVideo() { - const roomPassword = ''; - const userPass = prompt("Introduce la contraseña de la sala (Solicítala en el grupo de WhatsApp):"); - - if (userPass !== roomPassword) { - if (userPass !== null) alert("Contraseña incorrecta. Solo miembros autorizados pueden unirse."); - return; - } - - const container = document.getElementById('video-container'); - const placeholder = document.getElementById('jitsi-placeholder'); - placeholder.style.display = 'none'; - - // Load Jitsi External API - const script = document.createElement('script'); - script.src = "https://meet.jit.si/external_api.js"; - script.onload = () => { - const domain = "meet.jit.si"; - const options = { - roomName: "LiliRecordsLive_Sala_Privada_2026", - width: "100%", - height: "100%", - parentNode: container, - configOverwrite: { - startWithAudioMuted: true, - startWithVideoMuted: false, - prejoinPageEnabled: false - }, - interfaceConfigOverwrite: { - TOOLBAR_BUTTONS: [ - 'microphone', 'camera', 'closedcaptions', 'desktop', 'fullscreen', - 'fodeviceselection', 'hangup', 'profile', 'chat', 'settings', 'raisehand', - 'videoquality', 'filmstrip', 'tileview', 'videobackgroundblur' - ], - } - }; - const api = new JitsiMeetExternalAPI(domain, options); - }; - document.head.appendChild(script); - } - // Handle possible audio interruptions audio.addEventListener('error', function(e) { console.error('Audio error:', e);