blob: ab2a5260410745ca24a5509496251f610b6d7b23 (
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
namespace Wcms;
use Michelf\MarkdownExtra;
class Controllerinfo extends Controller
{
public function __construct($render){
parent::__construct($render);
}
public function desktop()
{
if($this->user->iseditor()) {
if(file_exists(Model::MAN_FILE)) {
$render = new Modelrender($this->router);
$htmlman = file_get_contents(Model::MAN_FILE);
$htmlman = $render->rendermanual($htmlman);
$sum = new Summary(['max' => 4, 'sum' => $render->sum()]);
$summary = $sum->sumparser();
$this->showtemplate('info', ['version' => getversion(), 'manual' => $htmlman, 'summary' => $summary]);
}
}
}
}
?>
|