You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
v2.8.5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
// 广场 - 批量回收文件
|
||||
|
||||
@@ -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 文件
|
||||
|
||||
10
app/list.php
10
app/list.php
@@ -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("取消删除", {
|
||||
|
||||
Reference in New Issue
Block a user