aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/connect.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-11 17:19:26 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-11 17:19:26 +0100
commitd7f3313ff4514e38c9f53439cd1a1287e56e45f7 (patch)
treeabff39ab11cb317f5fcd2db558da1c59bdae9239 /app/view/templates/connect.php
parent2f363e8fa26ab849539e64ff7caa21bd164e8979 (diff)
downloadwcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.tar.gz
wcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.zip
reboot folder
Diffstat (limited to 'app/view/templates/connect.php')
-rw-r--r--app/view/templates/connect.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/view/templates/connect.php b/app/view/templates/connect.php
new file mode 100644
index 0000000..3e2aeba
--- /dev/null
+++ b/app/view/templates/connect.php
@@ -0,0 +1,30 @@
+<?php $this->layout('layout', ['title' => 'Connect', 'description' => 'connect']) ?>
+
+
+
+
+<?php $this->start('page') ?>
+
+<span>
+<?= $user->level() ?>
+</span>
+
+<?php if($user->isvisitor()) { ?>
+
+<form action="./?action=login" method="post">
+<input type="password" name="pass" id="loginpass" placeholder="password">
+<input type="submit" value="login">
+</form>
+
+
+<?php } else { ?>
+
+<form action="./?action=logout" method="post">
+<input type="submit" value="logout">
+</form>
+
+
+
+<?php } ?>
+
+<?php $this->stop() ?> \ No newline at end of file