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"; - -