From b99193ba68f947802245a288940e54904ecbee61 Mon Sep 17 00:00:00 2001 From: Triatmoko Date: Fri, 18 Nov 2011 13:23:49 +0100 Subject: final version --- Website/mutexSmartTest.php | 92 +++- Website/mutexSmartTest.php_old | 951 ---------------------------------------- Website/mutexTry.php | 436 ++++++++++--------- Website/mutexTry.php_old | 966 ----------------------------------------- 4 files changed, 299 insertions(+), 2146 deletions(-) delete mode 100644 Website/mutexSmartTest.php_old delete mode 100755 Website/mutexTry.php_old (limited to 'Website') diff --git a/Website/mutexSmartTest.php b/Website/mutexSmartTest.php index 663f2f0..a44b121 100644 --- a/Website/mutexSmartTest.php +++ b/Website/mutexSmartTest.php @@ -60,7 +60,7 @@ if ($locking == '1') fwrite($startApp, "START APP"); usleep(2500); fclose($startApp); - } + #sleep till the software starts sleep(5); @@ -125,7 +125,18 @@ if ($locking == '1') '; - ob_implicit_flush(1); + ob_implicit_flush(1); + sleep(6); + $pings = mysql_query("select * from PingResultTable where taskNo=(select max(taskNo) from PingResultTable)"); + + while($row = mysql_fetch_array($pings)) + { + $SIPP = $row['sipServer']; + $LANDLINEP = $row['sipGate']; + $UNISIPP = $row['unisip']; + $NANOBTS1P = $row['gsmBox1']; + $NANOBTS2P = $row['gsmBox2']; + } } elseif ($received == "TEST DONE\n") { @@ -186,7 +197,6 @@ echo '