diff --git a/README-EN.md b/README-EN.md index a8d258e1..1c8bbe9a 100644 --- a/README-EN.md +++ b/README-EN.md @@ -34,6 +34,7 @@ Complete PT website building solution. Based on NexusPHP + Laravel + Filament. - Custom menu - Lucky draw - Custom role permission +- Section H&R ## System Requirements - PHP: 8.0, must have extensions: bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix, gmp - Mysql: 5.7 latest version or above diff --git a/README.md b/README.md index 9e7b4285..bfb4d790 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ - 自定义菜单 - 幸运大转盘 - 自定义角色权限 +- 分区 H&R ## 系统要求 - PHP: 8.0,必须扩展:bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix, gmp diff --git a/include/constants.php b/include/constants.php index 9b7b03c8..67c10ccb 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ 0) $clientselect .= ""; $clientselect .= sprintf('%s', get_agent($arr['peer_id'], $arr['agent'])); if (user_can('userprofile') || $user["id"] == $CURUSER["id"]) { - $clientselect .= sprintf('%s%s%s', $arr['ipv4'].$seedBoxRep->renderIcon($arr['ipv4'], $CURUSER['id']), $arr['ipv6'].$seedBoxRep->renderIcon($arr['ipv6'], $CURUSER['id']), $arr['port']); + $clientselect .= sprintf('%s%s%s', $arr['ipv4'].$seedBoxRep->renderIcon($arr['ipv4'], $user['id']), $arr['ipv6'].$seedBoxRep->renderIcon($arr['ipv6'], $user['id']), $arr['port']); } else { $clientselect .= sprintf('%s%s%s', '---', '---', '---'); }