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';
|
||||
|
||||
$nodes = get_all_nodes();
|
||||
@@ -36,6 +38,10 @@ $max_port_cnt = $t_ports ? max(array_column($t_ports, 'cnt')) : 1;
|
||||
<nav>
|
||||
<a href="index.php" class="active">Dashboard</a>
|
||||
<a href="nodes.php">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>
|
||||
@@ -195,5 +201,6 @@ $max_port_cnt = $t_ports ? max(array_column($t_ports, 'cnt')) : 1;
|
||||
</p>
|
||||
|
||||
</main>
|
||||
<?php include __DIR__ . '/includes/footer.php'; ?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user