You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-16 11:53:58 +08:00
v2.7.2
* 2023-02-05 v2.7.2 - 增加删除单条历史上传记录 - 增加 [web-indexr](https://github.com/rehiy/web-indexr) 文件管理, 正在实验中 - - 作为 [Tinyfilemanager](https://github.com/prasathmani/tinyfilemanager) 的替代品 更轻量化 简单化 - 修复开启登录上传后,上传者账号上传失败 [#87](https://github.com/icret/EasyImages2.0/issues/87#issue-1569794639) - 修复检测登录状态错误 - 优化排版和移动端显示
This commit is contained in:
@@ -764,18 +764,15 @@ function getDel($url, $type)
|
||||
*/
|
||||
function is_who_login($user)
|
||||
{
|
||||
if ($user == 'status') {
|
||||
if (checkLogin() == 205 || checkLogin() == 204) return true;
|
||||
}
|
||||
|
||||
// 将状态转码
|
||||
$status = json_decode(_login(), true);
|
||||
if ($user == 'admin') {
|
||||
if ($status['level'] == 1) return true;
|
||||
}
|
||||
// 查询是否登录
|
||||
if ($user == 'status') if ($status['level'] > 0) return true;
|
||||
// 是否管理员登录
|
||||
if ($user == 'admin') if ($status['level'] == 1) return true;
|
||||
// 是否上传者登录
|
||||
if ($user == 'guest') if ($status['level'] == 2) return true;
|
||||
|
||||
if ($user == 'guest') {
|
||||
if ($status['level'] == 2) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user