14 lines
378 B
PHP
Raw Normal View History

2016-05-02 15:42:13 +00:00
<?php
/*
2016-05-02 15:42:13 +00:00
BDCOM(tm) S2524C Software, Version 2.1.0A Build 5721
Compiled: 2011-11-1 15:57:26 by SYS
ROM: System Bootstrap,Version 0.3.2,Serial num:27072980
*/
2016-05-02 15:42:13 +00:00
preg_match('/BDCOM\(tm\) ([A-Z0-9]+) Software, Version (.*)\nCompiled: (.*)\n(.*),Serial num:([0-9]+)/', $device['sysDescr'], $matches);
2016-05-02 15:42:13 +00:00
$hardware = $matches['1'];
2016-05-02 15:42:13 +00:00
$version = $matches['2'];
$serial = $matches['5'];