This commit is contained in:
icret
2024-06-14 17:08:13 +08:00
parent bc9515dd99
commit 28c56dbab2
10 changed files with 24 additions and 74 deletions

View File

@@ -85,6 +85,14 @@ if (isset($_POST['del_url_array'])) {
// FTP删除
any_upload($del_url_array[$i], $del_url_array[$i], 'delete');
}
echo json_encode(array(
'code' => 200,
'msg' => '删除成功',
'type' => 'success',
'icon' => 'ok-sign',
'mode' => 'delete',
'url' => $del_url_array
), JSON_UNESCAPED_UNICODE);
}
// 广场 - 批量回收文件

View File

@@ -596,40 +596,14 @@ function getDel($url, $type)
if (is_file($url) && strrpos($url, $config['path'])) {
// 执行删除
if (@unlink($url)) {
echo '
<script>
new $.zui.Messager("删除成功", {
type: "success", // 定义颜色主题
icon: "ok-sign" // 定义消息图标
}).show();
// 延时5s跳转
// window.setTimeout("window.location=\'/../ \'",5000);
</script>
';
return TRUE;
} else {
echo '
<script>
new $.zui.Messager("删除失败", {
type: "black", // 定义颜色主题
icon: "exclamation-sign" // 定义消息图标
}).show();
</script>
';
return FALSE;
}
} else {
echo '
<script>
new $.zui.Messager("文件不存在", {
type: "danger", // 定义颜色主题
icon: "question-sign" // 定义消息图标
}).show();
</script>
';
}
// 清除查询
clearstatcache();
}
/**
* 删除指定文件
* @param $url string 文件

View File

@@ -331,18 +331,16 @@ if ($config['ad_top']) echo $config['ad_top_info'];
type: "success", // 定义颜色主题
icon: "ok-sign" // 定义消息图标
}).show();
// 延时2秒刷新
window.setTimeout(function() {
window.location.reload();
}, 1500)
} else {
new $.zui.Messager("删除失败 请登录后再删除!", {
type: "danger", // 定义颜色主题
icon: "exclamation-sign" // 定义消息图标
}).show();
// 延时2s跳转
window.setTimeout("window.location=\'/../admin/index.php \'", 2000);
}
// 延时2秒刷新
window.setTimeout(function() {
window.location.reload();
}, 1500)
});
} else {
new $.zui.Messager("取消删除", {