Tak to nevim,jeste tohle asi tak ne co?
<?PHP
if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
?>
<div id="userInfo">
<a href="index.php?s=logout">Odhlasit</a>
<a href="index.php?s=login">Uzivatelsky panel</a>
<a href="index.php?s=itemshop">Itemshop</a>
<?PHP
if($_SESSION['user_admin']>0) { echo'<a href="index.php?s=admin">Admin</a>'; }
?>
</div>
<?PHP
}
else {
?>
<form id="userInfo" style="margin:0;padding:0; float:right;" action="index.php?s=login" method="POST">
<input type="text" maxlength="16" size="10" name="userid"> <input type="password" maxlength="16" size="10" name="userpass"> <input type="submit" value="LOGIN" name="submit">
</form>
<?PHP
}
?>