xref: /dokuwiki/lib/plugins/styling/popup.php (revision 6667cd8743e57a4492cfbcbe1066ea48d444f7a2)
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');
7
8/** @var admin_plugin_styling $plugin */
9$plugin = plugin_load('admin', 'styling');
10if(!auth_isadmin()) die('only admins allowed');
11$plugin->ispopup = true;
12
13// handle posts
14$plugin->handle();
15
16// output plugin in a very minimal template:
17?>
18<html>
19<head>
20    <title><?php echo $plugin->getLang('menu') ?></title>
21    <?php tpl_metaheaders(false) ?>
22</head>
23<body>
24    <div class="dokuwiki page">
25        <?php $plugin->html() ?>
26    </div>
27</body>
28</html>
29