diff options
-rw-r--r-- | pts-core/functions/pts-functions_system_parsing.php | 4 | ||||
-rw-r--r-- | pts-core/functions/pts-init.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php index 8cc0675..8ac7b0e 100644 --- a/pts-core/functions/pts-functions_system_parsing.php +++ b/pts-core/functions/pts-functions_system_parsing.php @@ -213,9 +213,9 @@ function read_sysctl($desc) // Read sysctl, used by *BSDs $info = shell_exec("sysctl $desc 2>&1"); - if(strpos($info, $desc . ":") !== false) + if(($point = strpos($info, $desc . ":")) !== false || ($point = strpos($info, $desc . "=")) !== false) { - $info = trim(substr($info, strlen($desc) + 2)); + $info = trim(substr($info, $point + 1)); } else { diff --git a/pts-core/functions/pts-init.php b/pts-core/functions/pts-init.php index 4fca173..1f443a6 100644 --- a/pts-core/functions/pts-init.php +++ b/pts-core/functions/pts-init.php @@ -89,7 +89,7 @@ function pts_init() } // Operating System Detection - $supported_operating_systems = array("Linux", array("Solaris", "Sun"), "FreeBSD", "BSD", array("MacOSX", "Darwin")); + $supported_operating_systems = array("Linux", array("Solaris", "Sun"), "BSD", array("MacOSX", "Darwin")); $uname_s = strtolower(php_uname("s")); foreach($supported_operating_systems as $os_check) |