User profile integration

When you click on "View Profile" in the chat menu, the new chat window with profile opens and chat sends a request to profile handler to get the user profile information.

User profile has the structure shown on the picture below:



where user's details that are on the right of the user's photo have the key - value format and additional information is an html text.

For user's details and additional information transmitting profile handler is used. It receives user name as a GET parameter ( $_GET[ 'user_name' ] ) and should return user profile information in the following XML format:

<profile>
<name>David</name>
<age>25</age>
<gender>Male</gender>
<info><![CDATA[Hello my name is ....]]></info>
</profile>