summaryrefslogtreecommitdiff
path: root/lib/plugins/styling/popup.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-06-26 12:57:58 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-06-26 12:57:58 +0200
commit6667cd8743e57a4492cfbcbe1066ea48d444f7a2 (patch)
tree3c420d60f9497a747ad887c5be1d948bb3d8b762 /lib/plugins/styling/popup.php
parent86c97e91e4aa9ed17ed75df279181e4b61353c7c (diff)
downloadrpg-6667cd8743e57a4492cfbcbe1066ea48d444f7a2.tar.gz
rpg-6667cd8743e57a4492cfbcbe1066ea48d444f7a2.tar.bz2
changed the whole thing to a real popup
Diffstat (limited to 'lib/plugins/styling/popup.php')
-rw-r--r--lib/plugins/styling/popup.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/plugins/styling/popup.php b/lib/plugins/styling/popup.php
new file mode 100644
index 000000000..eea4f3bfd
--- /dev/null
+++ b/lib/plugins/styling/popup.php
@@ -0,0 +1,28 @@
+<?php
+if(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__) . '/../../../');
+require_once(DOKU_INC . 'inc/init.php');
+//close session
+session_write_close();
+header('Content-Type: text/html; charset=utf-8');
+
+/** @var admin_plugin_styling $plugin */
+$plugin = plugin_load('admin', 'styling');
+if(!auth_isadmin()) die('only admins allowed');
+$plugin->ispopup = true;
+
+// handle posts
+$plugin->handle();
+
+// output plugin in a very minimal template:
+?>
+<html>
+<head>
+ <title><?php echo $plugin->getLang('menu') ?></title>
+ <?php tpl_metaheaders(false) ?>
+</head>
+<body>
+ <div class="dokuwiki page">
+ <?php $plugin->html() ?>
+ </div>
+</body>
+</html>