- 增加限制游客上传

* 2023-02-01 v2.7.0 dev
- 增加限制游客上传
- 增加上传历史记录
- 增加粘贴上传状态
- 增加广场非图片图标
- 增加前端显示缩略图链接
- 增加每日获取Bing图片背景
- 增加图片详细信息管理登录后显示更多信息
- 增加解析上传IP地址 (使用方法参考提示信息)
- 修复图片详细信息中随机图片排版混乱
- 替换访问生成缩略图代码
- 更新一些组件
- 调整前端显示
- 优化代码
This commit is contained in:
icret
2023-02-01 22:20:33 +08:00
parent 22b75d89c7
commit ef5b17deed
9 changed files with 277 additions and 190 deletions

View File

@@ -8,12 +8,17 @@ if (isset($_GET['img'])) {
// 过滤特殊符号
$getIMG = strip_tags($_GET['img']);
$del_url = $config['domain'] . $getIMG;
} elseif (isset($_GET['history'])) {
// 过滤特殊符号
$getIMG = $config['path'] . ltrim(strip_tags($_GET['history']), '/');
$del_url = $config['domain'] . $getIMG;
} else {
// 未获取到图片地址
$getIMG = "/public/images/404.png";
$del_url = "#";
}
// 开启隐藏上传目录
if ($config['hide_path']) {
$img_url = rand_imgurl() . str_replace($config['path'], '/', $getIMG);
@@ -40,9 +45,8 @@ if (empty($logs[$logsName])) {
}
// 图片真实路径
$imgABPath = APP_ROOT . $getIMG;
// 图片是否存在
if (!file_exists($imgABPath)) {
if (!is_file($imgABPath)) {
$imgABPath = APP_ROOT . "/public/images/404.png";
$img_url = rand_imgurl() . "/public/images/404.png";
}