tu je kod:
Kód: Vybrať všetko
if (iMEMBER)
{
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a>\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'>".$locale['global_121']."</a>\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'>".$locale['global_122']."</a>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a>\n";
}
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['global_124']."</a>\n";
if ($msg_count) { echo "<div style='text-align:center'><strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong></div>\n"; }
}
else
{
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo "<b>Meno: <b/><input type='text' name='user_name' class='textbox' style='width:100px' />\n";
echo "<b>Heslo: </b><input type='password' name='user_pass' class='textbox' style='width:100px' />\n";
echo "<input type='submit' name='login' value='Prihlasit sa' class='button' />\n";
echo "</form>\n";
echo "<input type='button' name='zaregistrovat' value='Zaregistrovat' class='button' onClick=\"location.href=".BASEDIR."'register.php'\" />\n";
echo "<input type='button' name='zabudnuteheslo' value='Nove heslo' class='button' onClick=\"location.href=".BASEDIR."'lostpassword.php'\" />\n";
}dik.