<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './phpBB3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$level = $user->data['group_id'];
$level = str_replace("1", "Анонимен", "$level");
$level = str_replace("2", "Потребител", "$level");
$level = str_replace("4", "Модератор", "$level");
$level = str_replace("5", "Администратор", "$level");
echo "$level";
$sid = $user->data['session_id']
?>
<?php
if ($user->data['user_id'] == ANONYMOUS)
{
echo"
<form action=\"". append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login', true, $user->session_id) . "\" method=\"post\">
<div id=\"text16\" style=\"position:absolute; overflow:hidden; left:545px; top:124px; width:42px; height:16px; z-index:34\"><div class=\"wpmd\">
<div><font color=\"#FFFFFF\" face=\"Tahoma\">Скрит:</font></div>
</div></div><input type=\"checkbox\" name=\"viewonline\" style=\"position:absolute;left:585px;top:123px;z-index:39\">
<input type=\"hidden\" name=\"mode\" value=\"login\">
<input type=\"hidden\" name=\"redirect\" value=\"index.php\">
<input type=\"hidden\" name=\"autologin\" value=\"1\">
<input name=\"login\" type=\"submit\" value=\"Вход\" style=\"position:absolute;left:613px;top:123px;height:21;z-index:44; border:#000000 1px solid; background-color:#727238\">
<div id=\"text13\" style=\"position:absolute; overflow:hidden; left:154px; top:123px; width:32px; height:16px; z-index:33\"><div class=\"wpmd\">
<div><font color=\"#FFFFFF\" face=\"Tahoma\">Име:</font></div>
</div></div><input name=\"username\" type=\"text\" style=\"position:absolute;width:145px;left:188px;top:123px;z-index:45; border:#000000 1px solid; background-color:#727238\">
<div id=\"text12\" style=\"position:absolute; overflow:hidden; left:342px; top:123px; width:51px; height:16px; z-index:32\"><div class=\"wpmd\">
<div><font color=\"#FFFFFF\" face=\"Tahoma\">Парола:</font></div>
</div></div><input name=\"password\" type=\"password\" style=\"position:absolute;width:145px;left:395px;top:123px;z-index:46; border:#000000 1px solid; background-color:#727238\">
</form>
<br />
<form action=\"". append_sid("{$phpbb_root_path}ucp.$phpEx?", 'mode=register', true, $user->session_id) . "\" method=\"post\">
<input type=\"hidden\" name=\"mode\" value=\"register\">
<input name=\"register\" type=\"submit\" value=\"Регистрация\" style=\"position:absolute;left:670px;top:123px;width:108px;height:21;z-index:33; border:#000000 1px solid; background-color:#727238\">
";
}
else
{
echo"
<div style=\"position:absolute; overflow:hidden; left:275px; top:125px; z-index:32;\"><div class=\"wpmd\">
<div><font color=\"#FFFF00\"><B>".$user->data['username']."</B></font></div>
</div></div>
<div style=\"position:absolute; overflow:hidden; left:710px; top:125px; z-index:35;\"><div class=\"wpmd\"><a href=\"http://cs-xipnoza.herobo.com/phpBB3/ucp.php?i=pm&folder=inbox\">
<div><font color=\"#FFFF00\"><B>[</B></font><font color=\"#FFFFFF\"><B>".$user->data['user_new_privmsg']."</B></font><font color=\"#FFFF00\"><B>]</B></font></div>
</div></div>
<div style=\"position:absolute; overflow:hidden; left:597px; top:125px; z-index:33;\"><div class=\"wpmd\"><a href=\"http://cs-xipnoza.herobo.com/phpBB3/search.php?search_id=egosearch\">
<div><font color=\"#FFFF00\"><B>[</B></font><font color=\"#FFFFFF\"><B>".$user->data['user_posts']."</B></font><font color=\"#FFFF00\"><B>]</B></font></div>
</div></div>
<div style=\"position:absolute; overflow:hidden; left:189px; top:125px; z-index:36;\"><div class=\"wpmd\">
<div><font color=\"#FFFFFF\"><B>Потребител:</B></font></div></div></div>
<div style=\"position:absolute; overflow:hidden; left:377px; top:125px; z-index:37;\"><div class=\"wpmd\">
<div><font color=\"#FFFFFF\"><B>Ранг:</B></font></div>
</div></div>
<div style=\"position:absolute; overflow:hidden; left:540px; top:125px; z-index:38;\"><div class=\"wpmd\">
<div><font color=\"#FFFFFF\"><B>Мнения:</B></font></div>
</div></div>
<div style=\"position:absolute; overflow:hidden; left:628px; top:125px; z-index:40;\"><div class=\"wpmd\">
<div><font color=\"#FFFFFF\"><B>Съобщения:</B></font></div>
</div></div>
<form action=\"". append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=logout', true, $user->session_id) . "\" method=\"post\">
<input type=\"hidden\" name=\"mode\" value=\"logout\">
<input name=\"logout\" type=\"submit\" value=\"Изход\" style=\"position:absolute;left:764px;top:123px;width:53px;height:20; z-index:40; border:#000000 1px solid; background-color:#727238\">
</form>
";
}
?>