Working plugin.
This commit is contained in:
parent
50178a2146
commit
b82a81ce2a
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ class action_plugin_brmburo extends DokuWiki_Action_Plugin
|
|||
public function handleActionActPreprocess(Doku_Event $event, $param) {
|
||||
$act = act_clean($event->data);
|
||||
if ($act === 'payments') {
|
||||
echo "test";
|
||||
global $INPUT;
|
||||
$user = preg_replace("/[^a-zA-Z0-9\-]+/", "", $INPUT->server->str('REMOTE_USER'));
|
||||
echo file_get_contents('/var/lib/jendasap/'.$user.".html");
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue