logout von form zu button mit get request geändert
This commit is contained in:
parent
3ce61ace17
commit
404e846418
@ -16,11 +16,7 @@
|
|||||||
<a id="link-infos" class="links" href="?controller=Welcome&do=showWelcome">Infos</a>
|
<a id="link-infos" class="links" href="?controller=Welcome&do=showWelcome">Infos</a>
|
||||||
<a id="link-profil" class="links" href="?controller=Profile&do=showProfile">Profil</a>
|
<a id="link-profil" class="links" href="?controller=Profile&do=showProfile">Profil</a>
|
||||||
<?php if (isset($_SESSION['user'])): ?>
|
<?php if (isset($_SESSION['user'])): ?>
|
||||||
<form method="post" action="index.php" style="display:inline;">
|
<a id="link-logout" class="links" href="?controller=Auth&do=logout">Logout</a>
|
||||||
<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: ?>
|
<?php else: ?>
|
||||||
<a id="link-login" class="links" href="?controller=Auth&do=showLoginForm">Login</a>
|
<a id="link-login" class="links" href="?controller=Auth&do=showLoginForm">Login</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user