xref: /dokuwiki/lib/plugins/styling/popup.php (revision 6667cd8743e57a4492cfbcbe1066ea48d444f7a2)
1*6667cd87SAndreas Gohr<?php
2*6667cd87SAndreas Gohrif(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__) . '/../../../');
3*6667cd87SAndreas Gohrrequire_once(DOKU_INC . 'inc/init.php');
4*6667cd87SAndreas Gohr//close session
5*6667cd87SAndreas Gohrsession_write_close();
6*6667cd87SAndreas Gohrheader('Content-Type: text/html; charset=utf-8');
7*6667cd87SAndreas Gohr
8*6667cd87SAndreas Gohr/** @var admin_plugin_styling $plugin */
9*6667cd87SAndreas Gohr$plugin = plugin_load('admin', 'styling');
10*6667cd87SAndreas Gohrif(!auth_isadmin()) die('only admins allowed');
11*6667cd87SAndreas Gohr$plugin->ispopup = true;
12*6667cd87SAndreas Gohr
13*6667cd87SAndreas Gohr// handle posts
14*6667cd87SAndreas Gohr$plugin->handle();
15*6667cd87SAndreas Gohr
16*6667cd87SAndreas Gohr// output plugin in a very minimal template:
17*6667cd87SAndreas Gohr?>
18*6667cd87SAndreas Gohr<html>
19*6667cd87SAndreas Gohr<head>
20*6667cd87SAndreas Gohr    <title><?php echo $plugin->getLang('menu') ?></title>
21*6667cd87SAndreas Gohr    <?php tpl_metaheaders(false) ?>
22*6667cd87SAndreas Gohr</head>
23*6667cd87SAndreas Gohr<body>
24*6667cd87SAndreas Gohr    <div class="dokuwiki page">
25*6667cd87SAndreas Gohr        <?php $plugin->html() ?>
26*6667cd87SAndreas Gohr    </div>
27*6667cd87SAndreas Gohr</body>
28*6667cd87SAndreas Gohr</html>
29