Skip to content

Commit 4f73cae

Browse files
committed
v2.6.4
1 parent fbd083b commit 4f73cae

File tree

10 files changed

+31
-10
lines changed

10 files changed

+31
-10
lines changed

README.md

100755100644
+4-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ $HTTP["url"] =~ "^/(i|public)/" {
180180

181181
<details><summary>点击查看2.0版更新日志</summary>
182182

183-
* 2022-05-24 v2.6.3
183+
* 2022-05-26 v2.6.4
184+
- 更改版本显示方式
185+
186+
* 2022-05-26 v2.6.3
184187
- 增加图片下载
185188
- 增加简单暗黑模式
186189
- 增加读取上传日志

admin/admin.inc.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,8 @@
778778
<a href="https://easysoft.github.io/zui/" target="_blank"><span class="label label-badge label-success" data-toggle="tooltip" title="前端框架">ZUI</span></a>
779779
<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>
780780
<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>
781-
<span class="label label-badge label-success" data-toggle="tooltip" title="当前版本"><?php echo $config['version']; ?></span>
782-
<?php if (getVersion() !== $config['version']) : ?>
781+
<span class="label label-badge label-success" data-toggle="tooltip" title="当前版本"><?php echo get_current_verson(); ?></span>
782+
<?php if (getVersion() !== get_current_verson()) : ?>
783783
<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>
784784
<?php endif; ?>
785785
<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>

admin/chart.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
<div class="col-xs-3 alert alert-primary autoshadow">
128128
当前版本
129129
<hr />
130-
<?php echo $config['version']; ?>
130+
<?php echo get_current_verson(); ?>
131131
</div>
132132
</div>
133133
<div class="col-md-12 col-xs-12">

admin/zui.chart.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<div class="col-xs-3 alert alert-primary autoshadow">
121121
当前版本
122122
<hr />
123-
<?php echo $config['version']; ?>
123+
<?php echo get_current_verson(); ?>
124124
</div>
125125
</div>
126126
<div class="col-md-12 col-xs-12">

application/check_admin.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
}
6464

6565
// 检查当前版本与GitHub版本
66-
if (getVersion() !== $config['version']) {
66+
if (getVersion() !== get_current_verson()) {
6767
echo '
6868
<script>
6969
new $.zui.Messager("当前版本与GitHub不一致,请检查当前是否最新版本!",{

application/footer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<p>
4545
© 2018-<?php echo date("Y"); ?>
4646
<a href="https://png.cm/" target="_blank"> EasyImage</a>
47-
<a href="https://github.com/icret/EasyImages2.0" target="_blank" rel="nofollow"><?php echo $config['version']; ?></a> By
47+
<a href="https://github.com/icret/EasyImages2.0" target="_blank" rel="nofollow"><?php echo get_current_verson(); ?></a> By
4848
<a href="https://blog.png.cm" target="_blank">Icret</a>
4949
<a href="/admin/terms.php" target="_blank"> DMCA</a>
5050
<!-- 二维码按钮 -->

application/function.php

+19-1
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ function isAnimatedGifWebp($src)
13491349

13501350
/**
13511351
* 读取日志
1352-
* @param filepath 文件路径
1352+
* @param String $logs 文件路径
13531353
*/
13541354
function read_upload_logs($logs = null)
13551355
{
@@ -1374,3 +1374,21 @@ function read_upload_logs($logs = null)
13741374

13751375
return $logs;
13761376
}
1377+
1378+
/**
1379+
* 获取当前版本号
1380+
* @param String $file 文件相对路径
1381+
* @return String 内容信息
1382+
*/
1383+
1384+
function get_current_verson($file = '/config/verson.txt')
1385+
{
1386+
$file = APP_ROOT . $file;
1387+
1388+
if (is_file($file)) {
1389+
1390+
return file_get_contents($file);
1391+
}
1392+
1393+
return 'No Verson file';
1394+
}

config/config.php

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
'guest_path_status'=>0,
9595
'token_path_status'=>0,
9696
'admin_path'=>'u',
97-
'version'=>'2.6.2',
9897
'update'=>'2022-05-26 15:21:42',
9998
'footer'=>'<a href="/admin/terms.php" target="_blank">请勿上传违反中国政策的图片</a>
10099
<script>

config/verson.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.6.4

install/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function(e) {
191191
</div>
192192
<?php echo 'Copyright © 2018-' . date('Y'); ?>
193193
<a href="https://png.cm/" target="_blank">EasyImage</a> By
194-
<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>
194+
<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>
195195
</footer>
196196
</body>
197197

0 commit comments

Comments
 (0)