v2.7.2 dev

* 2023-02-04 v2.7.2 dev
- 增加 [web-indexr](https://github.com/rehiy/web-indexr) 文件管理
- - web-indexr处于实验中,作为Tinyfilemanager的替代
- 修复开启登录上传后,上传者账号上传失败 [#87](https://github.com/icret/EasyImages2.0/issues/87#issue-1569794639)
- 优化排版和移动端显示
This commit is contained in:
icret
2023-02-04 10:55:33 +08:00
parent fae2b6effe
commit e632634154
8 changed files with 43 additions and 30 deletions

View File

@@ -764,9 +764,8 @@ function getDel($url, $type)
*/
function is_who_login($user)
{
if (empty($user)) {
if ($user == 'status') {
if (checkLogin() == 205 || checkLogin() == 204) return true;
return false;
}
$status = json_decode(_login(), true);
@@ -1506,7 +1505,7 @@ function rand_imgurl($text = null)
}
/**
* 获取当前版本号
* 获取当前版本号 | 读取字符串
* @param String $file 文件相对路径
* @return String 内容信息
*/
@@ -1519,7 +1518,7 @@ function get_current_version($file = '/admin/version.php')
return file_get_contents($file);
}
return 'No Version File';
return 'file does not exist';
}
// 压缩图片与图片鉴黄