3 if(!defined('DOKU_INC')) die();
4 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC
.'lib/plugins/');
5 require_once DOKU_PLUGIN
.'action.php';
7 class action_plugin_svgedit
extends DokuWiki_Action_Plugin
{
10 return array('author' => 'Thomas Mudrunka',
11 'email' => 'harvie--email-cz',
12 'date' => '2010-02-21',
13 'name' => 'SVG-Edit Plugin (do=export_svg handler)',
14 'desc' => 'Adds handler to have clean way for exporting SVGs',
15 'url' => 'http://www.dokuwiki.org/plugin:svgedit'
19 function register(Doku_Event_Handler
$controller) {
20 $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this,
24 function _hookdo(Doku_Event
$event, $param) {
26 if($event->data
=== 'export_svg' && auth_quickaclcheck($ID) >= AUTH_READ
) {
27 header('Content-type: image/svg+xml');
This page took 0.350863 seconds and 5 git commands to generate.