@@ 153-160 (lines=8) @@ | ||
150 | } |
|
151 | if (is_null($buf) || ($buf == "")) { |
|
152 | $this->sys->setDistribution('Android'); |
|
153 | } else { |
|
154 | if (preg_match('/^(\d+\.\d+)/', $buf, $ver) |
|
155 | && ($list = @parse_ini_file(APP_ROOT."/data/osnames.ini", true)) |
|
156 | && isset($list['Android'][$ver[1]])) { |
|
157 | $buf.=' '.$list['Android'][$ver[1]]; |
|
158 | } |
|
159 | $this->sys->setDistribution('Android '.$buf); |
|
160 | } |
|
161 | $this->sys->setDistributionIcon('Android.png'); |
|
162 | } |
|
163 |
@@ 413-420 (lines=8) @@ | ||
410 | if (trim($arrLine[0]) === "System Version") { |
|
411 | $distro = trim($arrLine[1]); |
|
412 | ||
413 | if (preg_match('/(^Mac OS)|(^OS X)/', $distro)) { |
|
414 | $this->sys->setDistributionIcon('Apple.png'); |
|
415 | if (preg_match('/((^Mac OS X Server)|(^Mac OS X)|(^OS X Server)|(^OS X)) (\d+\.\d+)/', $distro, $ver) |
|
416 | && ($list = @parse_ini_file(APP_ROOT."/data/osnames.ini", true)) |
|
417 | && isset($list['OS X'][$ver[6]])) { |
|
418 | $distro.=' '.$list['OS X'][$ver[6]]; |
|
419 | } |
|
420 | } |
|
421 | ||
422 | $this->sys->setDistribution($distro); |
|
423 |