[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/plugins/styling/ -> popup.php (source)

   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  
  10  /** @var admin_plugin_styling $plugin */
  11  $plugin = plugin_load('admin', 'styling');
  12  if (!$plugin->isAccessibleByCurrentUser()) die('only admins allowed');
  13  $plugin->ispopup = true;
  14  
  15  // handle posts
  16  $plugin->handle();
  17  
  18  // output plugin in a very minimal template:
  19  ?><!DOCTYPE html>
  20  <html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
  21  <head>
  22      <meta charset="utf-8" />
  23      <title><?php echo $plugin->getLang('menu') ?></title>
  24      <?php tpl_metaheaders(false) ?>
  25      <meta name="viewport" content="width=device-width,initial-scale=1" />
  26      <?php echo tpl_favicon(array('favicon')) ?>
  27  </head>
  28  <body class="dokuwiki">
  29      <?php $plugin->html() ?>
  30  </body>
  31  </html>