From 2e9764f1b4887aace48e8e7c6974628b2a2db73a Mon Sep 17 00:00:00 2001
From: = <=>
Date: Wed, 23 Feb 2022 17:46:27 +0100
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
application/del.php | 27 ++++++++++++++++++++++++++-
application/list.php | 1 +
config/config.php | 11 ++++-------
3 files changed, 31 insertions(+), 8 deletions(-)
diff --git a/application/del.php b/application/del.php
index cab36c1..3afb427 100755
--- a/application/del.php
+++ b/application/del.php
@@ -44,9 +44,35 @@ if (isset($_GET['hash'])) {
// 检查登录后再处理url删除请求
if (is_who_login('admin')) {
+ // 删除
if (isset($_GET['url'])) {
getDel($_GET['url'], 'url');
}
+ // 回收
+ if (isset($_GET['recycle_url'])) {
+ $recycle_url = $_GET['recycle_url'];
+ $recycle_url = parse_url($recycle_url)['path'];
+ if (file_exists(APP_ROOT . $recycle_url)) {
+ checkImg($recycle_url, 3);
+ echo '
+
+ ';
+ } else {
+ echo '
+
+ ';
+ }
+ }
} else {
if (isset($_GET['url'])) {
echo '
@@ -59,7 +85,6 @@ if (is_who_login('admin')) {
window.setTimeout("window.location=\'/../admin/index.php \'",3000);
';
- //header("refresh:2;url=".$config['domain']."/admin/index.php");
}
}
diff --git a/application/list.php b/application/list.php
index 247e8f6..16dbdee 100755
--- a/application/list.php
+++ b/application/list.php
@@ -124,6 +124,7 @@
+
diff --git a/config/config.php b/config/config.php
index 00e3913..c8677da 100755
--- a/config/config.php
+++ b/config/config.php
@@ -40,17 +40,14 @@ $config=Array
'imgRatio_crop'=>0,
'imgRatio_preserve_headers'=>1,
'static_cdn'=>0,
- 'theme'=>'red',
- 'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0@2.5.2',
+ 'theme'=>'default',
+ 'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0@2.5.3',
'TinyPng_key'=>'',
'checkImg'=>0,
'checkImg_value'=>50,
'moderatecontent_key'=>'',
'nsfwjs_url'=>'',
- 'footer'=>' 打赏作者
-
-
-请勿上传违反中国政策的图片
+ 'footer'=>'请勿上传违反中国政策的图片