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'=>'请勿上传违反中国政策的图片