Login/Logout jetzt in der Navi! News-Link ergänzt und Weiterleitungen gefixt (mit /bibarts/). Fehler nach Login behoben.
This commit is contained in:
@@ -13,9 +13,18 @@
|
||||
<div id="logo" ><a class="link-logo" href="#"></a></div>
|
||||
<a id="link-ausstellungen" class="links" href="?controller=Event&do=showEvents">Ausstellungen</a>
|
||||
<a id="link-tickets" class="links" href="#">Tickets</a>
|
||||
<a id="link-news" class="links" href="?controller=News&do=showNews">Startseite</a>
|
||||
<a id="link-news" class="links" href="/bibarts/?controller=News&do=showNews">News</a>
|
||||
<a id="link-profil" class="links" href="?controller=Contact&do=showContactForm">Profil</a>
|
||||
<div id="profile-picture"></div>
|
||||
<?php if (isset($_SESSION['user'])): ?>
|
||||
<form method="post" action="/bibarts/index.php" style="display:inline;">
|
||||
<input type="hidden" name="controller" value="Auth">
|
||||
<input type="hidden" name="do" value="logout">
|
||||
<button type="submit" class="links" style="background:none;border:none;cursor:pointer;">Logout</button>
|
||||
</form>
|
||||
<?php else: ?>
|
||||
<a class="links" href="?controller=Auth&do=showLoginForm">Login</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
Reference in New Issue
Block a user