aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/hometopbar.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates/hometopbar.php')
-rw-r--r--app/view/templates/hometopbar.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/view/templates/hometopbar.php b/app/view/templates/hometopbar.php
new file mode 100644
index 0000000..0640119
--- /dev/null
+++ b/app/view/templates/hometopbar.php
@@ -0,0 +1,36 @@
+<div id="topbar">
+
+<?php if($user->isvisitor()) { ?>
+
+
+<form action="<?= $this->url('log') ?>" method="post">
+<input type="password" name="pass" id="loginpass" placeholder="password">
+<input type="submit" name="log" value="login">
+</form>
+
+
+<?php } else { ?>
+
+<form action="<?= $this->url('log') ?>" method="post">
+<input type="submit" name="log" value="logout">
+</form>
+
+<span>
+User level : <?= $user->level() ?>
+</span>
+
+<?php } ?>
+
+<?php if($user->canedit()) { ?>
+
+
+<span>
+| <a href="">media</a>
+| <a href="">admin</a>
+</span>
+
+
+
+<?php } ?>
+
+</div> \ No newline at end of file