1<?php 2if(!defined('DOKU_INC')) die(); 3if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 4require_once(DOKU_PLUGIN.'action.php'); 5 6class action_plugin_crypt extends DokuWiki_Action_Plugin { 7 function register($controller) { 8 $controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this, '_hookjs'); 9 } 10 function _hookjs(&$event, $param) { 11 $event->data['script'][]=array('type'=>'text/javascript','charset'=>'utf-8' 12 ,'_data'=>'','_data'=>"addInitEvent(function() { return(decryptEditSetup()); });"); 13 } 14} 15