Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PHPSysInfo 3.0.19 SMART parsing fix

By: a guest on Nov 27th, 2012  |  syntax: Diff  |  size: 0.71 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- class.SMART.inc.php.orig    2012-11-27 12:42:18.000000000 -0600
  2. +++ class.SMART.inc.php 2012-11-27 12:39:42.000000000 -0600
  3. @@ -116,7 +116,7 @@
  4.                 $startIndex = $matches[0][1];
  5.              
  6.              // locate the end string offset for the attributes, this is usually right before string "SMART Error Log Version" (hopefully every output has it!)
  7. -            if ( preg_match('/(SMART Error Log Version)/', $result, $matches, PREG_OFFSET_CAPTURE) )
  8. +            if ( preg_match('/(SMART Error Log (Version|not supported))/', $result, $matches, PREG_OFFSET_CAPTURE) )
  9.                 $endIndex = $matches[0][1];
  10.              
  11.              if (($startIndex)&&($endIndex)&&($endIndex>$startIndex))