Fix coding style part 2

This commit is contained in:
Job Snijders
2015-07-13 20:10:26 +02:00
parent ad9590df9b
commit d8693f05ae
733 changed files with 37359 additions and 33947 deletions

View File

@@ -1,18 +1,21 @@
<?php
if (!$os)
{
if (preg_match("/^SunOS/", $sysDescr))
{
$os = "solaris";
list(,,$version) = explode (" ", $sysDescr);
if ($version > "5.10") { $os = "opensolaris"; }
if ($version > "5.10") {
if (preg_match("/oi_/", $sysDescr)) { $os = "openindiana"; }
if (!$os) {
if (preg_match('/^SunOS/', $sysDescr)) {
$os = 'solaris';
list(,,$version) = explode(' ', $sysDescr);
if ($version > '5.10') {
$os = 'opensolaris';
}
if ($version > '5.10') {
if (preg_match('/oi_/', $sysDescr)) {
$os = 'openindiana';
}
}
}
}
if (strstr($sysObjectId, ".1.3.6.1.4.1.42.2.1.1")) { $os = "solaris"; }
if (strstr($sysObjectId, '.1.3.6.1.4.1.42.2.1.1')) {
$os = 'solaris';
}
}
?>