mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2026-06-02 05:54:42 -04:00
- System : fix to get the distro name
- Services : fix on service names with accent - Services : ability to specify a host for each service - Network usage : fix to retrieve the name of the network interfaces - Memory : the cached and buffers memory are added to free memory now - Load Average : taking into account the number of cores - Disk usage : new option to hide tmpfs mountpoints - General : remove all PHP short tags
This commit is contained in:
@@ -7,7 +7,7 @@ class Config
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->file = $_SERVER['DOCUMENT_ROOT'].'/esm.config.json';
|
||||
$this->file = __DIR__.'/../../esm.config.json';
|
||||
|
||||
if (file_exists($this->file))
|
||||
$this->_readFile();
|
||||
@@ -16,7 +16,7 @@ class Config
|
||||
private function _readFile()
|
||||
{
|
||||
$content = file_get_contents($this->file);
|
||||
$this->config = json_decode($content, true);
|
||||
$this->config = json_decode(utf8_encode($content), true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user