Adding passwords and versionning
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/includes/auth.php';
|
||||
require_login();
|
||||
require_once __DIR__ . '/includes/functions.php';
|
||||
|
||||
$errors = [];
|
||||
@@ -65,6 +67,10 @@ if (isset($_GET['edit'])) {
|
||||
<nav>
|
||||
<a href="index.php">Dashboard</a>
|
||||
<a href="nodes.php" class="active">Nodes</a>
|
||||
<a href="settings.php">Settings</a>
|
||||
<?php if (auth_enabled()): ?>
|
||||
<a href="logout.php" style="color:var(--muted)">Sign out</a>
|
||||
<?php endif; ?>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
@@ -163,5 +169,6 @@ if (isset($_GET['edit'])) {
|
||||
</section>
|
||||
|
||||
</main>
|
||||
<?php include __DIR__ . '/includes/footer.php'; ?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user