make the request observer work correctly, remove response logging in main class
[linksys-wrt3g-tools.git] / Wrt3g / HtmlParser.php
index f369bd1648366145847adaa8f52c60ded611985b..bd613acbcc7f6b467631a8647a9e479f1924f425 100644 (file)
@@ -20,8 +20,10 @@ class Wrt3g_HtmlParser
         'GPRS_MSG.WWBEAR_GPRS' => 'GPRS',
         'GPRS_MSG.WWBEAR_UMTS' => 'UMTS',
         'GPRS_MSG.None'        => null,
+        'GPRS_MSG.FAIR'        => 'fair',
         'GPRS_MSG.GOOD'        => 'good',
         'GPRS_MSG.EXCELLENT'   => 'excellent',
+        'GPRS_MSG.NOSIGNAL'    => 'no signal',
         'GPRS_MSG.CTIME'       => 'connection time',
         'GPRS_MSG.CFW'         => 'card firmware',
         'GPRS_MSG.CMOD'        => 'card model',
@@ -208,6 +210,10 @@ class Wrt3g_HtmlParser
             }
         }
 
+        if (preg_match('/Capture\\(share.firmwarever\\):(.+?)</', $body, $arMatches)) {
+            $arRaw['router firmware'] = trim($arMatches[1]);
+        }
+
         return $arRaw;
     }
 }
\ No newline at end of file