what is order list for?

160
.
show only for logeed user
show only for unlogeed user
show only for admin
.
.
(\/)____o_O____(\/)
Mezo, http://johncms.com/users/index ... nline ?
.
i mean if i wont show
"hello"
only for logeed user

and only for
unlogeed user
and only for
admin
what i need to do this
in php
.
(\/)____o_O____(\/)
Mezo, if (!$user_id){
// guest
} elseif ($user_id) {
// login user
} elseif ($rights > 0) {
// mod smd
} elseif ($rights > 6) {
// adm sv
}
.
.
Mezo
echo '<div class="gmenu"><form action="login.php" method="post"><p>' . $lng['login_name'] . ':<br/>' .
            '<input type="text" name="n" value="' . htmlentities($user_login, ENT_QUOTES, 'UTF-8') . '" maxlength="20"/>' .
            '<br/>' . $lng['password'] . ':<br/>' .
            '<input type="password" name="p" maxlength="20"/></p>' .
            '<p><input type="checkbox" name="mem" value="1" checked="checked"/>' . $lng['remember'] . '</p>' .
            '<p><input type="submit" value="' . $lng['login'] . '"/></p>' .
            '</form></div>' .
            '<div class="menu"><p>' . functions::image('user.png') . '<a href="registration.php">' . $lng['registration'] . '</a></p></div>' .
            '<div class="bmenu"><p>' . functions::image('lock.png') . '<a href="users/skl.php?continue">' . $lng['forgotten_password'] . '?</a></p></div>';

sorry but i"m new in php i ned help
i wont show login code in mainmenu only for guest
edit this and thank you
.
(\/)____o_O____(\/)
if (!$user_id) {
// this code
}
.
ooook
Всего: 9