register_hook('TPL_ACT_RENDER', 'AFTER', $this, 'legalnotice'); } function legalnotice(&$event, $param) { global $conf,$ACT; if(($ACT!='login') && ($ACT!='denied')) return; echo p_render('xhtml', p_get_instructions($this->getConf('text')), $info); } }