diff options
Diffstat (limited to 'app/view/templates/connect.php')
-rw-r--r-- | app/view/templates/connect.php | 30 |
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 |