Failed Conditions
Pull Request — master (#3198)
by
unknown
02:57
created

Denied::show()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
nc 2
nop 0
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
1
<?php
2
3
namespace dokuwiki\Ui;
4
5
use dokuwiki\Extension\Event;
6
use dokuwiki\Form\Form;
7
8
/**
9
 * DokuWiki Denied Insterface
10
 *
11
 * @package dokuwiki\Ui
12
 */
13
class Denied extends Ui
14
{
15
    /**
16
     * Show denied page content
17
     *
18
     * @author   Andreas Gohr <[email protected]>
19
     *
20
     * @return void
21
     */
22
    public function show()
23
    {
24
        // print intro
25
        print p_locale_xhtml('denied');
26
27
        if (empty($_SERVER['REMOTE_USER']) && actionOK('login')) {
28
            (new Login)->show();
29
        }
30
    }
31
32
}
33