Adding passwords and versionning

This commit is contained in:
2026-03-11 10:43:23 -04:00
parent 20ed0eeadb
commit e0fe0c4d34
10 changed files with 341 additions and 6 deletions

View File

@@ -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>