jrgp / linfo

Linfo PHP Server Health Status
MIT License
360 stars 73 forks source link

core table is empty but shows title #52

Open IAmEnchant opened 7 years ago

IAmEnchant commented 7 years ago

all of the core contents are disabled but the title still shown.

jrgp commented 7 years ago

Can you post a screenshot and provide what you are running Linfo on?

Also you can enable error reporting in the config file to see what specifically is going wrong.

IAmEnchant commented 7 years ago

here is my server http://soldat.tyg.me/ and conf

$settings['show']['kernel'] = false;
$settings['show']['ip'] = false;
$settings['show']['os'] = false;
$settings['show']['load'] = false;
$settings['show']['ram'] = false;
$settings['show']['hd'] = false;
$settings['show']['mounts'] = false;
$settings['show']['mounts_options'] = false; // Might be useless/confidential information; disabled by default.
$settings['show']['webservice'] = false; // Might be dangerous/confidential information; disabled by default.
$settings['show']['phpversion'] = false; // Might be dangerous/confidential information; disabled by default.
$settings['show']['network'] = false;
$settings['show']['uptime'] = false;
$settings['show']['cpu'] = false;
$settings['show']['process_stats'] = false;
$settings['show']['hostname'] = false;
$settings['show']['distro'] = false; # Attempt finding name and version of distribution on Linux systems
$settings['show']['devices'] = false; # Slow on old systems
$settings['show']['model'] = false; # Model of system. Supported on certain OS's. ex: Macbook Pro
$settings['show']['numLoggedIn'] = false; # Number of unqiue users with shells running (on Linux)
$settings['show']['virtualization'] = false; # whether this is a VPS/VM and what kind
matriphe commented 7 years ago

@IAmEnchant can you provide the OS and PHP version you use?

IAmEnchant commented 7 years ago

I am using Ubuntu17 and PHP7.

matriphe commented 7 years ago

@IAmEnchant Do you use PHP 7.1? or PHP 7.0?

IAmEnchant commented 7 years ago

It's 7.0.

matriphe commented 7 years ago

@IAmEnchant just realized that your config value were all set to false, so it showed nothing. Try to set one of them to true.

Try this config.

$settings['show']['kernel'] = true;
$settings['show']['ip'] = true;
$settings['show']['os'] = true;
$settings['show']['load'] = true;
$settings['show']['ram'] = true;
$settings['show']['hd'] = true;
$settings['show']['mounts'] = true;
$settings['show']['mounts_options'] = false; // Might be useless/confidential information; disabled by default.
$settings['show']['webservice'] = false; // Might be dangerous/confidential information; disabled by default.
$settings['show']['phpversion'] = false; // Might be dangerous/confidential information; disabled by default.
$settings['show']['network'] = true;
$settings['show']['uptime'] = true;
$settings['show']['cpu'] = true;
$settings['show']['process_stats'] = true; 
$settings['show']['hostname'] = true;
$settings['show']['distro'] = true; # Attempt finding name and version of distribution on Linux systems
$settings['show']['devices'] = true; # Slow on old systems
$settings['show']['model'] = true; # Model of system. Supported on certain OS's. ex: Macbook Pro
$settings['show']['numLoggedIn'] = true; # Number of unqiue users with shells running (on Linux)
$settings['show']['virtualization'] = true; # whether this is a VPS/VM and what kind
IAmEnchant commented 7 years ago

I meant I just wanna hide the "Core" title if those configs set up to false at all.

matriphe commented 7 years ago

try this config, it will hide all values in the Core tab.

$settings['show']['kernel'] = false;
$settings['show']['ip'] = false;
$settings['show']['os'] = false;
$settings['show']['load'] = false;
$settings['show']['ram'] = true;
$settings['show']['hd'] = true;
$settings['show']['mounts'] = true;
$settings['show']['mounts_options'] = false; // Might be useless/confidential information; disabled by default.
$settings['show']['webservice'] = false; // Might be dangerous/confidential information; disabled by default.
$settings['show']['phpversion'] = false; // Might be dangerous/confidential information; disabled by default.
$settings['show']['network'] = true;
$settings['show']['uptime'] = false;
$settings['show']['cpu'] = false;
$settings['show']['process_stats'] = false; 
$settings['show']['hostname'] = false;
$settings['show']['distro'] = false; # Attempt finding name and version of distribution on Linux systems
$settings['show']['devices'] = true; # Slow on old systems
$settings['show']['model'] = false; # Model of system. Supported on certain OS's. ex: Macbook Pro
$settings['show']['numLoggedIn'] = true; # Number of unqiue users with shells running (on Linux)
$settings['show']['virtualization'] = false; # whether this is a VPS/VM and what kind