Dokuwiki plugin compatibility with current version.
This commit is contained in:
parent
00ce55e01f
commit
8545c2512e
3 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ class action_plugin_hackerbase extends DokuWiki_Action_Plugin
|
||||||
$act = act_clean($event->data);
|
$act = act_clean($event->data);
|
||||||
if ($act === 'payments') {
|
if ($act === 'payments') {
|
||||||
global $INPUT;
|
global $INPUT;
|
||||||
$user = preg_replace("/[^a-zA-Z0-9\-]+/", "", $INPUT->server->str('REMOTE_USER'));
|
$user = $INPUT->server->str('REMOTE_USER');
|
||||||
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') {
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
$conf["htmlexports"] = "/var/lib/jendasap";
|
$conf["htmlexports"] = "/var/lib/hackerbase/dokuwiki";
|
||||||
$conf["spaceapijson"] = "/home/brmdoor-web/spaceapi-status/brmstatus.json";
|
$conf["spaceapijson"] = "/home/brmdoor-web/spaceapi-status/brmstatus.json";
|
||||||
|
|
|
@ -223,7 +223,7 @@ download_year_month() {
|
||||||
fname="$4"
|
fname="$4"
|
||||||
STARTDATE="$year-$month-01"
|
STARTDATE="$year-$month-01"
|
||||||
ENDDATE=`end_of_month $year $month 1`
|
ENDDATE=`end_of_month $year $month 1`
|
||||||
log "Downloading ${APIURI}/periods/.../$STARTDATE/$ENDDATE/transactions.csv to $fname"
|
log "Downloading ${APIURI}/periods/$apikey/$STARTDATE/$ENDDATE/transactions.csv to $fname"
|
||||||
download_file "${APIURI}/periods/$apikey/$STARTDATE/$ENDDATE/transactions.csv" "$fname"
|
download_file "${APIURI}/periods/$apikey/$STARTDATE/$ENDDATE/transactions.csv" "$fname"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue