From 8a3ed5d2649b3d7d85b75058df978f136a57328e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Tue, 7 Nov 2023 18:35:12 +0100 Subject: [PATCH] Redirect to login in payments action if not logged in. --- dokuwiki/action.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dokuwiki/action.php b/dokuwiki/action.php index e54b8e9..fa0dc38 100644 --- a/dokuwiki/action.php +++ b/dokuwiki/action.php @@ -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') {