diff options
Diffstat (limited to 'admin/WebConsole/includes/restfunctions.php')
-rw-r--r-- | admin/WebConsole/includes/restfunctions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php index 4067f697..13f6e3a7 100644 --- a/admin/WebConsole/includes/restfunctions.php +++ b/admin/WebConsole/includes/restfunctions.php @@ -86,8 +86,8 @@ define('OG_SCHEDULE_COMMAND', 'command'); define('OG_SCHEDULE_PROCEDURE', 'procedure'); define('OG_SCHEDULE_TASK', 'task'); -$conf_file = parse_ini_file(__DIR__ . '/../../etc/ogserver.cfg'); -define('OG_REST_API_TOKEN', 'Authorization: ' . $conf_file['APITOKEN']); +$conf_file = json_decode(file_get_contents(__DIR__ . '/../../etc/ogserver.json'), true); +define('OG_REST_API_TOKEN', 'Authorization: ' . $conf_file['rest']['api_token']); function common_request($command, $type, $data = null) { |