--- /dev/null
+--TEST--
+test wrt3g_parseStatus()
+--FILE--
+<?php
+require_once dirname(__FILE__) . '/../Wrt3g.php';
+$w = new Wrt3g();
+var_dump(
+ $w->parseStatus(
+ file_get_contents('status-1.htm')
+ )
+);
+--EXPECT--
+asd
--- /dev/null
+<!--
+*********************************************************
+* Copyright 2003, CyberTAN Inc. All Rights Reserved *
+*********************************************************
+
+This is UNPUBLISHED PROPRIETARY SOURCE CODE of CyberTAN Inc.
+the contents of this file may not be disclosed to third parties,
+copied or duplicated in any form without the prior written
+permission of CyberTAN Inc.
+
+This software should be used as a reference only, and it not
+intended for production use!
+
+
+THIS SOFTWARE IS OFFERED "AS IS", AND CYBERTAN GRANTS NO WARRANTIES OF ANY
+KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. CYBERTAN
+SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE
+-->
+
+
+<HTML><HEAD><TITLE>WWAN Status</TITLE>
+<meta http-equiv="expires" content="0">
+<meta http-equiv="cache-control" content="no-cache">
+<meta http-equiv="pragma" content="no-cache">
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<link rel="stylesheet" type="text/css" href="style.css">
+<style fprolloverstyle>
+A:hover {color: #00FFFF}
+.small A:hover {color: #00FFFF}
+</style>
+<script src="common.js"></script>
+<SCRIPT language="javascript" type="text/javascript" src="lang_pack/layout.js"></SCRIPT>
+<SCRIPT language="javascript" type="text/javascript" src="lang_pack/gprs.js"></SCRIPT>
+<SCRIPT language=JavaScript>
+var value=0;
+function Refresh()
+{
+ var net_name = "BASE DE";
+ var refresh_time = "60000";
+ if(refresh_time == "60000") refresh_time = 20000;
+ if( ( net_name == "Acquiring" ) && ( refresh_time > "5000") )
+ {
+ //refresh_time = "15000";
+ refresh_time = "3000";
+ }
+ if(refresh_time == "") refresh_time = 20000;
+ if (value>=1)
+ {
+ window.location.replace("index_wstatus1.asp");
+ }
+ value++;
+ timerID=setTimeout("Refresh()",refresh_time);
+}
+</SCRIPT>
+</HEAD>
+<BODY onload=Refresh();>
+<!-- TABLE vlign=top align=left height=90 cellSpacing=0 cellPadding=0 border=0 width=397 style="margin-left: -5" -->
+<TABLE vlign=top align=left height=90 cellSpacing=0 cellPadding=0 border=0 width=397>
+ <TR>
+ <TD width=102> <script>Capture(GPRS_MSG.WWBEAR)</script> : </TD>
+ <TD width=295><B><script>Capture(GPRS_MSG.WWBEAR_GPRS)</script></B></TD>
+
+ <TR>
+ <TD width=102> <script>Capture(GPRS_MSG.NNAME)</script> : </TD>
+ <TD width=295><B>BASE DE</B></TD>
+
+ <TR>
+ <TD width=102> <script>Capture(GPRS_MSG.STRENGTH)</script> : </TD>
+ <TD width=295><B><script>Capture(GPRS_MSG.GOOD)</script></B></TD>
+</TABLE>
+</BODY>
+</HTML>
--- /dev/null
+<!--
+*********************************************************
+* Copyright 2003, CyberTAN Inc. All Rights Reserved *
+*********************************************************
+
+This is UNPUBLISHED PROPRIETARY SOURCE CODE of CyberTAN Inc.
+the contents of this file may not be disclosed to third parties,
+copied or duplicated in any form without the prior written
+permission of CyberTAN Inc.
+
+This software should be used as a reference only, and it not
+intended for production use!
+
+
+THIS SOFTWARE IS OFFERED "AS IS", AND CYBERTAN GRANTS NO WARRANTIES OF ANY
+KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. CYBERTAN
+SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE
+-->
+
+
+<HTML><HEAD><TITLE>WWAN Status</TITLE>
+<meta http-equiv="expires" content="0">
+<meta http-equiv="cache-control" content="no-cache">
+<meta http-equiv="pragma" content="no-cache">
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<link rel="stylesheet" type="text/css" href="style.css">
+<style fprolloverstyle>
+A:hover {color: #00FFFF}
+.small A:hover {color: #00FFFF}
+</style>
+<script src="common.js"></script>
+<SCRIPT language="javascript" type="text/javascript" src="lang_pack/layout.js"></SCRIPT>
+<SCRIPT language="javascript" type="text/javascript" src="lang_pack/gprs.js"></SCRIPT>
+<SCRIPT language=JavaScript>
+var value=0;
+function Refresh()
+{
+ var net_name = "BASE DE";
+ var refresh_time = "60000";
+ if(refresh_time == "60000") refresh_time = 20000;
+ if( ( net_name == "Acquiring" ) && ( refresh_time > "5000") )
+ {
+ //refresh_time = "15000";
+ refresh_time = "3000";
+ }
+ if(refresh_time == "") refresh_time = 20000;
+ if (value>=1)
+ {
+ window.location.replace("index_wstatus1.asp");
+ }
+ value++;
+ timerID=setTimeout("Refresh()",refresh_time);
+}
+</SCRIPT>
+</HEAD>
+<BODY onload=Refresh();>
+<!-- TABLE vlign=top align=left height=90 cellSpacing=0 cellPadding=0 border=0 width=397 style="margin-left: -5" -->
+<TABLE vlign=top align=left height=90 cellSpacing=0 cellPadding=0 border=0 width=397>
+ <TR>
+ <TD width=102> <script>Capture(GPRS_MSG.WWBEAR)</script> : </TD>
+ <TD width=295><B><script>Capture(GPRS_MSG.ACQUIRING)</script></B></TD>
+
+ <TR>
+ <TD width=102> <script>Capture(GPRS_MSG.NNAME)</script> : </TD>
+ <TD width=295><B><script>Capture(GPRS_MSG.ACQUIRING)</script></B></TD>
+
+ <TR>
+ <TD width=102> <script>Capture(GPRS_MSG.STRENGTH)</script> : </TD>
+ <TD width=295><B><script>Capture(GPRS_MSG.ACQUIRING)</script></B></TD>
+
+</TABLE>
+</BODY>
+</HTML>
--- /dev/null
+<!--
+*********************************************************
+* Copyright 2003, CyberTAN Inc. All Rights Reserved *
+*********************************************************
+
+This is UNPUBLISHED PROPRIETARY SOURCE CODE of CyberTAN Inc.
+the contents of this file may not be disclosed to third parties,
+copied or duplicated in any form without the prior written
+permission of CyberTAN Inc.
+
+This software should be used as a reference only, and it not
+intended for production use!
+
+
+THIS SOFTWARE IS OFFERED "AS IS", AND CYBERTAN GRANTS NO WARRANTIES OF ANY
+KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. CYBERTAN
+SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE
+-->
+
+
+<HTML><HEAD><TITLE>WWAN Status</TITLE>
+<meta http-equiv="expires" content="0">
+<meta http-equiv="cache-control" content="no-cache">
+<meta http-equiv="pragma" content="no-cache">
+
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+
+<link rel="stylesheet" type="text/css" href="style.css">
+<style fprolloverstyle>
+A:hover {color: #00FFFF}
+.small A:hover {color: #00FFFF}
+</style>
+<script src="common.js"></script>
+<SCRIPT language="javascript" type="text/javascript" src="lang_pack/layout.js"></SCRIPT>
+<SCRIPT language="javascript" type="text/javascript" src="lang_pack/gprs.js"></SCRIPT>
+<SCRIPT language=JavaScript>
+var value=0;
+function Refresh()
+{
+ var net_name = "BASE DE";
+ var refresh_time = "60000";
+ if(refresh_time == "60000") refresh_time = 20000;
+ if( ( net_name == "Acquiring" ) && ( refresh_time > "5000") )
+ {
+ //refresh_time = "15000";
+ refresh_time = "3000";
+ }
+ if(refresh_time == "") refresh_time = 20000;
+ if (value>=1)
+ {
+ window.location.replace("index_wstatus1.asp");
+ }
+ value++;
+ timerID=setTimeout("Refresh()",refresh_time);
+}
+</SCRIPT>
+</HEAD>
+<BODY onload=Refresh();>
+<!-- TABLE vlign=top align=left height=90 cellSpacing=0 cellPadding=0 border=0 width=397 style="margin-left: -5" -->
+<TABLE vlign=top align=left height=90 cellSpacing=0 cellPadding=0 border=0 width=397>
+ <TR>
+ <TD width=102> <script>Capture(GPRS_MSG.WWBEAR)</script> : </TD>
+ <TD width=295><B><script>Capture(GPRS_MSG.WWBEAR_GPRS)</script></B></TD>
+
+ <TR>
+ <TD width=102> <script>Capture(GPRS_MSG.NNAME)</script> : </TD>
+ <TD width=295><B>BASE DE</B></TD>
+
+ <TR>
+ <TD width=102> <script>Capture(GPRS_MSG.STRENGTH)</script> : </TD>
+ <TD width=295><B><script>Capture(GPRS_MSG.EXCELLENT)</script></B></TD>
+</TABLE>
+</BODY>
+</HTML>