<?php
if ($is_logged == TRUE){
if (trim($member_id['foto']) == "") {
$foto = $config['http_home_url']."{THEME}/images/noavatar.png";
} else {
$foto = $config['http_home_url']."uploads/fotos/".$member_id['foto'];
}
$login_panel = <<<HTML
<div class="reg2"> <a href="#?w=316" rel="popup_name" class="poplight">Панель польз.</a> <a href="{$link_logout}">Попрощаться</a></strong>
<div class="popup_block" id="popup_name" style="display: none; width: 316px; margin-top: -144px; margin-left: -198px;">
<img width="100" height="100" style="border: 1px solid rgb(109, 105, 104); float: left; margin:90px 0 0 28px" alt="" src="{$foto}"><div class="log_in"> <a href="{$link_profile}">» Мой профиль</a> -
HTML;
if ($user_group[$member_id['user_group']]['allow_admin']) {
$login_panel .= <<<HTML
<a href="{$adminlink}" target="_blank">Админцентр</a>
HTML;
}
$login_panel .= <<<HTML
<br><a href="{$link_pm}">» ПС ({$member_id['pm_unread']} | {$member_id['pm_all']})</a><br>
<a href="{$link_favorites}">» Мои закладки</a><br>
<a href="{$link_addnews}">» Опубликовать</a><br>
<a href="{$link_stats}">» Статистика</a><br>
<a href="{$link_newposts}">» Непрочитанное</a></div><div align="right" class="log_in_exit"><a href="{$link_logout}" onclick="javascript: showBusyLayer()"><strong>Выход</strong></a></div>
</div></div>
HTML;
} else {
$login_panel = <<<HTML
<div class="reg"> <a class="poplight" rel="popup_name" href="#?w=316">Авторизация</a> <a href="/index.php?do=register">Регистрация</a>
<div class="popup_block" id="popup_name" style="display: none; width: 316px; margin-top: -144.5px; margin-left: -198px;">
<div style="margin-top: 90px;">
<form method="post" action=''>
<input name="login" type="hidden" id="login" value="submit" />
<div class="pas">
<div class="log">
<input type="text" onfocus="this.value = '';" onblur="if(this.value=='') this.value='Логин';" value="Логин" class="a_field" name="login_name">
<div style="height: 5px;"></div>
<input type="password" onfocus="this.value = '';" onblur="if(this.value=='') this.value='пароль';" value="пароль" class="a_field" name="login_password">
</div>
</div>
<input type="image" alt="Login" class="log_in2" src="{THEME}/images/spacer.gif" name="image" onclick="submit();">
<div class="but_reg"> » <a href="/index.php?do=lostpassword">Напомнить пароль?</a><br>
» <a href="/index.php?do=register">Регистрация!</a> </div>
</form>
</div>
</div>
</div>
HTML;
}
?>