Redirect to login in payments action if not logged in.

This commit is contained in:
Dominik Pantůček 2023-11-07 18:35:12 +01:00
parent 587e0037f1
commit 8a3ed5d264

View file

@ -33,6 +33,10 @@ class action_plugin_hackerbase extends DokuWiki_Action_Plugin
if ($act === 'payments') {
global $INPUT;
$user = $INPUT->server->str('REMOTE_USER');
if (strlen($user) === 0) {
header("Location: /start?do=login");
die();
}
echo file_get_contents($this->getConf("htmlexports") . '/' . $user . ".html");
die();
} else if ($act === 'brmstatus') {