Compare commits
No commits in common. "a4d6aeea18ca98daae247fe3b190249b9c702d26" and "97137da6b949b8c3c6e04c653b26bb5d6579ecfb" have entirely different histories.
a4d6aeea18
...
97137da6b9
@ -1,4 +1,5 @@
|
|||||||
<?php include dirname(__DIR__).'/header.phtml'; ?>
|
<?php include dirname(__DIR__).'/header.phtml'; ?>
|
||||||
|
<script src="JavaScript/script.js"></script>
|
||||||
<div class="form-container">
|
<div class="form-container">
|
||||||
<h2>Login</h2>
|
<h2>Login</h2>
|
||||||
<form id="login-form" method="POST">
|
<form id="login-form" method="POST">
|
||||||
|
@ -8,27 +8,13 @@
|
|||||||
<script src="JavaScript/script.js"></script>
|
<script src="JavaScript/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="top-bar">
|
<header>
|
||||||
<h1>Notes App <?php if($_SESSION['role'] === 'admin') echo "<span style='font-size:0.7em; color:#ffdd57;'>(Admin Panel)</span>"; ?></h1>
|
<div class="wrapper">
|
||||||
<?php if (isset($_SESSION['user_id'])): ?>
|
<div class="button">
|
||||||
<div class="user-info">
|
<a href="?controller=User&do=showUserLoginForm">Anmelden</a>
|
||||||
<span>Welcome, <?php echo htmlspecialchars($_SESSION['username'], ENT_QUOTES, 'UTF-8'); ?>!</span>
|
|
||||||
<form id="logout-form" method="POST" style="display: inline;">
|
|
||||||
<input type="hidden" name="action" value="logout">
|
|
||||||
<button type="submit" class="icon-button" title="Logout">→</button>
|
|
||||||
</form>
|
|
||||||
<!-- <button class="icon-button" title="More options">⋮</button> -->
|
|
||||||
</div>
|
</div>
|
||||||
<?php else: ?>
|
<h1>Notes<span>.de</span></h1>
|
||||||
<div class="user-info">
|
</div>
|
||||||
<?php if (!isset($_SESSION['user_id'])): ?>
|
|
||||||
<a href="?controller=User&do=showUserLoginForm">Login</a>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if (!isset($_SESSION['user_id'])): ?>
|
|
||||||
<a href="?controller=User&do=showUserRegisterForm">Register</a>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
</header>
|
</header>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user