Reformat check a bit to make it easier for adding additional oids in the future

This commit is contained in:
Mike Rostermund
2015-10-14 20:44:33 +02:00
parent e5c4e4a2ac
commit 78f02cb418

View File

@@ -1,7 +1,11 @@
<?php
if (!$os) {
if (preg_match('/^Linux/', $sysDescr) && $sysObjectId != '.1.3.6.1.4.1.674.10892.2' && $sysObjectId != '.1.3.6.1.4.1.17163.1.1') {
$skip_oids = array(
'.1.3.6.1.4.1.674.10892.2',
'.1.3.6.1.4.1.17163.1.1',
);
if (preg_match('/^Linux/', $sysDescr) && !in_array($sysObjectId, $skip_oids)) {
$os = 'linux';
}