blob: 5d7ee5ceec5a44da9dacd7944318d0a545159507 (
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
31
32
33
34
|
<?php $this->layout('layout', ['title' => 'Connect', 'description' => 'connect', 'css' => $css . 'connect.css']) ?>
<?php $this->start('page') ?>
<span>
<?= $user->level() ?>
</span>
<?php if($user->isvisitor()) { ?>
<?= $route === 'artedit' ? '<p>Your edits have been temporary saved. You need to connect and update to store it completly</p>' : '' ?>
<form action="<?= $this->url('log') ?>" method="post">
<input type="hidden" name="route" value="<?= $route ?>">
<input type="hidden" name="id" value="<?= $id ?>">
<input type="password" name="pass" id="loginpass" placeholder="password">
<input name="log" type="submit" value="login">
</form>
<?php } else { ?>
<form action="<?= $this->url('log') ?>" method="post">
<input name="log" type="submit" value="logout">
</form>
<?php } ?>
<?php $this->stop() ?>
|