blob: 3e2aebafe2af2ae5a2075086b054a1afe8e628f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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() ?>
|