aboutsummaryrefslogtreecommitdiff
path: root/app/class/Controllerinfo.php
blob: fd8232cabf11f54e142be46264a251b41ce5e54e (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
<?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);

                $summary = $render->sumparser(2, 3);


                $this->showtemplate('info', ['version' => getversion(), 'manual' => $htmlman, 'summary' => $summary]);

            }

        }
    }



  


}


?>