1<?php
2// phpcs:disable PSR1.Files.SideEffects
3if (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/../../../');
4require_once(DOKU_INC . 'inc/init.php');
5//close session
6session_write_close();
7header('Content-Type: text/html; charset=utf-8');
8header('X-UA-Compatible: IE=edge,chrome=1');
9
10/** @var admin_plugin_styling $plugin */
11$plugin = plugin_load('admin', 'styling');
12if (!$plugin->isAccessibleByCurrentUser()) die('only admins allowed');
13$plugin->ispopup = true;
14
15// handle posts
16$plugin->handle();
17
18// output plugin in a very minimal template:
19?><!DOCTYPE html>
20<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
21<head>
22    <meta charset="utf-8" />
23    <title><?php echo $plugin->getLang('menu') ?></title>
24    <?php tpl_metaheaders(false) ?>
25    <meta name="viewport" content="width=device-width,initial-scale=1" />
26    <?php echo tpl_favicon(['favicon']) ?>
27</head>
28<body class="dokuwiki">
29    <?php $plugin->html() ?>
30</body>
31</html>
32