From 90af7a8d98d855143b3d8a4e7c66e20e294fa317 Mon Sep 17 00:00:00 2001 From: sunson Date: Fri, 6 Dec 2024 18:18:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=96=87=E4=BB=B6=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- README.md | 17 +- index.php | 895 +++++++++++++++++++++++++++-------------------------- 3 files changed, 479 insertions(+), 436 deletions(-) diff --git a/.gitignore b/.gitignore index 71c62bf..aa27683 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ - o/* +.idea/* +db.php diff --git a/README.md b/README.md index 0a77095..47508c7 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,21 @@ php5.2.x及以上版本均可运行,做了很多测试,老机都可以轻易 图片分享,支持直接连接,BBcode,HTML,Markdown,轻松一点即可。 +### 以下所有接口提交请用GET方式 + +美女壁纸接口 + +输入参数: +getGirlWallpaper 必填 +type 可选,输出json + +调用URL:?getGirlWallpaper&type + +输出JSON结果: +{"code":"0","msg":"成功","url":"http://tutu.rf.gd/o/a/b/abf77b43acb51fec2fd5e7590ebd3750.avif"} + +其它情况直接302转向图片网址。 + ## 官网地址: https://git.czyx007.cn/sunson/siw @@ -69,4 +84,4 @@ https://wwta.lanzoue.com/iTB4r2gxffpc 走过路过不要错过,仅2.10M的图床程序,一包搞定,是真的香。 ## DEMO -地址:http://tutu.rf.gd/ \ No newline at end of file +地址:http://tutu.rf.gd/ diff --git a/index.php b/index.php index 780db5e..3a2b3c9 100644 --- a/index.php +++ b/index.php @@ -1,281 +1,307 @@ '); + } else { + echo '{"error":"写入失败,无法保存文件"}'; + } + exit; } ?> - - - - - - - SIW图床-基于PHP的图床服务 - + .background { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-size: cover; + z-index: -1; + transition: opacity 1s ease-in-out; + opacity: 1; + } + + .container { + width: 600px; + overflow: hidden; + } + + .file-list { + max-height: 200px; + overflow-y: auto; + margin-bottom: 15px; + } + + .file-row { + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px 0; + border-bottom: 1px solid #ccc; + margin-bottom: 5px; + } + + .file-row:last-child { + border-bottom: none; + } + + .file-name { + flex-grow: 1; + width: 200px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .file-size { + margin-left: 10px; + color: #666; + margin-right: 5px; + } + + .progress { + width: 100px; + font-size: 12px; + margin-left: 5px; + display: none; + border-radius: 5px; + } + + .btn-download, .btn-copy { + color: #ffffff; + width: 50px; + height: 25px; + padding: 0; + font-size: 14px; + margin-left: 5px; + } + + .btn-download { + background-color: #0d6efd; + } + + .btn-copy { + background-color: #198754; + } + + .status-output { + margin-top: 15px; + height: 30px; + padding: 5px; + overflow: hidden; + font-weight: 1000; + font-size: 16px; + } + + .link-output { + /*margin-top: 20px; + border: 1px solid #ccc;*/ + padding: 10px; + display: none; /* 默认隐藏 */ + } + + .link-output textarea { + width: 100%; + height: 100px; + margin-top: 10px; + white-space: pre-wrap; /* 自动换行 */ + overflow-wrap: break-word; /* 强制换行 */ + } + -
-
+
+
-
-

SIW(Simple Image Web)

-
简单就是美。
-
-
- - -
- -
-
-
-
-
+
- + \ No newline at end of file