mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2026-06-05 23:45:02 -04:00
General : cleaning and optimizing CSS
General : responsive design General : reload button now spins when you reload block General : update jQuery plugin Knob to 1.2.11 General : optimizing security (config file esm.config.json is now in the conf/ folder with an htaccess) CPU : retrieves correctly CPU frequency for Raspberry Pi CPU : add CPU temperature (+ option to enable/disable) System : little correction for getting distro name Swap : fix if swap is disabled Services status : adds protocol TCP or UDP for checking service status Services status : new option to hide port number (see show_port in services section)
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require 'Utils/Misc.class.php';
|
||||
require '../autoload.php';
|
||||
|
||||
// Hostname
|
||||
$hostname = php_uname('n');
|
||||
@@ -9,7 +9,7 @@ if (!($os = shell_exec('/usr/bin/lsb_release -ds | cut -d= -f2 | tr -d \'"\'')))
|
||||
{
|
||||
if(!($os = shell_exec('cat /etc/system-release | cut -d= -f2 | tr -d \'"\'')))
|
||||
{
|
||||
if (!($os = shell_exec('find /etc/*-release -type f -exec cat {} \; | grep NAME | tail -n 1 | cut -d= -f2 | tr -d \'"\'')))
|
||||
if (!($os = shell_exec('find /etc/*-release -type f -exec cat {} \; | grep PRETTY_NAME | tail -n 1 | cut -d= -f2 | tr -d \'"\'')))
|
||||
{
|
||||
$os = 'N.A';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user