resources on user info page (thanks to Oleg Palij)
SVN Revision: 781
+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
_ ->
[?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),