1<?php 2/** 3 * passwordgenerator Plugin 4 * 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author An-Dir <1.c-j@gmx.de> 7 */ 8 9if(!defined('DOKU_INC')) die(); 10if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 11 12require_once(DOKU_PLUGIN.'action.php'); 13 14class action_plugin_passwordgenerator extends DokuWiki_Action_Plugin { 15function register(Doku_Event_Handler $controller) { 16 $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, '_addpluginconfigdata'); 17} 18function _addpluginconfigdata(&$event, $param) { 19 global $JSINFO; 20 $JSINFO['plugin_passwordgenerator_charset1'] = $this->getConf('charset1'); 21 $JSINFO['plugin_passwordgenerator_charset2'] = $this->getConf('charset2'); 22 $JSINFO['plugin_passwordgenerator_charset3'] = $this->getConf('charset3'); 23 $JSINFO['plugin_passwordgenerator_charset4'] = $this->getConf('charset4'); 24 $JSINFO['plugin_passwordgenerator_generator1Length'] = $this->getConf('generator1Length'); 25 $JSINFO['plugin_passwordgenerator_removeSelection'] = $this->getConf('removeSelection'); 26} 27} 28