mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
* src/web/ejabberd_web_admin.erl: Show IP address of connected
resources on user info page (thanks to Oleg Palij) SVN Revision: 781
This commit is contained in:
parent
3b7e23df5a
commit
241c49dc3c
@ -1,3 +1,8 @@
|
||||
2007-06-10 Alexey Shchepin <alexey@sevcom.net>
|
||||
|
||||
* src/web/ejabberd_web_admin.erl: Show IP address of connected
|
||||
resources on user info page (thanks to Oleg Palij)
|
||||
|
||||
2007-06-07 Alexey Shchepin <alexey@sevcom.net>
|
||||
|
||||
* src/ejabberd_config.erl: Fixed "language" option processing
|
||||
|
@ -1493,7 +1493,18 @@ user_info(User, Server, Query, Lang) ->
|
||||
_ ->
|
||||
[?XE("ul",
|
||||
lists:map(fun(R) ->
|
||||
?LI([?C(R)])
|
||||
FIP = case ejabberd_sm:get_user_ip(
|
||||
User, Server, R) of
|
||||
undefined ->
|
||||
"";
|
||||
{IP, Port} ->
|
||||
" (" ++
|
||||
inet_parse:ntoa(IP) ++
|
||||
":" ++
|
||||
integer_to_list(Port)
|
||||
++ ")"
|
||||
end,
|
||||
?LI([?C(R ++ FIP)])
|
||||
end, lists:sort(Resources)))]
|
||||
end,
|
||||
Password = ejabberd_auth:get_password_s(User, Server),
|
||||
|
Loading…
Reference in New Issue
Block a user