From 432ea17e40b172c9d841d617e0d16f14f73f6d45 Mon Sep 17 00:00:00 2001 From: skimrme Date: Tue, 4 Nov 2025 23:34:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=BD=93=E5=89=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 8 +++--- public/blog/index.php | 2 +- public/blog/{logs.php => logs.php.text} | 0 public/blog/master/index.php | 9 ------- public/blog/master/post_data.php | 34 ------------------------- public/blog/master/push.php | 12 --------- public/blog/post/index.php | 27 +++++++++++++++++--- public/blog/post/s/index.php | 18 +++---------- 8 files changed, 31 insertions(+), 79 deletions(-) rename public/blog/{logs.php => logs.php.text} (100%) delete mode 100755 public/blog/master/index.php delete mode 100755 public/blog/master/post_data.php delete mode 100755 public/blog/master/push.php diff --git a/.gitignore b/.gitignore index 10ad10c..3813b19 100755 --- a/.gitignore +++ b/.gitignore @@ -9,16 +9,14 @@ public/*.db src/image/* public/image/* -# 管理员面板 -public/blog/master/passwd -public/blog/master/db/* - # 可能未知 public/message/static/src/video/* +# 管理员面板 +public/blog/admin/* + # 临时区 -public/blog/md/* public/blog/md0/* # 临时区 \ No newline at end of file diff --git a/public/blog/index.php b/public/blog/index.php index 766e7d6..ef644e2 100755 --- a/public/blog/index.php +++ b/public/blog/index.php @@ -34,7 +34,7 @@ diff --git a/public/blog/logs.php b/public/blog/logs.php.text similarity index 100% rename from public/blog/logs.php rename to public/blog/logs.php.text diff --git a/public/blog/master/index.php b/public/blog/master/index.php deleted file mode 100755 index 03ed4ec..0000000 --- a/public/blog/master/index.php +++ /dev/null @@ -1,9 +0,0 @@ - - - - master 页面 - - - 跳转建立索引 - - \ No newline at end of file diff --git a/public/blog/master/post_data.php b/public/blog/master/post_data.php deleted file mode 100755 index f879e3f..0000000 --- a/public/blog/master/post_data.php +++ /dev/null @@ -1,34 +0,0 @@ -返回。"; - } else { - echo "写入文件失败,请检查文件权限。"; - } - -} else { - // 如果没有接收到数据,返回错误信息 - echo "没有接收到任何数据。请 返回 重新输入。"; -} - -?> \ No newline at end of file diff --git a/public/blog/master/push.php b/public/blog/master/push.php deleted file mode 100755 index 70bc6b1..0000000 --- a/public/blog/master/push.php +++ /dev/null @@ -1,12 +0,0 @@ - -master - - -
- -
-
- -
\ No newline at end of file diff --git a/public/blog/post/index.php b/public/blog/post/index.php index 8f4607c..6255d89 100644 --- a/public/blog/post/index.php +++ b/public/blog/post/index.php @@ -1,6 +1,9 @@ + + + - -
+ +
close(); } + + // 随机变换图床api + + $wallpaper_apis = ['https://www.loliapi.com/acg/pc/', 'https://api.sretna.cn/api/pc.php', 'https://www.api.plus/API/dongman/', 'https://moe.jitsu.top/img/?sort=pc', 'https://www.dmoe.cc/random.php', 'https://api.r10086.com/樱道随机图片api接口.php?图片系列=猫娘1', 'https://api.mtyqx.cn/tapi/random.php', 'https://api.ww3.tw/touhou']; + $suiji_wallpaper = rand(0, count($wallpaper_apis) - 1); + $wallpaper = $wallpaper_apis[$suiji_wallpaper]; + // 显示图床url在页面 + echo "
图片来源: " . $wallpaper . "
"; ?> -
+
\ No newline at end of file diff --git a/public/blog/post/s/index.php b/public/blog/post/s/index.php index 55fdc48..f47e094 100644 --- a/public/blog/post/s/index.php +++ b/public/blog/post/s/index.php @@ -1,23 +1,12 @@ "; echo "{$title}"; echo ""; + echo "返回主页"; echo "

{$title}

"; // nl2br 用于将换行符转换成