删除多余
parent
6ef54dcdcb
commit
2e9764f1b4
|
@ -44,9 +44,35 @@ if (isset($_GET['hash'])) {
|
||||||
|
|
||||||
// 检查登录后再处理url删除请求
|
// 检查登录后再处理url删除请求
|
||||||
if (is_who_login('admin')) {
|
if (is_who_login('admin')) {
|
||||||
|
// 删除
|
||||||
if (isset($_GET['url'])) {
|
if (isset($_GET['url'])) {
|
||||||
getDel($_GET['url'], '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 '
|
||||||
|
<script>
|
||||||
|
new $.zui.Messager("已放入回收站!", {
|
||||||
|
type: "success", // 定义颜色主题
|
||||||
|
icon: "ok" // 定义消息图标
|
||||||
|
}).show();
|
||||||
|
</script>
|
||||||
|
';
|
||||||
|
} else {
|
||||||
|
echo '
|
||||||
|
<script>
|
||||||
|
new $.zui.Messager("文件不存在!", {
|
||||||
|
type: "danger", // 定义颜色主题
|
||||||
|
icon: "exclamation-sign" // 定义消息图标
|
||||||
|
}).show();
|
||||||
|
</script>
|
||||||
|
';
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (isset($_GET['url'])) {
|
if (isset($_GET['url'])) {
|
||||||
echo '
|
echo '
|
||||||
|
@ -59,7 +85,6 @@ if (is_who_login('admin')) {
|
||||||
window.setTimeout("window.location=\'/../admin/index.php \'",3000);
|
window.setTimeout("window.location=\'/../admin/index.php \'",3000);
|
||||||
</script>
|
</script>
|
||||||
';
|
';
|
||||||
//header("refresh:2;url=".$config['domain']."/admin/index.php");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,6 +124,7 @@
|
||||||
<a href="' . $imgUrl . '" target="_blank"><i class="icon icon-picture" data-toggle="tooltip" title="原图" style="margin-left:10px;"></i></a>
|
<a href="' . $imgUrl . '" target="_blank"><i class="icon icon-picture" data-toggle="tooltip" title="原图" style="margin-left:10px;"></i></a>
|
||||||
<a href="#" class="copy" data-clipboard-text="' . $imgUrl . '" data-toggle="tooltip" title="复制" style="margin-left:10px;"><i class="icon icon-copy"></i></a>
|
<a href="#" class="copy" data-clipboard-text="' . $imgUrl . '" data-toggle="tooltip" title="复制" style="margin-left:10px;"><i class="icon icon-copy"></i></a>
|
||||||
<a href="/application/info.php?img=' . $imgUrl . '" data-toggle="tooltip" title="详细信息" target="_blank" style="margin-left:10px;"><i class="icon icon-info-sign"></i></a>
|
<a href="/application/info.php?img=' . $imgUrl . '" data-toggle="tooltip" title="详细信息" target="_blank" style="margin-left:10px;"><i class="icon icon-info-sign"></i></a>
|
||||||
|
<a href="' . $config['domain'] . '/application/del.php?recycle_url=' . $imgUrl . '" target="_blank" data-toggle="tooltip" title="回收" style="margin-left:10px;"><i class="icon icon-undo"></i></a>
|
||||||
<a href="' . $config['domain'] . '/application/del.php?url=' . $imgUrl . '" target="_blank" data-toggle="tooltip" title="删除" style="margin-left:10px;"><i class="icon icon-trash"></i></a>
|
<a href="' . $config['domain'] . '/application/del.php?url=' . $imgUrl . '" target="_blank" data-toggle="tooltip" title="删除" style="margin-left:10px;"><i class="icon icon-trash"></i></a>
|
||||||
<label style="margin-left:10px;" class="text-primary"><input type="checkbox" style="margin: left 200px;" id="url" name="checkbox" value="' . $imgUrl . '"> 选择</label>
|
<label style="margin-left:10px;" class="text-primary"><input type="checkbox" style="margin: left 200px;" id="url" name="checkbox" value="' . $imgUrl . '"> 选择</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -40,17 +40,14 @@ $config=Array
|
||||||
'imgRatio_crop'=>0,
|
'imgRatio_crop'=>0,
|
||||||
'imgRatio_preserve_headers'=>1,
|
'imgRatio_preserve_headers'=>1,
|
||||||
'static_cdn'=>0,
|
'static_cdn'=>0,
|
||||||
'theme'=>'red',
|
'theme'=>'default',
|
||||||
'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0@2.5.2',
|
'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0@2.5.3',
|
||||||
'TinyPng_key'=>'',
|
'TinyPng_key'=>'',
|
||||||
'checkImg'=>0,
|
'checkImg'=>0,
|
||||||
'checkImg_value'=>50,
|
'checkImg_value'=>50,
|
||||||
'moderatecontent_key'=>'',
|
'moderatecontent_key'=>'',
|
||||||
'nsfwjs_url'=>'',
|
'nsfwjs_url'=>'',
|
||||||
'footer'=>' <a href="../public/images/alipay.jpg" title="您的赞美是我开发的动力!" data-toggle="lightbox" class="btn btn-mini" style="color:#1970fc;"><i class="icon icon-zhifubao"></i> 打赏作者</a>
|
'footer'=>'<a href="/admin/terms.php" target="_blank">请勿上传违反中国政策的图片</a>
|
||||||
<button class="btn btn-mini " type="button" style="color:#1970fc;" data-toggle="tooltip" title="您的赞美是我开发的动力!<img src=\'../public/images/alipay.jpg\'/>"><i class="icon icon-zhifubao"></i> 打赏作者</button>
|
|
||||||
|
|
||||||
<a href="/admin/terms.php" target="_blank">请勿上传违反中国政策的图片</a>
|
|
||||||
<script>
|
<script>
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
(function() {
|
(function() {
|
||||||
|
@ -100,7 +97,7 @@ var _hmt = _hmt || [];
|
||||||
),
|
),
|
||||||
'language'=>0,
|
'language'=>0,
|
||||||
'version'=>'2.5.3',
|
'version'=>'2.5.3',
|
||||||
'update'=>'2022-02-23 00:06:31',
|
'update'=>'2022-02-24 00:42:23',
|
||||||
'terms'=>'<div class="container">
|
'terms'=>'<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-3">
|
<div class="col-xs-3">
|
||||||
|
|
Loading…
Reference in New Issue