Skip to content

Commit

Permalink
版本更新
Browse files Browse the repository at this point in the history
  • Loading branch information
icret committed Oct 27, 2021
1 parent f6a9020 commit a3a3905
Show file tree
Hide file tree
Showing 96 changed files with 544 additions and 9,435 deletions.
Empty file modified .github/FUNDING.yml
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/bug_report.md
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/custom.md
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/feature_request.md
100644 → 100755
Empty file.
Empty file modified .github/workflows/codacy-analysis.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/codeql-analysis.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/php.yml
100644 → 100755
Empty file.
Empty file modified CODE_OF_CONDUCT.md
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
19 changes: 14 additions & 5 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@

#### 注意:

1. 安装之前先使用浏览器访问check.php检查扩展是否都安装!
1. 第一次访问会检查环境并在config目录下生成EasyImage.lock
2. 请将所有文件赋予0755权限或www权限
3. 上传后必须修改config.php的位置:
- domain 当前网站域名
- imgurl 当前图片域名
- password 登录管理密码!
4. 如果无法登陆管理界面或上传图片,请先打开check.php检查扩展或者使用phpinfo检查
4. 如果无法登陆管理界面或上传图片,请检查扩展或者使用phpinfo检查
5. 可以使用浏览器的 F12调试模式->console查看错误
6. 如果对php不太熟悉的话,不要将图床程序放置于二级目录
7. 下载源码后可以删除一些文件:README.md,check.php,LICENSE
7. 下载源码后可以删除一些文件:README.md,LICENSE
8. 欢迎加群:[623688684](https://shang.qq.com/wpa/qunwpa?idkey=3feb4e8be8f1839f71e53bf2e876de36afc6889b2630c33c877d8df5a5583a6f)

#### API上传示例:
Expand Down Expand Up @@ -84,6 +84,16 @@ RewriteRule config/(.*).(php)$ – [F]

<details><summary><mark><font color=darkred>点击查看2.0版更新日志</font></mark></summary>

* 2021-10-24 v2.3.0
- 将服务器环境监测改为第一次打开时自动检测(如需再次展示需删除config目录下的EasyImage.lock)
- 增加快捷操作中心显示服务信息
- 增加自定义上传文件的命名方式(详见config.php文件里的注释)
- 增加隐私政策、服务条款、DMCA
- 增加自定义静态文件CDN源
- 增加dns-prefetch
- 删除了tinyfilemanager文件管理(感觉没什么用)
- 一些bug得以修复

* 2021-5-22 v2.2.0
- 增加根目录静态属性
- 增加浏览页面懒加载
Expand Down Expand Up @@ -212,12 +222,11 @@ RewriteRule config/(.*).(php)$ – [F]
<hr />

#### 兼容性
文件上传视图不支持IE9以下的浏览器,api不限制。建议php7.0及以上版本,需要服务器支持Fileinfo、iconv、zip、mbstring、openssl 扩展,如果缺失会导致无法访问管理面板以及上传/删除图片。
PHP需要7.0及以上版本,需要PHP支持Fileinfo、iconv、zip、mbstring、openssl 扩展,如果缺失会导致无法访问管理面板以及上传/删除图片。

文件上传视图提供文件列表管理和文件批量上传功能,允许拖拽(需要 HTML5 支持)来添加上传文件,支持上传大图片,优先使用 HTML5,旧的浏览器自动使用Flash和Silverlight的方式兼容。
<hr />

- 感谢: [verot](https://github.com/verot/class.upload.php "verot" )提供非常好用的class.upload.php上传类
- 感谢: [ZUI](https://github.com/easysoft/zui "ZUI" ) 提供css框架
- 感谢:[tinyfilemanager](https://github.com/prasathmani/tinyfilemanager "tinyfilemanager" ) 提供的文件管理
- 本源码遵循 GNU Public License
51 changes: 39 additions & 12 deletions api/api-web.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,43 @@
<div class="alert alert-primary">
<h3 style="text-align:center">EasyImage2.0 快捷操作中心</h2>
<hr />
<h5>目录保存以 年/月/日/ 递进,非必要请勿修改!否则会导致部分操作不可用。</h5>
<h5>环境信息:PHP版本:<?php echo phpversion(); ?>;PHP上传最大值:<?php echo ini_get('upload_max_filesize'); ?>;POST上传最大值:<?php echo ini_get('post_max_size'); ?>;</h5>
<h5><?php
$yesterday = date("Y/m/d/", strtotime("-1 day"));
echo '今日上传:' . getFileNumber(APP_ROOT . config_path()) . ' 昨日上传:' . getFileNumber(APP_ROOT . $config['path'] . $yesterday) . '; 已用空间:' . getDistUsed(disk_total_space(__DIR__) - disk_free_space(__DIR__)) . ' 剩余空间:' . getDistUsed(disk_free_space(__DIR__)); ?>
</h5>
<h5>当前软件版本:<?php echo $config['version'];?>,Github版本:<a href="https://github.com/icret/EasyImages2.0/releases" target="_blank"><?php echo getVersion();?></a></h5>
<h5>目录保存以 年/月/日/ 递进,非必要请勿修改!否则会导致部分操作不可用;</h5>
<h5>本人仅为程序开源创作,如非法网站使用与本人无关,请勿用于非法用途;</h5>
<h5>请为本人博客<a href="https://www.545141.com/" target="_blank">www.545141.com</a>加上网址链接,谢谢支持。作为开发者你可以对相应的后台功能进行扩展(增删改相应代码),但请保留代码中相关来源信息(例如:本人博客,邮箱等)。</h5>
<p>
<button type="button" class="btn btn-mini" data-toggle="collapse" data-target="#collapseExample">服务信息<i class="icon icon-hand-down"></i></button>
</p>
<div class="collapse" id="collapseExample">
<div class="bg-danger with-padding">
<h5>系统信息</h5>
<hr />
<p>服务器系统:<?PHP echo php_uname('s') . ' <small class="text-muted">' . php_uname() . '</small>'; ?></p>
<p>WEB服务:<?PHP echo $_SERVER['SERVER_SOFTWARE']; ?></p>
<p>服务器IP:<?PHP echo GetHostByName($_SERVER['SERVER_NAME']) ?></p>
<p>系统时间:<?PHP echo date("Y-m-d G:i:s"); ?></p>
<p>已用空间:<?php echo getDistUsed(disk_total_space(__DIR__) - disk_free_space(__DIR__)) . ' 剩余空间:' . getDistUsed(disk_free_space(__DIR__)); ?></p>
<h5>PHP信息</h5>
<hr />
<p>PHP版本:<?php echo phpversion(); ?></p>
<p>GD版本:<?php echo (gd_info()["GD Version"]); ?></p>
<p>PHP上传限制:<?PHP echo get_cfg_var("upload_max_filesize"); ?></p>
<p>POST上传限制:<?php echo ini_get('post_max_size'); ?></p>
<p>PHP最长执行时间:<?PHP echo get_cfg_var("max_execution_time") . ""; ?></p>
<p>PHP允许占用内存:<?PHP echo get_cfg_var("memory_limit") . "M "; ?></p>
<h5>我的信息</h5>
<hr />
<p>浏览器:<?php echo $_SERVER['HTTP_USER_AGENT']; ?></p>
<p>访问者IP:<?php echo $_SERVER["REMOTE_ADDR"]; ?></p>
<h5>图床信息</h5>
<hr />
<p><?php
$yesterday = date("Y/m/d/", strtotime("-1 day"));
echo '今日上传:' . getFileNumber(APP_ROOT . config_path()) . ' 昨日上传:' . getFileNumber(APP_ROOT . $config['path'] . $yesterday); ?>
</p>
<p>当前版本:<?php echo $config['version']; ?>,Github版本:<a href="https://github.com/icret/EasyImages2.0/releases" target="_blank"><?php echo getVersion(); ?></a></p>

</div>
</div>
</div>
</div>
<div class="col-md-12">
Expand Down Expand Up @@ -155,11 +185,8 @@
</form>
</div>
</div>
</div>
</div>
</div>
<link href="<?php static_cdn();?>/public/static/zui/lib/datetimepicker/datetimepicker.min.css" rel="stylesheet">
<script src="<?php static_cdn();?>/public/static/zui/lib/datetimepicker/datetimepicker.min.js"></script>
<link href="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.css" rel="stylesheet">
<script src="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.js"></script>
<script>
// 动态显示要删除的图片
var oBtn = document.getElementById('del');
Expand Down
Empty file modified api/apiTest/index.php
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion api/del.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="col-md-12">
<hr />
<div style="text-align:center;"><span class="label">图片属性:'.@getimagesize($img)[0].'px X '.@getimagesize($img)[1].'px</span></div>
<a href="' . $img . '" target="_blank"><img src="' . $img . '" alt="简单图床-EasyImage" class="img-thumbnail"></a>
<a href="' . $img . '" target="_blank"><img src="' . $img . '" alt="简单图床-EasyImage" class="img-thumbnail"></a>
</div>';
}

Expand Down
Empty file modified api/index.php
100644 → 100755
Empty file.
Empty file modified api/libs/apiFunction.php
100644 → 100755
Empty file.
77 changes: 0 additions & 77 deletions check.php

This file was deleted.

Empty file modified config/api_key.php
100644 → 100755
Empty file.
Loading

0 comments on commit a3a3905

Please sign in to comment.