aboutsummaryrefslogtreecommitdiff
path: root/admin.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-04 15:58:27 +0200
committerMateja <mail@matejamaric.com>2020-10-04 15:58:27 +0200
commitaa11550b9e05f9a5f9a091bc524cabf1c3a8bda0 (patch)
tree472c9a7869329656485fb984de08ebea24c9b593 /admin.php
parent7c68757f672691d29c749fcbf3a95b22baffcede (diff)
downloadold-php-yota-aa11550b9e05f9a5f9a091bc524cabf1c3a8bda0.tar.gz
old-php-yota-aa11550b9e05f9a5f9a091bc524cabf1c3a8bda0.zip
Release 0.1
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