pull/141/head 2.6.4
icret 2022-05-26 18:23:12 +08:00
parent fbd083b4a2
commit 4f73cae1fc
10 changed files with 31 additions and 10 deletions

5
README.md Executable file → Normal file
View File

@ -180,7 +180,10 @@ $HTTP["url"] =~ "^/(i|public)/" {
<details><summary>点击查看2.0版更新日志</summary>
* 2022-05-24 v2.6.3
* 2022-05-26 v2.6.4
- 更改版本显示方式
* 2022-05-26 v2.6.3
- 增加图片下载
- 增加简单暗黑模式
- 增加读取上传日志

View File

@ -778,8 +778,8 @@ if (isset($_GET['recycle_reimg'])) {
<a href="https://easysoft.github.io/zui/" target="_blank"><span class="label label-badge label-success" data-toggle="tooltip" title="前端框架">ZUI</span></a>
<a href="https://github.com/verot/class.upload.php" target="_blank"><span class="label label-badge label-success" data-toggle="tooltip" title="图像处理类">verot</span></a>
<a href="https://github.com/verot/class.upload.php" target="_blank"><span class="label label-badge label-success" data-toggle="tooltip" title="文件管理">Tinyfilemanager</span></a>
<span class="label label-badge label-success" data-toggle="tooltip" title="当前版本"><?php echo $config['version']; ?></span>
<?php if (getVersion() !== $config['version']) : ?>
<span class="label label-badge label-success" data-toggle="tooltip" title="当前版本"><?php echo get_current_verson(); ?></span>
<?php if (getVersion() !== get_current_verson()) : ?>
<a href="https://github.com/icret/EasyImages2.0/releases" target="_blank"><span class="label label-badge label-warning" data-toggle="tooltip" title="Github有更新,更新后删除<p>/admin/logs/verson/</p>文件夹会自动同步最新版本号"><?php echo getVersion(); ?> New</span></a>
<?php endif; ?>
<a href="https://github.com/icret/EasyImages2.0/blob/master/LICENSE" target="_blank"><span class="label label-badge" data-toggle="tooltip" title="许可证">GPL-2.0</span></a>

View File

@ -127,7 +127,7 @@ if (is_array($char_data)) {
<div class="col-xs-3 alert alert-primary autoshadow">
当前版本
<hr />
<?php echo $config['version']; ?>
<?php echo get_current_verson(); ?>
</div>
</div>
<div class="col-md-12 col-xs-12">

View File

@ -120,7 +120,7 @@ if (is_array($char_data)) {
<div class="col-xs-3 alert alert-primary autoshadow">
当前版本
<hr />
<?php echo $config['version']; ?>
<?php echo get_current_verson(); ?>
</div>
</div>
<div class="col-md-12 col-xs-12">

View File

@ -63,7 +63,7 @@ if (file_exists(APP_ROOT . '/.user.ini')) {
}
// 检查当前版本与GitHub版本
if (getVersion() !== $config['version']) {
if (getVersion() !== get_current_verson()) {
echo '
<script>
new $.zui.Messager("当前版本与GitHub不一致,请检查当前是否最新版本!",{

View File

@ -44,7 +44,7 @@ if ($config['notice_status'] == 1 && !empty($config['notice'])) : ?>
<p>
© 2018-<?php echo date("Y"); ?>
<a href="https://png.cm/" target="_blank"> EasyImage</a>
<a href="https://github.com/icret/EasyImages2.0" target="_blank" rel="nofollow"><?php echo $config['version']; ?></a> By
<a href="https://github.com/icret/EasyImages2.0" target="_blank" rel="nofollow"><?php echo get_current_verson(); ?></a> By
<a href="https://blog.png.cm" target="_blank">Icret</a>
<a href="/admin/terms.php" target="_blank"> DMCA</a>
<!-- 二维码按钮 -->

View File

@ -1349,7 +1349,7 @@ function isAnimatedGifWebp($src)
/**
* 读取日志
* @param filepath 文件路径
* @param String $logs 文件路径
*/
function read_upload_logs($logs = null)
{
@ -1374,3 +1374,21 @@ function read_upload_logs($logs = null)
return $logs;
}
/**
* 获取当前版本号
* @param String $file 文件相对路径
* @return String 内容信息
*/
function get_current_verson($file = '/config/verson.txt')
{
$file = APP_ROOT . $file;
if (is_file($file)) {
return file_get_contents($file);
}
return 'No Verson file';
}

View File

@ -94,7 +94,6 @@ $config=Array
'guest_path_status'=>0,
'token_path_status'=>0,
'admin_path'=>'u',
'version'=>'2.6.2',
'update'=>'2022-05-26 15:21:42',
'footer'=>'<a href="/admin/terms.php" target="_blank">请勿上传违反中国政策的图片</a>
<script>

1
config/verson.txt Normal file
View File

@ -0,0 +1 @@
2.6.4

View File

@ -191,7 +191,7 @@ function checkPASS($name)
</div>
<?php echo 'Copyright © 2018-' . date('Y'); ?>
<a href="https://png.cm/" target="_blank">EasyImage</a> By
<a href="https://blog.png.cm/902.html" target="_blank">Icret</a> Version:<a href="https://github.com/icret/EasyImages2.0" target="_blank"><?php echo $config['version']; ?></a>
<a href="https://blog.png.cm/902.html" target="_blank">Icret</a> Version:<a href="https://github.com/icret/EasyImages2.0" target="_blank"><?php echo get_current_verson(); ?></a>
</footer>
</body>