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

Denied   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A show() 0 9 3
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