1<?php
2  if(!defined('DOKU_INC')) die();
3  if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
4
5  class action_plugin_legalnotice extends DokuWiki_Action_Plugin {
6
7  function register(Doku_Event_Handler $controller) {
8      $controller->register_hook('TPL_ACT_RENDER', 'AFTER',  $this, 'legalnotice');
9    }
10
11    function legalnotice(&$event, $param) {
12	global $conf,$ACT;
13
14	if(($ACT!='login') && ($ACT!='denied')) return;
15	echo p_render('xhtml', p_get_instructions($this->getConf('text')), $info);
16    }
17
18  }
19