summaryrefslogtreecommitdiff
path: root/platform/www/lib/plugins/styling/popup.php
blob: 079062e43ec43cf89c02283113c670cda428bb1c (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
<?php
// phpcs:disable PSR1.Files.SideEffects
if (!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__) . '/../../../');
require_once(DOKU_INC . 'inc/init.php');
//close session
session_write_close();
header('Content-Type: text/html; charset=utf-8');
header('X-UA-Compatible: IE=edge,chrome=1');

/** @var admin_plugin_styling $plugin */
$plugin = plugin_load('admin', 'styling');
if (!$plugin->isAccessibleByCurrentUser()) die('only admins allowed');
$plugin->ispopup = true;

// handle posts
$plugin->handle();

// output plugin in a very minimal template:
?><!DOCTYPE html>
<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
<head>
    <meta charset="utf-8" />
    <title><?php echo $plugin->getLang('menu') ?></title>
    <?php tpl_metaheaders(false) ?>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <?php echo tpl_favicon(array('favicon')) ?>
</head>
<body class="dokuwiki">
    <?php $plugin->html() ?>
</body>
</html>