diff --git a/README.md b/README.md index fdc198d..d6f0e9f 100755 --- a/README.md +++ b/README.md @@ -103,6 +103,17 @@ $HTTP["url"] =~ "^/(i|public)/" {
点击查看2.0版更新日志 +* 2022-2-13 v2.5.1 +- 异步执行鉴黄 +- 取消检测imagick扩展 +- 修复可能导致检测弹窗弹出失败 + +* 2022-2-7 v2.5.0 +- 修复静态文件调用失败 + +* 2022-2-6 v2.4.9 +- 修复静态文件引用 + * 2022-2-6 v2.4.9 - 修复flash和silverlight路径引用(>IE9不影响) - markdown html alt值改为源文件名 diff --git a/api/index.php b/api/index.php index 5fcd0e0..882aac0 100755 --- a/api/index.php +++ b/api/index.php @@ -87,13 +87,12 @@ if ($handle->uploaded) { /** 后续处理 */ require APP_ROOT . '/application/process.php'; - - // 普通模式鉴黄 - @process_checkImg($imageUrl); // 使用fastcgi_finish_request操作 if (function_exists('fastcgi_finish_request')) { fastcgi_finish_request(); + // 普通模式鉴黄 + @process_checkImg($imageUrl); // 日志 if ($config['upload_logs']) @write_log($pathIMG, $handle->file_src_name, $handle->file_dst_pathname, $handle->file_src_size); // 水印 @@ -101,6 +100,8 @@ if ($handle->uploaded) { // 压缩 @compress($handle->file_dst_pathname); } else { + // 普通模式鉴黄 + @process_checkImg($imageUrl); // 日志 if ($config['upload_logs']) write_log($pathIMG, $handle->file_src_name, $handle->file_dst_pathname, $handle->file_src_size); // 水印 @@ -108,5 +109,6 @@ if ($handle->uploaded) { // 压缩 @compress($handle->file_dst_pathname); } + unset($handle); } diff --git a/application/chart.php b/application/chart.php index ea25e62..c4da4c3 100755 --- a/application/chart.php +++ b/application/chart.php @@ -1,5 +1,6 @@ window.location.href="' . get_whole_url('/') . '/install/index.php"'; + exit(''); } /** * 检测弹窗内容 */ -if (is_file(APP_ROOT . '/config/EasyIamge.lock')) return; // 查询锁定弹窗文件是否存在 +if (file_exists(APP_ROOT . '/config/EasyIamge.lock')) return; // 查询锁定弹窗文件是否存在 file_put_contents(APP_ROOT . '/config/EasyIamge.lock', '安装环境检测锁定文件,如需再次展示请删除此文件!', FILE_APPEND | LOCK_EX); ?>