diff --git a/db/migrations/001_create_songs_table.sql b/db/migrations/001_create_songs_table.sql deleted file mode 100644 index 6c85888..0000000 --- a/db/migrations/001_create_songs_table.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE TABLE IF NOT EXISTS songs ( - id INT AUTO_INCREMENT PRIMARY KEY, - title VARCHAR(255) NOT NULL, - artist VARCHAR(255) NOT NULL, - is_active TINYINT(1) DEFAULT 0, - created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP -); diff --git a/index.php b/index.php index c54da82..32210d1 100644 --- a/index.php +++ b/index.php @@ -26,22 +26,11 @@ $promoImage = "assets/pasted-20260130-234122-115a4b49.png"; $qrImage = "assets/pasted-20260131-000858-4fff58f0.jpg"; $logoImage = "assets/pasted-20260131-002028-7985dfae.png"; -// Fetch latest requests and songs +// Fetch latest requests $requests = []; -$songs = []; -$activeSong = null; try { $stmt = db()->query("SELECT name, phone, message, created_at FROM listener_requests ORDER BY created_at DESC LIMIT 20"); $requests = $stmt->fetchAll(); - - $stmtSongs = db()->query("SELECT * FROM songs ORDER BY created_at ASC"); - $songs = $stmtSongs->fetchAll(); - foreach ($songs as $s) { - if ($s["is_active"]) { - $activeSong = $s; - break; - } - } } catch (Exception $e) { // Silently fail if table doesn't exist yet or other DB error } @@ -417,65 +406,6 @@ try { .qr-container:hover { transform: scale(1.1); } - - /* Song Management Styles */ - .song-item-modal { - background: rgba(255,255,255,0.05); - border: 1px solid rgba(255,255,255,0.08); - border-radius: 20px; - padding: 1rem 1.5rem; - margin-bottom: 1rem; - display: flex; - justify-content: space-between; - align-items: center; - transition: all 0.3s ease; - } - .song-item-modal:hover { - background: rgba(255,255,255,0.1); - } - .song-active-modal { - border-color: var(--primary-color); - background: rgba(255, 45, 85, 0.1); - } - .song-title-text { - font-weight: 700; - display: block; - color: #fff; - } - .song-artist-text { - font-size: 0.8rem; - opacity: 0.6; - color: #fff; - } - .btn-toggle-song { - background: rgba(255,255,255,0.1); - color: #fff; - border: none; - border-radius: 12px; - padding: 5px 15px; - font-size: 0.8rem; - font-weight: 600; - transition: all 0.3s ease; - } - .btn-toggle-song.active { - background: var(--primary-color); - } - .btn-delete-song { - background: rgba(255,0,0,0.1); - color: #ff4444; - border: none; - border-radius: 50%; - width: 32px; - height: 32px; - display: flex; - align-items: center; - justify-content: center; - transition: all 0.3s ease; - } - .btn-delete-song:hover { - background: #ff4444; - color: #fff; - } @@ -492,8 +422,8 @@ try {
- - + Conectando... + Lili Records Radio
@@ -509,9 +439,6 @@ try {
-
PANEL ADMINISTRADOR
Cerrar Sesión @@ -603,80 +530,6 @@ try {
- - -