diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-02 02:03:52 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-02 02:03:52 +0100 |
commit | 85824de70ded75c98bd50220160e2171fdc8df41 (patch) | |
tree | 11480f65ff97ddbb3ea4806ff1f313628ced15a0 /w/view/templates/connect.php | |
parent | 36ef34af2abcdea63a73b578208f20ca40b52f49 (diff) | |
download | wcms-85824de70ded75c98bd50220160e2171fdc8df41.tar.gz wcms-85824de70ded75c98bd50220160e2171fdc8df41.zip |
render working and url auto link
Diffstat (limited to 'w/view/templates/connect.php')
-rw-r--r-- | w/view/templates/connect.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/w/view/templates/connect.php b/w/view/templates/connect.php new file mode 100644 index 0000000..3e2aeba --- /dev/null +++ b/w/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 |