summaryrefslogtreecommitdiffstats
path: root/templates/menu.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/menu.tpl.php')
-rw-r--r--templates/menu.tpl.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/menu.tpl.php b/templates/menu.tpl.php
new file mode 100644
index 0000000..4c3913a
--- /dev/null
+++ b/templates/menu.tpl.php
@@ -0,0 +1,11 @@
+<?php
+ session_start();
+ if (isset($_SESSION["user"])) {
+ echo "Logged in as user <b>" . $_SESSION["user"] . "</b> (<a href='?logout'>logout</a>)";
+ }
+?>
+
+<div id="menu">
+ <a href="?login"><img src="images/cards/1.png" alt="card" /></a><a href="?highscores"><img src="images/cards/2.png" alt="card" /></a><a href="?impressum"><img src="images/cards/3.png" alt="card" /></a>
+ <p>New Game</p><p>Highscores</p><p>Impressum</p>
+</div>