popup.php 992 B

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