支持php8,修复部分缺陷,更新部分代码漏洞(不重要)

pull/18/head
icret 2021-03-28 19:42:59 +08:00 committed by GitHub
parent 70cf938e4e
commit 5351cd3399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4004 additions and 3603 deletions

View File

@ -72,7 +72,9 @@ api上传成功后返回json
#### 更新日志 #### 更新日志
* 2021-03-23 v2.0.2.1 * 2021-03-23 v2.0.2.1
- 支持php7.4覆盖class.upload.php和file.php即可 - 更新管理程序,修复部分漏洞
- 修复不能等比例缩小图片
- 支持php7.4,php8 测试版
* 2019-6-26 v2.0.2.0 * 2019-6-26 v2.0.2.0
- 精简压缩代码,使得不再压缩后反而变大 - 精简压缩代码,使得不再压缩后反而变大

View File

@ -5,7 +5,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>检测工具</title> <title>简单图床安装环境检测</title>
<style> <style>
a:link{color:grey;} a:link{color:grey;}
a:visited{color:black;} a:visited{color:black;}

View File

@ -78,7 +78,7 @@ $config = array(
'minWidth' => 5, 'minWidth' => 5,
// 允许上传的最小高度 // 允许上传的最小高度
'minHeight' => 5, 'minHeight' => 5,
// 等比例缩小图片 宽度和高度请设置 image_x image_y 开启true关闭false 关闭下mage_x和image_y设置不生效 // 等比例缩小图片 宽度和高度请设置 image_x image_y 开启true关闭false 关闭下image_x和image_y设置不生效
'imgRatio' => false, 'imgRatio' => false,
// 缩减的最大高度 // 缩减的最大高度
'image_x' => 1024, 'image_x' => 1024,

View File

@ -28,7 +28,9 @@ if ($handle->uploaded) {
//等比例缩减图片 //等比例缩减图片
if ($config['imgRatio']) { if ($config['imgRatio']) {
$handle->image_resize = true;
$handle->image_x = $config['image_x']; $handle->image_x = $config['image_x'];
$handle->image_y = $config['image_y'];
} }
// 存储图片路径:images/201807/ // 存储图片路径:images/201807/
$handle->process(APP_ROOT . config_path()); $handle->process(APP_ROOT . config_path());

View File

@ -63,8 +63,6 @@ if (@$_GET['e']==1){
</div> </div>
</div> </div>
</div> </div>
</div>
<div id="ad" class="col-md-12" align="center" style="padding:5px;">
</div> </div>
<script src="public/static/paste.js"></script> <script src="public/static/paste.js"></script>
<script src="public/static/copy_btn.js"></script> <script src="public/static/copy_btn.js"></script>

File diff suppressed because one or more lines are too long