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);
|
||||
if ($act === 'payments') {
|
||||
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");
|
||||
die();
|
||||
} else if ($act === 'brmstatus') {
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
$conf["htmlexports"] = "/var/lib/jendasap";
|
||||
$conf["htmlexports"] = "/var/lib/hackerbase/dokuwiki";
|
||||
$conf["spaceapijson"] = "/home/brmdoor-web/spaceapi-status/brmstatus.json";
|
||||
|
|
|
@ -223,7 +223,7 @@ download_year_month() {
|
|||
fname="$4"
|
||||
STARTDATE="$year-$month-01"
|
||||
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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue