This commit is contained in:
Marco Antonio Nina Mena
2018-01-19 16:32:35 -04:00
parent 4b8112e9ba
commit 534b3d9bb0
2 changed files with 3 additions and 3 deletions

View File

@@ -1439,7 +1439,7 @@ class adminProxy extends HttpProxyController
//PHP Version
$params['php'] = $systemInfo->php->version;
//Apache - nginx IIS Version
//Apache - nginx - IIS Version
$params['serverSoftwareVersion'] = System::getServerVersion();

View File

@@ -1299,10 +1299,10 @@ class System
*/
public static function getServerVersion()
{
$serverVersion = '';
$serverVersion = 'Undetermined';
if (stripos($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) {
$serverVersion = apache_get_version();
$serverVersion = function_exists('apache_get_version') ? apache_get_version() : $_SERVER['SERVER_SOFTWARE'];
}
if (stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false) {