mirror of
https://github.com/unraid/webgui.git
synced 2026-02-09 10:29:09 -06:00
13 lines
421 B
PHP
13 lines
421 B
PHP
<?php
|
|
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
|
$var = (array)parse_ini_file('state/var.ini');
|
|
|
|
require_once "$docroot/webGui/include/Wrappers.php";
|
|
require_once "$docroot/webGui/include/Helpers.php";
|
|
extract(parse_plugin_cfg('dynamix',true));
|
|
require_once "$docroot/plugins/dynamix.my.servers/include/state.php";
|
|
|
|
header('Content-type: application/json');
|
|
|
|
echo json_encode($serverState);
|