diff --git a/history_announcements.php b/history_announcements.php
new file mode 100644
index 0000000..c4e539c
--- /dev/null
+++ b/history_announcements.php
@@ -0,0 +1,148 @@
+swal("错误", "数据库连接失败", "error");';
+ exit;
+}
+
+// 查询所有公告,按发布时间倒序
+$sql = "SELECT id, title, content, created_at FROM announcements ORDER BY created_at DESC";
+$result = $conn->query($sql);
+
+?>
+
+
+
+
+
+
+ 历史公告 -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
历史公告
+
+ num_rows > 0): ?>
+
+ fetch_assoc()): ?>
+
+
+
+
+
+ 暂无历史公告记录。
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/index.php b/index.php
index 7be5ea0..f8a4483 100644
--- a/index.php
+++ b/index.php
@@ -101,6 +101,7 @@ $announcement = $announcementResult && $announcementResult->num_rows > 0 ? $anno
diff --git a/version_list.php b/version_list.php
index 6f5ef39..4131a78 100644
--- a/version_list.php
+++ b/version_list.php
@@ -1,6 +1,23 @@
= 1073741824) {
+ return number_format($bytes / 1073741824, 2) . ' GB';
+ } elseif ($bytes >= 1048576) {
+ return number_format($bytes / 1048576, 2) . ' MB';
+ } elseif ($bytes >= 1024) {
+ return number_format($bytes / 1024, 2) . ' KB';
+ } elseif ($bytes > 0) {
+ return $bytes . ' B';
+ } else {
+ return '0 B';
+ }
+}
+
+
// 验证App ID
if (!isset($_GET['id']) || !is_numeric($_GET['id'])) {
header('Location: index.php?error=无效的App ID');
@@ -125,7 +142,50 @@ while ($row = $result->fetch_assoc()) {