<?php
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
// Start banner code / Banerio kodas
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td height='250' background='".THEME."media/header.jpg' align='right' valign='bottom' style='padding-bottom: 30px;' class='full-header'>
<table width='900' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td> </td>
<td width='220' align='center'>";
// Jei narys, prisijungimas atrodo taip
if (iMEMBER) {
openside2($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50'></center>\n";
} else {
echo "<center><img src='".THEME."media/no.png' width='50' height='50'></center>\n";
}
echo "</td>
<td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='sonas'>Edytuj profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='sonas'>Wiadomo¶ci</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='sonas'>Użytkownicy</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='sonas'>Administracja</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='sonas'>Wyloguj</a>\n";"
<td><img src='".THEME."images/blank.gif'></td>
</tr>
</table>
\n";
// Jei ne narys
} else {
openside2("Logowanie");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userlogin.gif' align='center' class='side2'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right'>Użytkownik: </td>
<td> <input type='text' name='user_name' class='textbox2' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'>Hasło: </td>
<td> <input type='password' name='user_pass' class='textbox2' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Zaloguj' class='button2'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Rejestracja</a> | <a href=".BASEDIR."lostpassword.php>Jakie hasło?</a>\n";
}
echo"</div>\n";
}
closeside2();
echo "</td>
<td><img src='".THEME."images/blank.gif'></td>
</tr>
</table>
</td>";
echo "</tr></table></td></tr></table>\n";
// End banner code / Banerio kodo pabaiga
echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header'>\n<tr>";
echo "<td>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
echo ($i == 0 ? " " : "")."</td>";
echo "</td></tr></table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>
</table>\n";
?>