1<?php 2 3/** 4 * DokuWiki DAVCard PlugIn - JSINFO component 5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 6 * @author Andreas Böhler <dev@aboehler.at> 7 */ 8 9if(!defined('DOKU_INC')) die(); 10 11class action_plugin_davcard_jsinfo extends DokuWiki_Action_Plugin { 12 13 function register(Doku_Event_Handler $controller) { 14 $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'add_jsinfo_information'); 15 } 16 17 /** 18 * Add the language variable to the JSINFO variable 19 */ 20 function add_jsinfo_information(Doku_Event $event, $param) { 21 global $JSINFO; 22 23 $JSINFO['plugin']['davcard']['sectok'] = getSecurityToken(); 24 } 25} 26