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