aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2012-06-16 22:39:49 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2012-06-16 22:39:49 +0000
commitb104237e953dfc860bee165bc4e45b474f5144e0 (patch)
tree4380403e407d2e5c3af5f86b12b0c42ef6ae3138
parent49eb7cf909c9dea7a7f0ae136bc3f52699664140 (diff)
fixed a bug and improved the lspci search function
-rw-r--r--h-source/Application/Controllers/SearchController.php3
-rw-r--r--h-source/Application/Include/hardware.php2
2 files changed, 4 insertions, 1 deletions
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(