aboutsummaryrefslogtreecommitdiff
path: root/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/admin.php b/admin.php
index ee50227..17da123 100644
--- a/admin.php
+++ b/admin.php
@@ -14,14 +14,16 @@ session_start();
<nav>
<a href="/index.php">Activity Plan</a>
<a href="/reservation.php">Make reservation</a>
+ <span class="right">
<?php
if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
- echo '<a class="right" href="/logout.php">Logout</a>';
- echo '<a class="active right" href="admin.php">Administration</a>';
+ echo '<a class="active" href="admin.php">Administration</a>';
+ echo '<a href="/logout.php">Logout</a>';
} else {
- echo '<a class="active right" href="/admin.php">Login</a>';
+ echo '<a class="active" href="/admin.php">Login</a>';
}
?>
+ </span>
</nav>
<main>
<?php