Remove Ui\{Denide, Locked} class
[dokuwiki.git] / inc / Action / Denied.php
blob1daac22b354f145b26c2479cb5173edb6080df66
1 <?php
3 namespace dokuwiki\Action;
5 use dokuwiki\Ui;
7 /**
8 * Class Denied
10 * Show the access denied screen
12 * @package dokuwiki\Action
14 class Denied extends AbstractAclAction
16 /** @inheritdoc */
17 public function minimumPermission()
19 return AUTH_NONE;
22 /** @inheritdoc */
23 public function tplContent()
25 $this->showBanner();
26 if (empty($_SERVER['REMOTE_USER']) && actionOK('login')) {
27 (new Ui\Login)->show();
31 /**
32 * Display error on denied pages
34 * @author Andreas Gohr <andi@splitbrain.org>
36 * @return void
38 protected function showBanner()
40 // print intro
41 print p_locale_xhtml('denied');