about summary refs log tree commit diff stats
path: root/wiki/conf/local.php
blob: b0cc327f3198dcb597440d2b8ba056bbcc1b80e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
<?php
/**
 * Dokuwiki's Main Configuration File - Local Settings
 * Auto-generated by install script
 * Date: Tue, 04 Dec 2018 00:11:39 +0000
 */
$conf['title'] = 'tilde.institute';
$conf['lang'] = 'en';
$conf['license'] = 'cc-by-nc-sa';
$conf['useacl'] = 1;
$conf['superuser'] = '@admin';
pan>"time" ) // GetRes returns api response func GetRes(api string, params map[string]string) (string, error) { c := http.Client{ // TODO: timeout should be configurable by the user Timeout: time.Second * 64, } req, err := http.NewRequest(http.MethodGet, api, nil) if err != nil { return "", err } q := req.URL.Query() for k, v := range params { q.Add(k, v) } req.URL.RawQuery = q.Encode() res, err := c.Do(req) if err != nil { return "", err } defer res.Body.Close() if res.StatusCode != 200 { return "", fmt.Errorf("Unexpected response status code received: %d %s", res.StatusCode, http.StatusText(res.StatusCode)) } body, err := ioutil.ReadAll(res.Body) if err != nil { return "", err } return string(body), err }