<form action="<?=$arResult["AUTH_URL"]?>">
<table width="95%">
<tr>
<td align="center">
<?=$arResult["USER_NAME"]?><br />
[<?=$arResult["USER_LOGIN"]?>]<br />
<a href="<?=$arResult["PROFILE_URL"]?>" title="<?=GetMessage("AUTH_PROFILE")?>"><?=GetMessage("AUTH_PROFILE")?></a><br />
</td>
</tr>
<tr>
<td align="center">
<?foreach ($arResult["GET"] as $key => $value):?>
<input type="hidden" name="<?=$key?>" value="<?=$value?>" />
<?endforeach?>
<?=bitrix_sessid_post()?>
<input type="hidden" name="logout" value="yes" />
<input type="submit" name="logout_butt" value="<?=GetMessage("AUTH_LOGOUT_BUTTON")?>" />
</td>
</tr>
</table>
</form>
<a href="<?=$arResult["PROFILE_URL"]?>" title="<?=GetMessage("AUTH_PROFILE")?>"><?=$arResult["USER_NAME"]?></a><br />
[<?=$arResult["USER_LOGIN"]?>]<br />
<a href="<?=$APPLICATION->GetCurPageParam("logout=yes", array(
"login",
"logout",
"register",
"forgot_password",
"change_password"));?>"><?=GetMessage("AUTH_LOGOUT_BUTTON")?></a>