<?php
/*
UserCake Version: 2.0.2
http://usercake.com
*/

if (!securePage($_SERVER['PHP_SELF'])){die();}
?>
<nav>
  <ul class="mainmenu">
    <li><a href="index.php">Početna</a></li>
    <?php if(isUserLoggedIn()): ?>
    <li><a href="upload-photo.php">Postavite fotografiju</a></li>
    <li><a href="top-lista.php">Top lista</a></li>
    <?php endif; ?>
    <li><a href="Pravila_foto_konkursa_Podeli_radost_Coca-Cola.pdf" target="_blank">Pravila</a></li>
    
  </ul>
  
  <div class="login">
    <p>
			<?php if(isUserLoggedIn()) : ?>
    		Pozdrav <?php echo $loggedInUser->displayname; ?> | <a href='logout.php'>Logout</a>
			<?php else: ?>
      	<a href='login.php'>Login</a> | <a href='register.php'>Registrujte se</a> | <a href='forgot-password.php'>Zaboravili ste lozinku?</a>
      <?php endif; ?>
    </p>
  </div>
</nav>