blob: 4964a475e14a8410fa0f190140abfc5bbe31672e (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<?php $this->layout('layout', ['title' => $art->title(), 'description' => $art->description()]) ?>
<?php $this->start('page') ?>
<body>
<?php $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?>
<?php
if($artexist) {
if($display) {
$this->insert('readart', ['art' => $art]);
} else {
echo '<h1>You dont have enought rights to see this article</h1>';
}
} else {
echo '<h1>This article does not exist yet</h1>';
if ($cancreate) {
$this->insert('readcreate', ['id' => $art->id()]);
}
}
?>
</body>
<?php $this->stop() ?>
|