Redirect to login in payments action if not logged in.
This commit is contained in:
parent
587e0037f1
commit
8a3ed5d264
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ class action_plugin_hackerbase extends DokuWiki_Action_Plugin
|
||||||
if ($act === 'payments') {
|
if ($act === 'payments') {
|
||||||
global $INPUT;
|
global $INPUT;
|
||||||
$user = $INPUT->server->str('REMOTE_USER');
|
$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");
|
echo file_get_contents($this->getConf("htmlexports") . '/' . $user . ".html");
|
||||||
die();
|
die();
|
||||||
} else if ($act === 'brmstatus') {
|
} else if ($act === 'brmstatus') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue