From b104237e953dfc860bee165bc4e45b474f5144e0 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sat, 16 Jun 2012 22:39:49 +0000 Subject: fixed a bug and improved the lspci search function --- h-source/Application/Controllers/SearchController.php | 3 ++- h-source/Application/Include/hardware.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/h-source/Application/Controllers/SearchController.php b/h-source/Application/Controllers/SearchController.php index 7fda506..acc4a22 100644 --- a/h-source/Application/Controllers/SearchController.php +++ b/h-source/Application/Controllers/SearchController.php @@ -129,7 +129,8 @@ class SearchController extends BaseController while(current($lspciArray) !== false) { $item = current($lspciArray); - if (stristr($item,'Slot')) + if( preg_match( '/Slot\:(.*)([0-9a-zA-Z]{2}\:[0-9a-zA-Z]{2}\.[0-9a-zA-Z]{1})/i', $item ) ) +// if (stristr($item,'Slot')) { $temp = array(); // class diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index 02b6752..816e7f1 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -63,6 +63,8 @@ class Hardware '0401' => 'acquisitioncards', '0480' => 'acquisitioncards', '0805' => 'sdcardreaders', + '0703' => 'modems', + '0104' => 'raidadapters', ); public static $icons = array( -- cgit v1.2.3