summaryrefslogtreecommitdiffstats
path: root/Website
diff options
context:
space:
mode:
Diffstat (limited to 'Website')
-rw-r--r--Website/Images/AutoIcon.png (renamed from Website/tricode/Images/AutoIcon.png)bin6470 -> 6470 bytes
-rw-r--r--Website/Images/BackGround.jpg (renamed from Website/tricode/Images/BackGround.jpg)bin156368 -> 156368 bytes
-rw-r--r--Website/Images/BackgroundLogin.png (renamed from Website/tricode/Images/BackgroundLogin.png)bin88100 -> 88100 bytes
-rw-r--r--Website/Images/CheckAllButton.png (renamed from Website/tricode/Images/CheckAllButton.png)bin5425 -> 5425 bytes
-rw-r--r--Website/Images/ChooseIcon.png (renamed from Website/tricode/Images/ChooseIcon.png)bin12477 -> 12477 bytes
-rw-r--r--Website/Images/GSMTestButton.png (renamed from Website/tricode/Images/GSMTestButton.png)bin5563 -> 5563 bytes
-rw-r--r--Website/Images/ManualIcon.png (renamed from Website/tricode/Images/ManualIcon.png)bin6787 -> 6787 bytes
-rw-r--r--Website/Images/MobilePhone.png (renamed from Website/tricode/Images/MobilePhone.png)bin45698 -> 45698 bytes
-rw-r--r--Website/Images/MobilePhoneIcon.png (renamed from Website/tricode/Images/MobilePhoneIcon.png)bin13814 -> 13814 bytes
-rw-r--r--Website/Images/SIPTestButton.png (renamed from Website/tricode/Images/SIPTestButton.png)bin5300 -> 5300 bytes
-rw-r--r--Website/Images/SmartIcon.png (renamed from Website/tricode/Images/SmartIcon.png)bin11983 -> 11983 bytes
-rw-r--r--Website/Images/SubmitButton.png (renamed from Website/tricode/Images/SubmitButton.png)bin5364 -> 5364 bytes
-rw-r--r--Website/Images/UncheckButton.png (renamed from Website/tricode/Images/UncheckButton.png)bin5575 -> 5575 bytes
-rw-r--r--Website/Images/border1.png (renamed from Website/tricode/Images/border1.png)bin2950 -> 2950 bytes
-rw-r--r--Website/TaskTest.html (renamed from Website/tricode/TaskTest.html)10
-rw-r--r--Website/about.html49
-rw-r--r--Website/class/pBarcode128.class.php (renamed from Website/tricode/class/pBarcode128.class.php)0
-rw-r--r--Website/class/pBarcode39.class.php (renamed from Website/tricode/class/pBarcode39.class.php)0
-rw-r--r--Website/class/pBubble.class.php (renamed from Website/tricode/class/pBubble.class.php)0
-rw-r--r--Website/class/pCache.class.php (renamed from Website/tricode/class/pCache.class.php)0
-rw-r--r--Website/class/pData.class.php (renamed from Website/tricode/class/pData.class.php)0
-rw-r--r--Website/class/pDraw.class.php (renamed from Website/tricode/class/pDraw.class.php)0
-rw-r--r--Website/class/pImage.class.php (renamed from Website/tricode/class/pImage.class.php)0
-rw-r--r--Website/class/pIndicator.class.php (renamed from Website/tricode/class/pIndicator.class.php)0
-rw-r--r--Website/class/pPie.class.php (renamed from Website/tricode/class/pPie.class.php)0
-rw-r--r--Website/class/pRadar.class.php (renamed from Website/tricode/class/pRadar.class.php)0
-rw-r--r--Website/class/pScatter.class.php (renamed from Website/tricode/class/pScatter.class.php)0
-rw-r--r--Website/class/pSplit.class.php (renamed from Website/tricode/class/pSplit.class.php)0
-rw-r--r--Website/class/pSpring.class.php (renamed from Website/tricode/class/pSpring.class.php)0
-rw-r--r--Website/class/pStock.class.php (renamed from Website/tricode/class/pStock.class.php)0
-rw-r--r--Website/class/pSurface.class.php (renamed from Website/tricode/class/pSurface.class.php)0
-rw-r--r--Website/css/Critical.png (renamed from Website/tricode/css/Critical.png)bin4795 -> 4795 bytes
-rw-r--r--Website/css/Help.png (renamed from Website/tricode/css/Help.png)bin4907 -> 4907 bytes
-rw-r--r--Website/css/Info.png (renamed from Website/tricode/css/Info.png)bin4600 -> 4600 bytes
-rw-r--r--Website/css/Warning.png (renamed from Website/tricode/css/Warning.png)bin3467 -> 3467 bytes
-rwxr-xr-xWebsite/css/chk_off.png (renamed from Website/tricode/css/chk_off.png)bin655 -> 655 bytes
-rwxr-xr-xWebsite/css/chk_on.png (renamed from Website/tricode/css/chk_on.png)bin537 -> 537 bytes
-rw-r--r--Website/css/formCSS.css (renamed from Website/tricode/css/formCSS.css)0
-rw-r--r--Website/css/info_rhombus.png (renamed from Website/tricode/css/info_rhombus.png)bin1816 -> 1816 bytes
-rw-r--r--Website/css/information.png (renamed from Website/tricode/css/information.png)bin2112 -> 2112 bytes
-rw-r--r--Website/css/link.gif (renamed from Website/tricode/css/link.gif)bin836 -> 836 bytes
-rw-r--r--Website/css/tableCSS.css (renamed from Website/tricode/css/tableCSS.css)5
-rw-r--r--Website/css/tooltip.css (renamed from Website/tricode/css/tooltip.css)0
-rw-r--r--Website/css/visitedLink.gif (renamed from Website/tricode/css/visitedLink.gif)bin838 -> 838 bytes
-rw-r--r--Website/delayedLoading.js (renamed from Website/tricode/delayedLoading.js)0
-rw-r--r--Website/devconf.html (renamed from Website/tricode/devconf.html)2
-rw-r--r--Website/devconf.php (renamed from Website/tricode/devconf.php)0
-rw-r--r--Website/devconfig.php (renamed from Website/tricode/devconfig.php)6
-rw-r--r--Website/devconfigAuto.php (renamed from Website/tricode/devconfigAuto.php)6
-rw-r--r--Website/devconfigManual.php (renamed from Website/tricode/devconfigManual.php)6
-rwxr-xr-xWebsite/execute.php (renamed from Website/tricode/execute.php)0
-rw-r--r--Website/fonts/Bedizen.ttf (renamed from Website/tricode/fonts/Bedizen.ttf)bin42912 -> 42912 bytes
-rw-r--r--Website/fonts/Forgotte.ttf (renamed from Website/tricode/fonts/Forgotte.ttf)bin42148 -> 42148 bytes
-rw-r--r--Website/fonts/GeosansLight.ttf (renamed from Website/tricode/fonts/GeosansLight.ttf)bin60072 -> 60072 bytes
-rw-r--r--Website/fonts/MankSans.ttf (renamed from Website/tricode/fonts/MankSans.ttf)bin58492 -> 58492 bytes
-rw-r--r--Website/fonts/Silkscreen.ttf (renamed from Website/tricode/fonts/Silkscreen.ttf)bin16172 -> 16172 bytes
-rw-r--r--Website/fonts/advent_light.ttf (renamed from Website/tricode/fonts/advent_light.ttf)bin45768 -> 45768 bytes
-rw-r--r--Website/fonts/calibri.ttf (renamed from Website/tricode/fonts/calibri.ttf)bin811052 -> 811052 bytes
-rw-r--r--Website/fonts/pf_arma_five.ttf (renamed from Website/tricode/fonts/pf_arma_five.ttf)bin21936 -> 21936 bytes
-rw-r--r--Website/fonts/verdana.ttf (renamed from Website/tricode/fonts/verdana.ttf)bin189144 -> 189144 bytes
-rw-r--r--Website/home.html (renamed from Website/tricode/home.html)2
-rw-r--r--Website/icons/blackberry_dunno.png (renamed from Website/tricode/icons/blackberry_dunno.png)bin1922 -> 1922 bytes
-rw-r--r--Website/icons/blackberry_fail.png (renamed from Website/tricode/icons/blackberry_fail.png)bin1954 -> 1954 bytes
-rw-r--r--Website/icons/blackberry_work.png (renamed from Website/tricode/icons/blackberry_work.png)bin1988 -> 1988 bytes
-rw-r--r--Website/icons/box_dunno.png (renamed from Website/tricode/icons/box_dunno.png)bin1255 -> 1255 bytes
-rw-r--r--Website/icons/box_fail.png (renamed from Website/tricode/icons/box_fail.png)bin1407 -> 1407 bytes
-rw-r--r--Website/icons/box_work.png (renamed from Website/tricode/icons/box_work.png)bin1420 -> 1420 bytes
-rw-r--r--Website/icons/server_dunno.png (renamed from Website/tricode/icons/server_dunno.png)bin1410 -> 1410 bytes
-rw-r--r--Website/icons/server_fail.png (renamed from Website/tricode/icons/server_fail.png)bin1497 -> 1497 bytes
-rw-r--r--Website/icons/server_work.png (renamed from Website/tricode/icons/server_work.png)bin1480 -> 1480 bytes
-rw-r--r--Website/icons/sip_dunno.png (renamed from Website/tricode/icons/sip_dunno.png)bin1494 -> 1494 bytes
-rw-r--r--Website/icons/sip_fail.png (renamed from Website/tricode/icons/sip_fail.png)bin1621 -> 1621 bytes
-rw-r--r--Website/icons/sip_work.png (renamed from Website/tricode/icons/sip_work.png)bin1591 -> 1591 bytes
-rw-r--r--Website/icons/telephone_dunno.png (renamed from Website/tricode/icons/telephone_dunno.png)bin1798 -> 1798 bytes
-rw-r--r--Website/icons/telephone_fail.png (renamed from Website/tricode/icons/telephone_fail.png)bin1871 -> 1871 bytes
-rw-r--r--Website/icons/telephone_work.png (renamed from Website/tricode/icons/telephone_work.png)bin1883 -> 1883 bytes
-rw-r--r--Website/icons/uni-network_dunno.png (renamed from Website/tricode/icons/uni-network_dunno.png)bin3126 -> 3126 bytes
-rw-r--r--Website/icons/uni-network_fail.png (renamed from Website/tricode/icons/uni-network_fail.png)bin3202 -> 3202 bytes
-rw-r--r--Website/icons/uni-network_work.png (renamed from Website/tricode/icons/uni-network_work.png)bin3198 -> 3198 bytes
-rw-r--r--Website/index.php48
-rw-r--r--Website/index1.html1
-rw-r--r--Website/insertData.php (renamed from Website/tricode/insertData.php)1
-rw-r--r--Website/insertdevice.php (renamed from Website/tricode/insertdevice.php)0
-rw-r--r--Website/loader.gif (renamed from Website/tricode/loader.gif)bin10819 -> 10819 bytes
-rw-r--r--Website/main.php (renamed from Website/tricode/main.php)2
-rw-r--r--Website/moocheck.js (renamed from Website/tricode/moocheck.js)0
-rw-r--r--Website/mootools.js (renamed from Website/tricode/mootools.js)0
-rw-r--r--Website/mutexFunctions.php (renamed from Website/tricode/mutexFunctions.php)0
-rw-r--r--Website/mutexSmartTest.php (renamed from Website/tricode/mutexSmartTest.php)301
-rwxr-xr-xWebsite/mutexTry.php977
-rw-r--r--Website/networkResult.php (renamed from Website/tricode/networkResult.php)8
-rw-r--r--Website/post.php (renamed from Website/tricode/post.php)0
-rw-r--r--Website/report.pdfbin0 -> 5056503 bytes
-rwxr-xr-xWebsite/script.sh (renamed from Website/tricode/script.sh)0
-rw-r--r--Website/startSoftware.py (renamed from Website/tricode/startSoftware.py)0
-rw-r--r--Website/startTest.php (renamed from Website/tricode/startTest.php)0
-rw-r--r--Website/startTest2.php (renamed from Website/tricode/startTest2.php)0
-rw-r--r--Website/testCase.php (renamed from Website/tricode/testCase.php)65
-rwxr-xr-xWebsite/tricode/mutexTry.php310
-rw-r--r--Website/trueTableClass.pyc (renamed from Website/tricode/trueTableClass.pyc)bin3936 -> 3936 bytes
-rw-r--r--Website/wait.gif (renamed from Website/tricode/wait.gif)bin2545 -> 2545 bytes
101 files changed, 1392 insertions, 407 deletions
diff --git a/Website/tricode/Images/AutoIcon.png b/Website/Images/AutoIcon.png
index 5ff782f..5ff782f 100644
--- a/Website/tricode/Images/AutoIcon.png
+++ b/Website/Images/AutoIcon.png
Binary files differ
diff --git a/Website/tricode/Images/BackGround.jpg b/Website/Images/BackGround.jpg
index 25aa515..25aa515 100644
--- a/Website/tricode/Images/BackGround.jpg
+++ b/Website/Images/BackGround.jpg
Binary files differ
diff --git a/Website/tricode/Images/BackgroundLogin.png b/Website/Images/BackgroundLogin.png
index 0608425..0608425 100644
--- a/Website/tricode/Images/BackgroundLogin.png
+++ b/Website/Images/BackgroundLogin.png
Binary files differ
diff --git a/Website/tricode/Images/CheckAllButton.png b/Website/Images/CheckAllButton.png
index 95882f5..95882f5 100644
--- a/Website/tricode/Images/CheckAllButton.png
+++ b/Website/Images/CheckAllButton.png
Binary files differ
diff --git a/Website/tricode/Images/ChooseIcon.png b/Website/Images/ChooseIcon.png
index 53ac136..53ac136 100644
--- a/Website/tricode/Images/ChooseIcon.png
+++ b/Website/Images/ChooseIcon.png
Binary files differ
diff --git a/Website/tricode/Images/GSMTestButton.png b/Website/Images/GSMTestButton.png
index a663494..a663494 100644
--- a/Website/tricode/Images/GSMTestButton.png
+++ b/Website/Images/GSMTestButton.png
Binary files differ
diff --git a/Website/tricode/Images/ManualIcon.png b/Website/Images/ManualIcon.png
index 222f446..222f446 100644
--- a/Website/tricode/Images/ManualIcon.png
+++ b/Website/Images/ManualIcon.png
Binary files differ
diff --git a/Website/tricode/Images/MobilePhone.png b/Website/Images/MobilePhone.png
index e3f9fc8..e3f9fc8 100644
--- a/Website/tricode/Images/MobilePhone.png
+++ b/Website/Images/MobilePhone.png
Binary files differ
diff --git a/Website/tricode/Images/MobilePhoneIcon.png b/Website/Images/MobilePhoneIcon.png
index c369145..c369145 100644
--- a/Website/tricode/Images/MobilePhoneIcon.png
+++ b/Website/Images/MobilePhoneIcon.png
Binary files differ
diff --git a/Website/tricode/Images/SIPTestButton.png b/Website/Images/SIPTestButton.png
index bbb2408..bbb2408 100644
--- a/Website/tricode/Images/SIPTestButton.png
+++ b/Website/Images/SIPTestButton.png
Binary files differ
diff --git a/Website/tricode/Images/SmartIcon.png b/Website/Images/SmartIcon.png
index dcfae0a..dcfae0a 100644
--- a/Website/tricode/Images/SmartIcon.png
+++ b/Website/Images/SmartIcon.png
Binary files differ
diff --git a/Website/tricode/Images/SubmitButton.png b/Website/Images/SubmitButton.png
index 904c8b0..904c8b0 100644
--- a/Website/tricode/Images/SubmitButton.png
+++ b/Website/Images/SubmitButton.png
Binary files differ
diff --git a/Website/tricode/Images/UncheckButton.png b/Website/Images/UncheckButton.png
index 464ee2c..464ee2c 100644
--- a/Website/tricode/Images/UncheckButton.png
+++ b/Website/Images/UncheckButton.png
Binary files differ
diff --git a/Website/tricode/Images/border1.png b/Website/Images/border1.png
index 09ea911..09ea911 100644
--- a/Website/tricode/Images/border1.png
+++ b/Website/Images/border1.png
Binary files differ
diff --git a/Website/tricode/TaskTest.html b/Website/TaskTest.html
index e1f7fcc..5202ed5 100644
--- a/Website/tricode/TaskTest.html
+++ b/Website/TaskTest.html
@@ -6,13 +6,13 @@
<meta name="generator" content="BBEdit 9.6" />
</head>
-<body background="Images/BackGround.jpg" style="height: 100%;">
+<body onUnload="window.location.href=thisPage.html;";" background="Images/BackGround.jpg" style="height: 100%;">
<table style="width:75%; margin:auto" border="0">
<tr align="center">
- <td height="100px" align="right"><a href="home.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
- <td height="100px" align="center"><a href="Blank.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
- <td height="100px" align="left"><font size="3" face="Century Gothic" color="LightGray">Help</font></td>
+ <td height="100px" align="right"><a href="index.php" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
+ <td height="100px" align="center"><a href="about.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
+ <td height="120px" align="center"><a href="report.pdf" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">Help</font></a></td>
</tr>
<tr align="center">
<td height="100px" align="right"></td>
@@ -28,7 +28,7 @@
<INPUT type="image" value="uncheck" name="uncheck" src="Images/UncheckButton.png" onClick="deselectAll()"><br />
<!--<input type=button value="UnCheck All values" onClick="deselectAll()"><br />-->
<form name="testForm" form action="mutexTry.php" method="POST">
- <INPUT type="image" value="submit" name="submit" src="Images/SubmitButton.png"><br />
+ <INPUT type="image" value="submit" name="submit" src="Images/SubmitButton.png" onclick="this.style.display='none'; return true;"><br />
<!--<input type=SUBMIT value="Submit"><br />-->
</td>
<td style="text-align:top;">
diff --git a/Website/about.html b/Website/about.html
new file mode 100644
index 0000000..bd6e2c4
--- /dev/null
+++ b/Website/about.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html style="height: 100%;">
+
+<head>
+ <title>GSM selftest Software</title>
+ <meta name="generator" content="BBEdit 9.6" />
+</head>
+
+<body background="Images/BackGround.jpg" style="height: 100%;">
+
+<FORM name="testForm" form action="mutexTry.php" method="POST">
+ <table style="width:50%; height: 100%; margin:auto;" border="0">
+ <tr>
+ <td height="120px" align="center"><a href="index.php" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
+ <td height="120px" align="center"><a href="about.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
+ <td height="120px" align="center"><a href="report.pdf" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">Help</font></a></td>
+ </tr>
+
+ <tr>
+ <td height="80px" align="center"></td>
+ </tr>
+
+ <tr>
+ <table style="width:65%; align: center; margin:auto;" border="0" clear: both;>
+ <tr>
+ <td height="100px" align="left"><font size="3" face="Century Gothic" color="white">The objective of the software is the design and implementation of a monitoring and test system for the RZ-GSM network. The Software will testing the connection between caller and destination then provide information about the test including the part may having problem.</br>
+<br>
+Here is an example:</br>
+I like to test the GSM RZ network and the connection to SIP. Thus I have to connect a mobile phone to the test system to control the phone over AT commands to call the SIP end point. The sip endpoint is running on the test system as well. If everything works, the SIP end point is ringing and the test system can pickup the call then the software will provide information about status of nanoBTS, OpenBSC and Asterisk Server all in perfect condition.</br>
+<br>
+Information Regarding the test Result:</br>
+You can find detail information about the test result on the test result page after submit selected test. The test information will be provide in two type, by table and picture. In Table side, you can find the detail information about your test such as caller, destination, respond message and description about respond message. on the right hand side, you will find picture which descript about the test using picture. We make theree different kind of coloring in every part of the network. Red sign mean that the part having problem or doesnt work, Yellow sign mean that the part have not tested and Green sign mean that the part is fully working. On the picture side also store information about status of the handler which are controling some part of the network such as GSM RZ 1 and GSM RZ 2.</br>
+</font></td>
+ </tr>
+ </table>
+ </tr>
+
+ <tr>
+ <table style="width:100%; margin-top: -20px; height:50%; align: center" border="0" clear: both;>
+ <tr>
+ <td height="100px" align="center" valign="bottom"><font size="1" face="Century Gothic" color="LightGray">Albert-Ludwig University of Freiburg 2011</td>
+ </tr>
+ </table>
+ </tr>
+ </table>
+</FORM>
+
+</body>
+</html>
diff --git a/Website/tricode/class/pBarcode128.class.php b/Website/class/pBarcode128.class.php
index 07f5db8..07f5db8 100644
--- a/Website/tricode/class/pBarcode128.class.php
+++ b/Website/class/pBarcode128.class.php
diff --git a/Website/tricode/class/pBarcode39.class.php b/Website/class/pBarcode39.class.php
index 8d57b71..8d57b71 100644
--- a/Website/tricode/class/pBarcode39.class.php
+++ b/Website/class/pBarcode39.class.php
diff --git a/Website/tricode/class/pBubble.class.php b/Website/class/pBubble.class.php
index 483a1f3..483a1f3 100644
--- a/Website/tricode/class/pBubble.class.php
+++ b/Website/class/pBubble.class.php
diff --git a/Website/tricode/class/pCache.class.php b/Website/class/pCache.class.php
index 07d1d4e..07d1d4e 100644
--- a/Website/tricode/class/pCache.class.php
+++ b/Website/class/pCache.class.php
diff --git a/Website/tricode/class/pData.class.php b/Website/class/pData.class.php
index 9cfbc3f..9cfbc3f 100644
--- a/Website/tricode/class/pData.class.php
+++ b/Website/class/pData.class.php
diff --git a/Website/tricode/class/pDraw.class.php b/Website/class/pDraw.class.php
index 85e408e..85e408e 100644
--- a/Website/tricode/class/pDraw.class.php
+++ b/Website/class/pDraw.class.php
diff --git a/Website/tricode/class/pImage.class.php b/Website/class/pImage.class.php
index 4684e3c..4684e3c 100644
--- a/Website/tricode/class/pImage.class.php
+++ b/Website/class/pImage.class.php
diff --git a/Website/tricode/class/pIndicator.class.php b/Website/class/pIndicator.class.php
index 4f7f23b..4f7f23b 100644
--- a/Website/tricode/class/pIndicator.class.php
+++ b/Website/class/pIndicator.class.php
diff --git a/Website/tricode/class/pPie.class.php b/Website/class/pPie.class.php
index 8940b4d..8940b4d 100644
--- a/Website/tricode/class/pPie.class.php
+++ b/Website/class/pPie.class.php
diff --git a/Website/tricode/class/pRadar.class.php b/Website/class/pRadar.class.php
index 6235c99..6235c99 100644
--- a/Website/tricode/class/pRadar.class.php
+++ b/Website/class/pRadar.class.php
diff --git a/Website/tricode/class/pScatter.class.php b/Website/class/pScatter.class.php
index 55ef1c7..55ef1c7 100644
--- a/Website/tricode/class/pScatter.class.php
+++ b/Website/class/pScatter.class.php
diff --git a/Website/tricode/class/pSplit.class.php b/Website/class/pSplit.class.php
index 0a62c3d..0a62c3d 100644
--- a/Website/tricode/class/pSplit.class.php
+++ b/Website/class/pSplit.class.php
diff --git a/Website/tricode/class/pSpring.class.php b/Website/class/pSpring.class.php
index fcfc8f2..fcfc8f2 100644
--- a/Website/tricode/class/pSpring.class.php
+++ b/Website/class/pSpring.class.php
diff --git a/Website/tricode/class/pStock.class.php b/Website/class/pStock.class.php
index 7f9dbfb..7f9dbfb 100644
--- a/Website/tricode/class/pStock.class.php
+++ b/Website/class/pStock.class.php
diff --git a/Website/tricode/class/pSurface.class.php b/Website/class/pSurface.class.php
index f887ac0..f887ac0 100644
--- a/Website/tricode/class/pSurface.class.php
+++ b/Website/class/pSurface.class.php
diff --git a/Website/tricode/css/Critical.png b/Website/css/Critical.png
index e025d19..e025d19 100644
--- a/Website/tricode/css/Critical.png
+++ b/Website/css/Critical.png
Binary files differ
diff --git a/Website/tricode/css/Help.png b/Website/css/Help.png
index 42a8f7c..42a8f7c 100644
--- a/Website/tricode/css/Help.png
+++ b/Website/css/Help.png
Binary files differ
diff --git a/Website/tricode/css/Info.png b/Website/css/Info.png
index 5a7a2c3..5a7a2c3 100644
--- a/Website/tricode/css/Info.png
+++ b/Website/css/Info.png
Binary files differ
diff --git a/Website/tricode/css/Warning.png b/Website/css/Warning.png
index 0af654e..0af654e 100644
--- a/Website/tricode/css/Warning.png
+++ b/Website/css/Warning.png
Binary files differ
diff --git a/Website/tricode/css/chk_off.png b/Website/css/chk_off.png
index 1514d51..1514d51 100755
--- a/Website/tricode/css/chk_off.png
+++ b/Website/css/chk_off.png
Binary files differ
diff --git a/Website/tricode/css/chk_on.png b/Website/css/chk_on.png
index a9925a0..a9925a0 100755
--- a/Website/tricode/css/chk_on.png
+++ b/Website/css/chk_on.png
Binary files differ
diff --git a/Website/tricode/css/formCSS.css b/Website/css/formCSS.css
index f94bd72..f94bd72 100644
--- a/Website/tricode/css/formCSS.css
+++ b/Website/css/formCSS.css
diff --git a/Website/tricode/css/info_rhombus.png b/Website/css/info_rhombus.png
index 036733e..036733e 100644
--- a/Website/tricode/css/info_rhombus.png
+++ b/Website/css/info_rhombus.png
Binary files differ
diff --git a/Website/tricode/css/information.png b/Website/css/information.png
index 93c67f2..93c67f2 100644
--- a/Website/tricode/css/information.png
+++ b/Website/css/information.png
Binary files differ
diff --git a/Website/tricode/css/link.gif b/Website/css/link.gif
index daada04..daada04 100644
--- a/Website/tricode/css/link.gif
+++ b/Website/css/link.gif
Binary files differ
diff --git a/Website/tricode/css/tableCSS.css b/Website/css/tableCSS.css
index 2a7f54d..32a6d71 100644
--- a/Website/tricode/css/tableCSS.css
+++ b/Website/css/tableCSS.css
@@ -20,11 +20,12 @@ URL: http://www.alvit.de/vf
#footer
{
position: absolute;
- bottom: 1px;
+ bottom: 0;
padding-top: 0px;
padding-right: 220px;
padding-left: 350px;
- border: 1px solid black;
+ border: 0;
+ border-style: none;
}
body {
background-color: #F0F0F0;
diff --git a/Website/tricode/css/tooltip.css b/Website/css/tooltip.css
index 3a50734..3a50734 100644
--- a/Website/tricode/css/tooltip.css
+++ b/Website/css/tooltip.css
diff --git a/Website/tricode/css/visitedLink.gif b/Website/css/visitedLink.gif
index f7f1867..f7f1867 100644
--- a/Website/tricode/css/visitedLink.gif
+++ b/Website/css/visitedLink.gif
Binary files differ
diff --git a/Website/tricode/delayedLoading.js b/Website/delayedLoading.js
index b76bbe3..b76bbe3 100644
--- a/Website/tricode/delayedLoading.js
+++ b/Website/delayedLoading.js
diff --git a/Website/tricode/devconf.html b/Website/devconf.html
index f791dd7..d89ffd5 100644
--- a/Website/tricode/devconf.html
+++ b/Website/devconf.html
@@ -12,7 +12,7 @@
<FORM name="testForm" form action="devconf.php" method="POST">
<table style="width:50%; margin:auto" border="0">
<tr>
- <td height="100px" align="center"><a href="home.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
+ <td height="100px" align="center"><a href="index.php" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
<td height="100px" align="center"><a href="Blank.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
<td height="100px" align="center"><font size="3" face="Century Gothic" color="LightGray">Log Out</font></td>
</tr>
diff --git a/Website/tricode/devconf.php b/Website/devconf.php
index 49e78d6..49e78d6 100644
--- a/Website/tricode/devconf.php
+++ b/Website/devconf.php
diff --git a/Website/tricode/devconfig.php b/Website/devconfig.php
index d6b6d5f..dc35163 100644
--- a/Website/tricode/devconfig.php
+++ b/Website/devconfig.php
@@ -12,9 +12,9 @@
<FORM name="testForm" form action="devconf.php" method="POST">
<table style="width:50%; margin:auto" border="0">
<tr>
- <td height="100px" align="center"><a href="home.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
- <td height="100px" align="center"><a href="Blank.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
- <td height="100px" align="center"><font size="3" face="Century Gothic" color="LightGray">Help</font></td>
+ <td height="100px" align="center"><a href="index.php" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
+ <td height="100px" align="center"><a href="about.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
+ <td height="120px" align="center"><a href="report.pdf" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">Help</font></a></td>
</tr>
<tr>
diff --git a/Website/tricode/devconfigAuto.php b/Website/devconfigAuto.php
index 1e72e3c..c1473ed 100644
--- a/Website/tricode/devconfigAuto.php
+++ b/Website/devconfigAuto.php
@@ -13,9 +13,9 @@
<FORM name="testForm" form action="devconf.php" method="POST">
<table style="width:50%; margin:auto" border="0">
<tr>
- <td height="100px" align="center"><a href="home.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
- <td height="100px" align="center"><a href="Blank.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
- <td height="100px" align="center"><font size="3" face="Century Gothic" color="LightGray">Help</font></td>
+ <td height="100px" align="center"><a href="index.php" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
+ <td height="100px" align="center"><a href="about.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
+ <td height="120px" align="center"><a href="report.pdf" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">Help</font></a></td>
</tr>
<tr>
diff --git a/Website/tricode/devconfigManual.php b/Website/devconfigManual.php
index 65c0016..3f58b2f 100644
--- a/Website/tricode/devconfigManual.php
+++ b/Website/devconfigManual.php
@@ -11,9 +11,9 @@
<!--<FORM name="testForm" form action="devconf.php" method="POST">-->
<table style="width:50%; margin:auto" border="0">
<tr>
- <td height="100px" align="center"><a href="home.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
- <td height="100px" align="center"><a href="Blank.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
- <td height="100px" align="center"><font size="3" face="Century Gothic" color="LightGray">Help</font></td>
+ <td height="100px" align="center"><a href="index.php" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
+ <td height="100px" align="center"><a href="about.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
+ <td height="120px" align="center"><a href="report.pdf" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">Help</font></a></td>
</tr>
<tr>
diff --git a/Website/tricode/execute.php b/Website/execute.php
index a384da1..a384da1 100755
--- a/Website/tricode/execute.php
+++ b/Website/execute.php
diff --git a/Website/tricode/fonts/Bedizen.ttf b/Website/fonts/Bedizen.ttf
index d115733..d115733 100644
--- a/Website/tricode/fonts/Bedizen.ttf
+++ b/Website/fonts/Bedizen.ttf
Binary files differ
diff --git a/Website/tricode/fonts/Forgotte.ttf b/Website/fonts/Forgotte.ttf
index a2f7f4a..a2f7f4a 100644
--- a/Website/tricode/fonts/Forgotte.ttf
+++ b/Website/fonts/Forgotte.ttf
Binary files differ
diff --git a/Website/tricode/fonts/GeosansLight.ttf b/Website/fonts/GeosansLight.ttf
index 055932a..055932a 100644
--- a/Website/tricode/fonts/GeosansLight.ttf
+++ b/Website/fonts/GeosansLight.ttf
Binary files differ
diff --git a/Website/tricode/fonts/MankSans.ttf b/Website/fonts/MankSans.ttf
index a6146a9..a6146a9 100644
--- a/Website/tricode/fonts/MankSans.ttf
+++ b/Website/fonts/MankSans.ttf
Binary files differ
diff --git a/Website/tricode/fonts/Silkscreen.ttf b/Website/fonts/Silkscreen.ttf
index ae4425d..ae4425d 100644
--- a/Website/tricode/fonts/Silkscreen.ttf
+++ b/Website/fonts/Silkscreen.ttf
Binary files differ
diff --git a/Website/tricode/fonts/advent_light.ttf b/Website/fonts/advent_light.ttf
index 514030a..514030a 100644
--- a/Website/tricode/fonts/advent_light.ttf
+++ b/Website/fonts/advent_light.ttf
Binary files differ
diff --git a/Website/tricode/fonts/calibri.ttf b/Website/fonts/calibri.ttf
index 8b6e3c9..8b6e3c9 100644
--- a/Website/tricode/fonts/calibri.ttf
+++ b/Website/fonts/calibri.ttf
Binary files differ
diff --git a/Website/tricode/fonts/pf_arma_five.ttf b/Website/fonts/pf_arma_five.ttf
index db04ec3..db04ec3 100644
--- a/Website/tricode/fonts/pf_arma_five.ttf
+++ b/Website/fonts/pf_arma_five.ttf
Binary files differ
diff --git a/Website/tricode/fonts/verdana.ttf b/Website/fonts/verdana.ttf
index 5a059d2..5a059d2 100644
--- a/Website/tricode/fonts/verdana.ttf
+++ b/Website/fonts/verdana.ttf
Binary files differ
diff --git a/Website/tricode/home.html b/Website/home.html
index 292c27f..419cce2 100644
--- a/Website/tricode/home.html
+++ b/Website/home.html
@@ -23,7 +23,7 @@
<tr>
<!--<td height="100px" align="center"><INPUT type="image" value="DeviceConfig" name="DeviceConf" src="Images/MobilePhoneIcon.png"></td>-->
<td height="100px" align="center"><a href="devconfig.php" STYLE="TEXT-DECORATION: NONE"> <img src="Images/MobilePhoneIcon.png"></img></td>
- <td height="100px" align="center"><INPUT type="image" value="Smart test" name="smart" src="Images/SmartIcon.png"></td>
+ <td height="100px" align="center"><INPUT type="image" value="Smart test" name="smart" src="Images/SmartIcon.png" onclick="this.style.display='none'; return true;"></td>
<td height="100px" align="center"><a href="TaskTest.html" STYLE="TEXT-DECORATION: NONE"> <img src="Images/ChooseIcon.png"></img></td>
<!--<td height="100px" align="center"><INPUT type="image" value="Smart test" name="smart" src="Images/ChooseIcon.png"></td>-->
</tr>
diff --git a/Website/tricode/icons/blackberry_dunno.png b/Website/icons/blackberry_dunno.png
index 4ee9ee0..4ee9ee0 100644
--- a/Website/tricode/icons/blackberry_dunno.png
+++ b/Website/icons/blackberry_dunno.png
Binary files differ
diff --git a/Website/tricode/icons/blackberry_fail.png b/Website/icons/blackberry_fail.png
index 650d942..650d942 100644
--- a/Website/tricode/icons/blackberry_fail.png
+++ b/Website/icons/blackberry_fail.png
Binary files differ
diff --git a/Website/tricode/icons/blackberry_work.png b/Website/icons/blackberry_work.png
index 3fe1d09..3fe1d09 100644
--- a/Website/tricode/icons/blackberry_work.png
+++ b/Website/icons/blackberry_work.png
Binary files differ
diff --git a/Website/tricode/icons/box_dunno.png b/Website/icons/box_dunno.png
index 744ec7a..744ec7a 100644
--- a/Website/tricode/icons/box_dunno.png
+++ b/Website/icons/box_dunno.png
Binary files differ
diff --git a/Website/tricode/icons/box_fail.png b/Website/icons/box_fail.png
index 3398e05..3398e05 100644
--- a/Website/tricode/icons/box_fail.png
+++ b/Website/icons/box_fail.png
Binary files differ
diff --git a/Website/tricode/icons/box_work.png b/Website/icons/box_work.png
index 666fced..666fced 100644
--- a/Website/tricode/icons/box_work.png
+++ b/Website/icons/box_work.png
Binary files differ
diff --git a/Website/tricode/icons/server_dunno.png b/Website/icons/server_dunno.png
index 588514e..588514e 100644
--- a/Website/tricode/icons/server_dunno.png
+++ b/Website/icons/server_dunno.png
Binary files differ
diff --git a/Website/tricode/icons/server_fail.png b/Website/icons/server_fail.png
index a699864..a699864 100644
--- a/Website/tricode/icons/server_fail.png
+++ b/Website/icons/server_fail.png
Binary files differ
diff --git a/Website/tricode/icons/server_work.png b/Website/icons/server_work.png
index 210979f..210979f 100644
--- a/Website/tricode/icons/server_work.png
+++ b/Website/icons/server_work.png
Binary files differ
diff --git a/Website/tricode/icons/sip_dunno.png b/Website/icons/sip_dunno.png
index e494a61..e494a61 100644
--- a/Website/tricode/icons/sip_dunno.png
+++ b/Website/icons/sip_dunno.png
Binary files differ
diff --git a/Website/tricode/icons/sip_fail.png b/Website/icons/sip_fail.png
index 02d7029..02d7029 100644
--- a/Website/tricode/icons/sip_fail.png
+++ b/Website/icons/sip_fail.png
Binary files differ
diff --git a/Website/tricode/icons/sip_work.png b/Website/icons/sip_work.png
index 5774487..5774487 100644
--- a/Website/tricode/icons/sip_work.png
+++ b/Website/icons/sip_work.png
Binary files differ
diff --git a/Website/tricode/icons/telephone_dunno.png b/Website/icons/telephone_dunno.png
index 2ac9dd6..2ac9dd6 100644
--- a/Website/tricode/icons/telephone_dunno.png
+++ b/Website/icons/telephone_dunno.png
Binary files differ
diff --git a/Website/tricode/icons/telephone_fail.png b/Website/icons/telephone_fail.png
index 222050d..222050d 100644
--- a/Website/tricode/icons/telephone_fail.png
+++ b/Website/icons/telephone_fail.png
Binary files differ
diff --git a/Website/tricode/icons/telephone_work.png b/Website/icons/telephone_work.png
index 5086dd2..5086dd2 100644
--- a/Website/tricode/icons/telephone_work.png
+++ b/Website/icons/telephone_work.png
Binary files differ
diff --git a/Website/tricode/icons/uni-network_dunno.png b/Website/icons/uni-network_dunno.png
index 7d99f0e..7d99f0e 100644
--- a/Website/tricode/icons/uni-network_dunno.png
+++ b/Website/icons/uni-network_dunno.png
Binary files differ
diff --git a/Website/tricode/icons/uni-network_fail.png b/Website/icons/uni-network_fail.png
index 3da0a70..3da0a70 100644
--- a/Website/tricode/icons/uni-network_fail.png
+++ b/Website/icons/uni-network_fail.png
Binary files differ
diff --git a/Website/tricode/icons/uni-network_work.png b/Website/icons/uni-network_work.png
index fdc7989..fdc7989 100644
--- a/Website/tricode/icons/uni-network_work.png
+++ b/Website/icons/uni-network_work.png
Binary files differ
diff --git a/Website/index.php b/Website/index.php
new file mode 100644
index 0000000..30cc853
--- /dev/null
+++ b/Website/index.php
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html style="height: 100%;">
+
+<head>
+ <title>GSM selftest Software</title>
+ <meta name="generator" content="BBEdit 9.6" />
+</head>
+
+<body onUnload="window.location.href=thisPage.html;" background="Images/BackGround.jpg" style="height: 100%;">
+
+<FORM name="testForm" form action="mutexSmartTest.php" method="POST">
+ <table style="width:50%; height: 100%; margin:auto;" border="0">
+ <tr>
+ <td height="120px" align="center"><a href="index.php" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">HOME</font></a></td>
+ <td height="120px" align="center"><a href="about.html" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">About Us</font></a></td>
+ <td height="120px" align="center"><a href="report.pdf" STYLE="TEXT-DECORATION: NONE"><font size="3" face="Century Gothic" color="LightGray">Help</font></a></td>
+ </tr>
+
+ <tr>
+ <td height="80px" align="center"></td>
+ </tr>
+
+ <tr>
+ <!--<td height="100px" align="center"><INPUT type="image" value="DeviceConfig" name="DeviceConf" src="Images/MobilePhoneIcon.png"></td>-->
+ <td height="100px" align="center"><a href="devconfig.php" STYLE="TEXT-DECORATION: NONE"> <img src="Images/MobilePhoneIcon.png"></img></td>
+ <td height="100px" align="center"><INPUT type="image" value="Smart test" name="smart" src="Images/SmartIcon.png" onclick="this.style.display='none'; return true;"></td>
+ <td height="100px" align="center"><a href="TaskTest.html" STYLE="TEXT-DECORATION: NONE"> <img src="Images/ChooseIcon.png"></img></td>
+ <!--<td height="100px" align="center"><INPUT type="image" value="Smart test" name="smart" src="Images/ChooseIcon.png"></td>-->
+ </tr>
+
+ <tr>
+ <td height="100px" align="center"><font size="4" face="Century Gothic" color="white">Device Configuration</font></td>
+ <td height="100px" align="center"><font size="4" face="Century Gothic" color="white">Smart Test</font></td>
+ <td height="100px" align="center"><font size="4" face="Century Gothic" color="white">Choose The Test</font></td>
+ </tr>
+
+ <tr>
+ <table style="width:100%; margin-top: -10px; height: 300px; align: center" valign="bottom" border="0">
+ <tr>
+ <td height="100px" align="center" valign="bottom"><font size="1" face="Century Gothic" color="LightGray">Albert-Ludwig University of Freiburg 2011</td>
+ </tr>
+ </table>
+ </tr>
+ </table>
+</FORM>
+
+</body>
+</html>
diff --git a/Website/index1.html b/Website/index1.html
new file mode 100644
index 0000000..96db729
--- /dev/null
+++ b/Website/index1.html
@@ -0,0 +1 @@
+Yeeeey :) you are logged in :)
diff --git a/Website/tricode/insertData.php b/Website/insertData.php
index fe77587..6a9bdb4 100644
--- a/Website/tricode/insertData.php
+++ b/Website/insertData.php
@@ -31,6 +31,7 @@ function getNewTaskNo()
}
}
+
function insertTask($taskNo, $from, $to)
{
$trans = "START TRANSACTION;";
diff --git a/Website/tricode/insertdevice.php b/Website/insertdevice.php
index 1b83f65..1b83f65 100644
--- a/Website/tricode/insertdevice.php
+++ b/Website/insertdevice.php
diff --git a/Website/tricode/loader.gif b/Website/loader.gif
index 240d4e1..240d4e1 100644
--- a/Website/tricode/loader.gif
+++ b/Website/loader.gif
Binary files differ
diff --git a/Website/tricode/main.php b/Website/main.php
index 595812b..3a5bd25 100644
--- a/Website/tricode/main.php
+++ b/Website/main.php
@@ -39,7 +39,7 @@
</td>
<td height="100px" width ="100px" align="left">
<font size="3" face="Century Gothic" color="LightGray">
- Port Number<br>
+ Port Address<br>
IMEI<br>
Number<br>
</font>
diff --git a/Website/tricode/moocheck.js b/Website/moocheck.js
index 0c364aa..0c364aa 100644
--- a/Website/tricode/moocheck.js
+++ b/Website/moocheck.js
diff --git a/Website/tricode/mootools.js b/Website/mootools.js
index 45b1f3e..45b1f3e 100644
--- a/Website/tricode/mootools.js
+++ b/Website/mootools.js
diff --git a/Website/tricode/mutexFunctions.php b/Website/mutexFunctions.php
index af45610..af45610 100644
--- a/Website/tricode/mutexFunctions.php
+++ b/Website/mutexFunctions.php
diff --git a/Website/tricode/mutexSmartTest.php b/Website/mutexSmartTest.php
index 01bed3c..33dfbb0 100644
--- a/Website/tricode/mutexSmartTest.php
+++ b/Website/mutexSmartTest.php
@@ -127,6 +127,7 @@ if ($locking == '1') //1 means nobody is on the website
<tbody>';
echo str_repeat("\n",7024);
flush();
+
}
elseif ($received == "TEST DONE\n")
{
@@ -136,7 +137,7 @@ if ($locking == '1') //1 means nobody is on the website
echo '</div>';
echo '<div id="sidebar">';
echo "<a class='pChart' href='networkResult.php?S=$SIP&RZ1=$GSMRZ1&RZ2=$GSMRZ2&RZ3=$GSMRZ3&US=$UNISIP&LL=$LANDLINE&LS=$LSFKS&EE=$GSMEE&EV=$GSMEV&ET=$GSMET&EO=$GSMEO&SP=$SIPP&SGP=$LANDLINEP&USP=$UNISIPP&NBP1=$NANOBTS1P&NBP2=$NANOBTS2P' data-pchart-alt='Picture3'>Picture 3</a></div>";
- echo '<div id="footer"><font size ="2" face="Century Gothic" color="white">Number of tasks: '.$numberofTask.'<br> Number of tasks tried to add to the DB but had an error: '. $errorAdding .'<br> TEST SUCCESSFULLY FINISHED!</font></div>';
+ echo '<div id="footer"><font size ="3" face="Century Gothic" color="black">Number of tasks: '.$numberofTask.'<br> TEST SUCCESSFULLY FINISHED!</font></div>';
echo str_repeat("\n",7024);
flush();
usleep(100);
@@ -153,10 +154,10 @@ if ($locking == '1') //1 means nobody is on the website
$callTo = strtoupper($dataForTable[2]);
$testStatus = strtoupper($dataForTable[3]);
//ADD HERE THE TEST CASES BUT MAKE IT INSIDE OF A FILE (e.q. include 'testing.php'); HERE I PUT IT ONLY FOR EXAMPLE PURPOSES!
-
+
if($callFrom == 'SIP' || $callTo == 'SIP')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$SIP = 1;
$SIPP = 1;
@@ -177,7 +178,7 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'SIP')
{
- if ($testStatus == '998')
+ if ($testStatus == '998' || $testStatus == '802')
{
$SIP = 1;
$SIPP = 1;
@@ -193,7 +194,7 @@ if ($locking == '1') //1 means nobody is on the website
{
$SIP = -1;
}
- $SIPP = -1;
+ $SIPP = 2;
if ($LSFKS != 1)
{
$LSFKS = 0;
@@ -223,7 +224,7 @@ if ($locking == '1') //1 means nobody is on the website
{
$SIP = -1;
}
- $SIPP = -1;
+ $SIPP = 2;
if ($LSFKS != 1)
{
$LSFKS = 0;
@@ -231,10 +232,9 @@ if ($locking == '1') //1 means nobody is on the website
}
}
}
-
if($callFrom == 'GSMRZ1' || $callTo == 'GSMRZ1')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMRZ1 = 1;
}
@@ -247,74 +247,207 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMRZ1')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMRZ1 != 1)
{
- $GSMRZ1 = -1;
+ $GSMRZ1 = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
- $GSMRZ1 = 1; //where is nanoBTS1
+ $GSMRZ1 = 0; //where is nanoBTS1
}
}
elseif ($callTo == 'GSMRZ1')
{
- if ($testStatus == '998')
+ if ($testStatus == '998' || $testStatus == '802')
{
if ($GSMRZ1 != 1)
{
- $GSMRZ1 = -1;
+ $GSMRZ1 = 0;
}
}
- elseif($testStatus == '999')
+ elseif($testStatus == '999' || $testStatus == '801')
{
- $GSMRZ1 = 1; //where is nanoBTS1
+ $GSMRZ1 = 0; //where is nanoBTS1
}
}
}
if($callFrom == 'GSMRZ2' || $callTo == 'GSMRZ2')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMRZ2 = 1;
$NANOBTS1P = 1;
}
elseif($testStatus == '486')
{
- $GSMRZ2 = -1;
+ if ($GSMRZ2 != 1)
+ {
+ $GSMRZ2 = -1;
+ }
$NANOBTS1P = 1;
}
- else
- { $GSMRZ1 = 0;
- $NANOBTS1P = 0;
-
+ if ($callFrom == 'GSMRZ2')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMRZ2 != 1)
+ {
+ $GSMRZ2= 0;
+ }
+
+ if ($testStatus == '801')
+ {
+ $NANOBTS1P= 1;
+ }
+ if ($testStatus == '999')
+ {
+ if ($NANOBTS1P != 1)
+ {
+ $NANOBTS1P= 0;
+ }
+ }
+ }
+ elseif ($testStatus == '500')
+ {
+ $NANOBTS1P = 0;
+ $GSMRZ2= 0;
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ $GSMRZ2 = 0; //where is nanoBTS1
+ $NANOBTS1P= 1;
+ }
+ }
+ elseif ($callTo == 'GSMRZ2')
+ {
+ if ($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMRZ2 != 1)
+ {
+ $GSMRZ2 = 0;
+ }
+ if ($testStatus == '802')
+ {
+ $NANOBTS1P= 1;
+ }
+ if ($testStatus == '998')
+ {
+ if ($NANOBTS1P != 1)
+ {
+ $NANOBTS1P= 0;
+ }
+ }
+ }
+ elseif ($testStatus == '501')
+ {
+ $NANOBTS1P = 0;
+ $GSMRZ2= 0;
+ }
+ elseif($testStatus == '999' || $testStatus == '801')
+ {
+ $GSMRZ2 = 0; //where is nanoBTS1
+ if ($NANOBTS1P != 1)
+ {
+ $NANOBTS1P= 2;
+ }
+
+ }
}
+
}
+
if($callFrom == 'GSMRZ3' || $callTo == 'GSMRZ3')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMRZ3 = 1;
$NANOBTS2P = 1;
}
elseif($testStatus == '486')
{
- $GSMRZ3 = -1;
+
+ if ($GSMRZ3 != 1)
+ {
+ $GSMRZ3 = -1;
+ }
$NANOBTS2P = 1;
}
- else
- { $GSMRZ3 = 0;
- $NANOBTS2P = 0;
-
+ if ($callFrom == 'GSMRZ3')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMRZ3 != 1)
+ {
+ $GSMRZ3= 0;
+ }
+
+ if ($testStatus == '801')
+ {
+ $NANOBTS2P= 1;
+ }
+ if ($testStatus == '999')
+ {
+ if ($NANOBTS2P != 1)
+ {
+ $NANOBTS2P= 0;
+ }
+ }
+ }
+ elseif ($testStatus == '5010')
+ {
+ $NANOBTS2P = 0;
+ $GSMRZ3= 0;
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ $GSMRZ3 = 0; //where is nanoBTS1
+ $NANOBTS2P= 1;
+ }
}
+ elseif ($callTo == 'GSMRZ3')
+ {
+ if ($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMRZ3 != 1)
+ {
+ $GSMRZ3 = 0;
+ }
+ if ($testStatus == '802')
+ {
+ $NANOBTS2P= 1;
+ }
+ if ($testStatus == '998')
+ {
+ if ($NANOBTS2P != 1)
+ {
+ $NANOBTS2P= 0;
+ }
+ }
+ }
+ elseif ($testStatus == '501')
+ {
+ $NANOBTS2P = 0;
+ $GSMRZ3= 0;
+ }
+ elseif($testStatus == '999' || $testStatus == '801')
+ {
+ $GSMRZ3 = 0; //where is nanoBTS1
+ if ($NANOBTS1P != 1)
+ {
+ $NANOBTS2P= 2;
+ }
+
+ }
+ }//
}
if($callFrom == 'GSMEXT.O2' || $callTo == 'GSMEXT.O2')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMEO = 1;
$LSFKS = 1;
@@ -332,18 +465,18 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMEXT.O2')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEO != 1)
{
- $GSMEO = -1;
+ $GSMEO = 0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEO != 1)
{
@@ -357,7 +490,7 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif ($callTo == 'GSMEXT.O2')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEO != 1)
{
@@ -368,11 +501,11 @@ if ($locking == '1') //1 means nobody is on the website
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEO != 1)
{
- $GSMEO =-1;
+ $GSMEO =0;
}
if ($LSFKS != 1)
{
@@ -383,7 +516,7 @@ if ($locking == '1') //1 means nobody is on the website
}
if($callFrom == 'GSMEXT.VODA' || $callTo == 'GSMEXT.VODA')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMEV = 1;
$LSFKS = 1;
@@ -401,18 +534,18 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMEXT.VODA')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEV != 1)
{
- $GSMEV = -1;
+ $GSMEV = 0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEV != 1)
{
@@ -426,7 +559,7 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif ($callTo == 'GSMEXT.VODA')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEV != 1)
{
@@ -437,11 +570,11 @@ if ($locking == '1') //1 means nobody is on the website
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEV != 1)
{
- $GSMEV =-1;
+ $GSMEV =0;
}
if ($LSFKS != 1)
{
@@ -471,18 +604,18 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMEXT.EPLUS')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEE != 1)
{
- $GSMEE = -1;
+ $GSMEE = 0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEE != 1)
{
@@ -496,7 +629,7 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif ($callTo == 'GSMEXT.EPLUS')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEE != 1)
{
@@ -507,23 +640,31 @@ if ($locking == '1') //1 means nobody is on the website
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEE != 1)
{
- $GSMEE=-1;
+ $GSMEE=0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
+ elseif($testStatus == '402')
+ {
+ if ($GSMEE != 1)
+ {
+ $GSMEE=0;
+ }
+ $LSFKS = 1;
+ }
}
}
if($callFrom == 'GSMEXT.TM' || $callTo == 'GSMEXT.TM')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMET = 1;
$LSFKS = 1;
@@ -541,18 +682,18 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMEXT.TM')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMET != 1)
{
- $GSMET = -1;
+ $GSMET = 0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMET != 1)
{
@@ -566,7 +707,7 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif ($callTo == 'GSMEXT.TM')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMET != 1)
{
@@ -577,11 +718,11 @@ if ($locking == '1') //1 means nobody is on the website
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMET != 1)
{
- $GSMET =-1;
+ $GSMET =0;
}
if ($LSFKS != 1)
{
@@ -594,8 +735,10 @@ if ($locking == '1') //1 means nobody is on the website
if($callFrom == 'LANDLINE' || $callTo == 'LANDLINE')
{
- if($testStatus == '200')
+
+ if($testStatus == '200' || $testStatus == '402')
{
+
$LANDLINEP = 1;
$LANDLINE = 1;
$LSFKS = 1;
@@ -621,10 +764,15 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($LANDLINEP != 1)
{
- $LANDLINEP = -1;
+ $LANDLINEP = 2;
}
}
- elseif($testStatus == '998')
+ elseif ($testStatus == '500')
+ {
+ $LANDLINEP = 0;
+ $LANDLINE = 0;
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
{
$LANDLINE = 1;
if ($LSFKS != 1)
@@ -633,9 +781,10 @@ if ($locking == '1') //1 means nobody is on the website
}
$LANDLINEP = 1;
}
+ }
elseif ($callTo == 'LANDLINE')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($LANDLINE != 1)
{
@@ -650,6 +799,11 @@ if ($locking == '1') //1 means nobody is on the website
$LANDLINEP = 0;
}
}
+ elseif ($testStatus == '501')
+ {
+ $LANDLINEP = 0;
+ $LANDLINE = 0;
+ }
elseif($testStatus == '998')
{
if ($LANDLINE != 1)
@@ -662,21 +816,22 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($LANDLINEP != 1)
{
- $LANDLINEP = 0;
+ $LANDLINEP = 2;
}
}
}
}
-
if($callFrom == 'UNISIP' || $callTo == 'UNISIP')
{
- if($testStatus == '200')
+
+ if($testStatus == '200' || $testStatus == '402')
{
$UNISIPP = 1;
$UNISIP = 1;
}
elseif($testStatus == '486')
{
+ $UNISIPP = 1;
if ($UNISIP != 1)
{
$UNISIP = -1;
@@ -684,7 +839,7 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'UNISIP')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($UNISIP != 1)
{
@@ -692,10 +847,15 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($UNISIPP != 1)
{
- $UNISIPP = -1;
+ $UNISIPP = 2;
}
}
- elseif($testStatus == '998')
+ elseif ($testStatus == '500')
+ {
+ $UNISIPP = 0;
+ $UNISIP = 0;
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
{
$UNISIP = 1;
$UNISIPP = 1;
@@ -703,7 +863,7 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callTo == 'UNISIP')
{
- if ($testStatus == '998')
+ if ($testStatus == '998' || $testStatus == '802')
{
if ($UNISIP != 1)
{
@@ -711,11 +871,16 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($UNISIPP != 1)
{
- $UNISIPP = -1;
+ $UNISIPP = 0;
}
}
- elseif($testStatus == '999')
+ elseif ($testStatus == '501')
+ {
+ $UNISIPP = 0;
+ $UNISIP = 0;
+ }
+ elseif($testStatus == '999' || $testStatus == '801')
{
if ($UNISIP != 1)
{
diff --git a/Website/mutexTry.php b/Website/mutexTry.php
new file mode 100755
index 0000000..f6b4514
--- /dev/null
+++ b/Website/mutexTry.php
@@ -0,0 +1,977 @@
+<html>
+<head>
+<script src='delayedLoading.js' type="text/javascript"></script>
+<!--ADD HERE ALL THE NEEDED META DATA -->
+<title>Network test live results!</title>
+<link rel="stylesheet" href="css/tableCSS.css" type="text/css" media="screen">
+</head>
+<body onscroll="scrollEvent();" onload="loaderInit();">
+<div>
+<?php
+
+//Connection stuff
+//DB
+$dbhost = 'localhost';
+$dbuser = 'root';
+$dbpass = 'randompasswordSQL';
+
+//Socket
+$port = 34500;
+$ip = 'localhost';
+
+$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
+
+$dbname = 'gsmselftesting';
+mysql_select_db($dbname);
+//End of connection stuff
+include 'mutexFunctions.php'; //mutex functions, isfree, lock and release
+include 'insertData.php'; //insert task functions
+
+$nameOfLock = 'Webpage';
+$timeToKeepTheMutex = 360;
+
+$locking = isLocked($nameOfLock);//Check if the webpage is already open
+
+if ($locking == '1') //1 means nobody is on the website
+{
+ $lockMe = Lock($nameOfLock,$timeToKeepTheMutex); //Set a mutex for the webpage
+ if ($lockMe == '1') //1 means a successful lock
+ {
+
+ include 'post.php'; // read posted data and add them to the database
+// echo 'WE had errors: '. $errorAdding;
+ //stuff to do here
+ //check if the software is running!
+ $softwareLock = 'SoftwareStarted';
+
+ //$taskAmount= 1
+ if($taskAmount != 0)
+ {
+ $softwareRunning = isLocked($softwareLock);
+ if($softwareRunning == '1') //1 means software is not started yet, start it
+ {
+ $startApp = fsockopen($ip, 34600, $errno, $error, 5);
+ if (!$startApp)
+ {
+ printf('THE SOFTWARE THAT SHOULD RUN IN BACKGROUND IS NOT RUNNING!');
+ }
+ else
+ {
+ socket_set_timeout( $startApp, 50); //one should set the number of the longest test, so we can define the timeout
+ fwrite($startApp, "START APP");
+ usleep(2500);
+ fclose($startApp);
+ }
+
+ //exec("/usr/bin/python /var/www/tricode/gsmselftest2.py > /dev/null 2>&1 &"); //start the software in background and don't wait for any output
+ sleep(6); //sleep half second till the software starts
+ //the software should be running already and set the lock, now we test it and then connect to it!
+
+ $softwareRunning1 = isLocked($softwareLock);
+ if($softwareRunning1 == '0') //Software running and waiting for connection!
+ {
+ //try to open the socket and connect to the software
+ $fp = fsockopen($ip, $port, $errno, $error, 5);
+
+ if (!$fp)
+ {
+ echo 'Could not open the socket or connect to the testing software! Check ports on both sides!';
+
+ }
+ else
+ {
+ socket_set_timeout($fp,50); //one should set the number of the longest test, so we can define the timeout function (it is the number after "$fp,")
+
+ fwrite($fp, "START TEST");
+
+ //fwrite($fp, "SMART TEST"); //send command to start the tests
+ if(!feof($fp))
+ {
+ while(!feof($fp))
+ {
+ $received = fgets($fp, 128); //receive data!
+
+ if ($received == "CONFIRM\n") //we got the confirmation from the testing software
+ {
+ //test finished successfully
+
+ $GSMRZ1 = 0;
+ $GSMRZ2 = 0;
+ $GSMRZ3 = 0;
+
+ $SIP = 0;
+ $UNISIP = 0;
+ $LANDLINE = 0;
+ $LSFKS = 0;
+
+ $GSMEE = 0;
+ $GSMEV = 0;
+ $GSMET = 0;
+ $GSMEO = 0;
+
+ $SIPP = 2;
+ $LANDLINEP = 2;
+ $UNISIPP = 2;
+ $NANOBTS1P = 2;
+ $NANOBTS2P = 2;
+ /////////// end of test!
+ echo '<div id="main">
+ <table summary = "Results">
+ <thead>
+ <tr>
+ <th scope = "col"> From: </th>
+ <th scope = "col" > To: </th>
+ <th scope = "col"> Message: </th>
+ <th scope = "col"> Status: </th>
+ </tr>
+ </thead>
+ <!-- start of the table rows-->
+ <tbody>';
+ echo str_repeat("\n",7024);
+ flush();
+ sleep(6);
+ $pings = mysql_query("select * from PingResultTable where taskNo=(select max(taskNo) from PingResultTable)");
+
+ while($row = mysql_fetch_array($pings))
+ {
+ // echo $row['taskNo'];
+ $SIPP = $row['sipServer'];
+ $LANDLINEP = $row['sipGate'];
+ $UNISIPP = $row['unisip'];
+ $NANOBTS1P = $row['gsmBox1'];
+ $NANOBTS2P = $row['gsmBox2'];
+ }
+ }
+ elseif ($received == "TEST DONE\n")
+ {
+
+
+ echo '</tbody></table>';
+ echo '</div>';
+ echo '<div id="sidebar">';
+ echo "<a class='pChart' href='networkResult.php?S=$SIP&RZ1=$GSMRZ1&RZ2=$GSMRZ2&RZ3=$GSMRZ3&US=$UNISIP&LL=$LANDLINE&LS=$LSFKS&EE=$GSMEE&EV=$GSMEV&ET=$GSMET&EO=$GSMEO&SP=$SIPP&SGP=$LANDLINEP&USP=$UNISIPP&NBP1=$NANOBTS1P&NBP2=$NANOBTS2P&TASKID=$taskNo' data-pchart-alt='Picture3'>Picture 3</a></div>";
+ echo '<div id="footer"><font size ="3" face="Century Gothic" color="black"> Number of tasks: '.$taskAmount.'<br> Number of tasks tried to add to the DB but had an error: '. $errorAdding .'<br> TEST SUCCESSFULLY FINISHED!</font></div>';
+ echo str_repeat("\n",7024);
+ flush();
+ usleep(100);
+ fwrite($fp, 'DISCONNECT'); //tell the testing software it may close
+ break;
+ }
+ else
+ {
+ //parse the received data!
+ $received = str_replace("\n",'',$received);
+ $dataForTable = explode("|", $received);
+ $callFrom = strtoupper($dataForTable[1]);
+ $callTo = strtoupper($dataForTable[2]);
+ $testStatus = strtoupper($dataForTable[3]);
+ //ADD HERE THE TEST CASES BUT MAKE IT INSIDE OF A FILE (e.q. include 'testing.php'); HERE I PUT IT ONLY FOR EXAMPLE PURPOSES!
+
+ if($callFrom == 'SIP' || $callTo == 'SIP')
+ {
+ if($testStatus == '200' || $testStatus == '402')
+ {
+ $SIP = 1;
+ $SIPP = 1;
+ $LSFKS = 1;
+ }
+ elseif($testStatus == '486')
+ {
+ //Check that SIP already working or not, if working, leave as it is, otherwise update that sip broken. same with LSFKS
+ if ($SIP != 1)
+ {
+ $SIP = 1;
+ }
+ $SIPP = 1;
+ if ($LSFKS != 1)
+ {
+ $LSFKS = -1;
+ }
+ }
+ if ($callFrom == 'SIP')
+ {
+ if ($testStatus == '998' || $testStatus == '802')
+ {
+ $SIP = 1;
+ $SIPP = 1;
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+
+ }
+ elseif($testStatus == '999')
+ {
+ if ($SIP != 1)
+ {
+ $SIP = -1;
+ }
+ $SIPP = 2;
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ }
+ elseif ($callTo == 'SIP')
+ {
+ if ($testStatus == '999')
+ {
+ if ($SIP != 1)
+ {
+ $SIP = 0;
+ }
+ if ($SIPP != 1)
+ {
+ $SIPP = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '998')
+ {
+ if ($SIP != 1)
+ {
+ $SIP = -1;
+ }
+ $SIPP = 2;
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ }
+ }
+ if($callFrom == 'GSMRZ1' || $callTo == 'GSMRZ1')
+ {
+ if($testStatus == '200' || $testStatus == '402')
+ {
+ $GSMRZ1 = 1;
+ }
+ elseif($testStatus == '486')
+ {
+ if ($GSMRZ1 != 1)
+ {
+ $GSMRZ1 = -1;
+ }
+ }
+ if ($callFrom == 'GSMRZ1')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMRZ1 != 1)
+ {
+ $GSMRZ1 = 0;
+ }
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ $GSMRZ1 = 0; //where is nanoBTS1
+ }
+ }
+ elseif ($callTo == 'GSMRZ1')
+ {
+ if ($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMRZ1 != 1)
+ {
+ $GSMRZ1 = 0;
+ }
+ }
+ elseif($testStatus == '999' || $testStatus == '801')
+ {
+ $GSMRZ1 = 0; //where is nanoBTS1
+ }
+ }
+ }
+
+ if($callFrom == 'GSMRZ2' || $callTo == 'GSMRZ2')
+ {
+ if($testStatus == '200' || $testStatus == '402')
+ {
+ $GSMRZ2 = 1;
+ $NANOBTS1P = 1;
+ }
+ elseif($testStatus == '486')
+ {
+ if ($GSMRZ2 != 1)
+ {
+ $GSMRZ2 = -1;
+ }
+ $NANOBTS1P = 1;
+ }
+ if ($callFrom == 'GSMRZ2')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMRZ2 != 1)
+ {
+ $GSMRZ2= 0;
+ }
+
+ if ($testStatus == '801')
+ {
+ $NANOBTS1P= 1;
+ }
+ if ($testStatus == '999')
+ {
+ if ($NANOBTS1P != 1)
+ {
+ $NANOBTS1P= 0;
+ }
+ }
+ }
+ elseif ($testStatus == '500')
+ {
+ $NANOBTS1P = 0;
+ $GSMRZ2= 0;
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ $GSMRZ2 = 0; //where is nanoBTS1
+ $NANOBTS1P= 1;
+ }
+ }
+ elseif ($callTo == 'GSMRZ2')
+ {
+ if ($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMRZ2 != 1)
+ {
+ $GSMRZ2 = 0;
+ }
+ if ($testStatus == '802')
+ {
+ $NANOBTS1P= 1;
+ }
+ if ($testStatus == '998')
+ {
+ if ($NANOBTS1P != 1)
+ {
+ $NANOBTS1P= 0;
+ }
+ }
+ }
+ elseif ($testStatus == '501')
+ {
+ $NANOBTS1P = 0;
+ $GSMRZ2= 0;
+ }
+ elseif($testStatus == '999' || $testStatus == '801')
+ {
+ $GSMRZ2 = 0; //where is nanoBTS1
+ if ($NANOBTS1P != 1)
+ {
+ $NANOBTS1P= 2;
+ }
+
+ }
+ }
+
+ }
+
+ if($callFrom == 'GSMRZ3' || $callTo == 'GSMRZ3')
+ {
+ if($testStatus == '200' || $testStatus == '402')
+ {
+ $GSMRZ3 = 1;
+ $NANOBTS2P = 1;
+ }
+ elseif($testStatus == '486')
+ {
+
+ if ($GSMRZ3 != 1)
+ {
+ $GSMRZ3 = -1;
+ }
+ $NANOBTS2P = 1;
+ }
+ if ($callFrom == 'GSMRZ3')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMRZ3 != 1)
+ {
+ $GSMRZ3= 0;
+ }
+
+ if ($testStatus == '801')
+ {
+ $NANOBTS2P= 1;
+ }
+ if ($testStatus == '999')
+ {
+ if ($NANOBTS2P != 1)
+ {
+ $NANOBTS2P= 0;
+ }
+ }
+ }
+ elseif ($testStatus == '5010')
+ {
+ $NANOBTS2P = 0;
+ $GSMRZ3= 0;
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ $GSMRZ3 = 0; //where is nanoBTS1
+ $NANOBTS2P= 1;
+ }
+ }
+ elseif ($callTo == 'GSMRZ3')
+ {
+ if ($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMRZ3 != 1)
+ {
+ $GSMRZ3 = 0;
+ }
+ if ($testStatus == '802')
+ {
+ $NANOBTS2P= 1;
+ }
+ if ($testStatus == '998')
+ {
+ if ($NANOBTS2P != 1)
+ {
+ $NANOBTS2P= 0;
+ }
+ }
+ }
+ elseif ($testStatus == '501')
+ {
+ $NANOBTS2P = 0;
+ $GSMRZ3= 0;
+ }
+ elseif($testStatus == '999' || $testStatus == '801')
+ {
+ $GSMRZ3 = 0; //where is nanoBTS1
+ if ($NANOBTS1P != 1)
+ {
+ $NANOBTS2P= 2;
+ }
+
+ }
+ }//
+
+ }
+ if($callFrom == 'GSMEXT.O2' || $callTo == 'GSMEXT.O2')
+ {
+ if($testStatus == '200' || $testStatus == '402')
+ {
+ $GSMEO = 1;
+ $LSFKS = 1;
+ }
+ elseif($testStatus == '486')
+ {
+ if ($GSMEO != 1)
+ {
+ $GSMEO = -1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = -1;
+ }
+ }
+ if ($callFrom == 'GSMEXT.O2')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMEO != 1)
+ {
+ $GSMEO = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMEO != 1)
+ {
+ $GSMEO =1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ }
+ elseif ($callTo == 'GSMEXT.O2')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMEO != 1)
+ {
+ $GSMEO = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMEO != 1)
+ {
+ $GSMEO =0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ }
+ }
+ if($callFrom == 'GSMEXT.VODA' || $callTo == 'GSMEXT.VODA')
+ {
+ if($testStatus == '200' || $testStatus == '402')
+ {
+ $GSMEV = 1;
+ $LSFKS = 1;
+ }
+ elseif($testStatus == '486')
+ {
+ if ($GSMEV != 1)
+ {
+ $GSMEV = -1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = -1;
+ }
+ }
+ if ($callFrom == 'GSMEXT.VODA')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMEV != 1)
+ {
+ $GSMEV = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMEV != 1)
+ {
+ $GSMEV =1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ }
+ elseif ($callTo == 'GSMEXT.VODA')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMEV != 1)
+ {
+ $GSMEV = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMEV != 1)
+ {
+ $GSMEV =0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ }
+ }
+
+ if($callFrom == 'GSMEXT.EPLUS' || $callTo == 'GSMEXT.EPLUS')
+ {
+ if($testStatus == '200')
+ {
+ $GSMEE = 1;
+ $LSFKS = 1;
+ }
+ elseif($testStatus == '486')
+ {
+ if ($GSMEE != 1)
+ {
+ $GSMEE = -1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = -1;
+ }
+ }
+ if ($callFrom == 'GSMEXT.EPLUS')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMEE != 1)
+ {
+ $GSMEE = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMEE != 1)
+ {
+ $GSMEE =1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ }
+ elseif ($callTo == 'GSMEXT.EPLUS')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMEE != 1)
+ {
+ $GSMEE = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMEE != 1)
+ {
+ $GSMEE=0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '402')
+ {
+ if ($GSMEE != 1)
+ {
+ $GSMEE=0;
+ }
+ $LSFKS = 1;
+ }
+ }
+ }
+
+ if($callFrom == 'GSMEXT.TM' || $callTo == 'GSMEXT.TM')
+ {
+ if($testStatus == '200' || $testStatus == '402')
+ {
+ $GSMET = 1;
+ $LSFKS = 1;
+ }
+ elseif($testStatus == '486')
+ {
+ if ($GSMET != 1)
+ {
+ $GSMET = -1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = -1;
+ }
+ }
+ if ($callFrom == 'GSMEXT.TM')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMET != 1)
+ {
+ $GSMET = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMET != 1)
+ {
+ $GSMET =1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ }
+ elseif ($callTo == 'GSMEXT.TM')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($GSMET != 1)
+ {
+ $GSMET = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ if ($GSMET != 1)
+ {
+ $GSMET =0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ }
+ }
+
+ }
+
+ if($callFrom == 'LANDLINE' || $callTo == 'LANDLINE')
+ {
+
+ if($testStatus == '200' || $testStatus == '402')
+ {
+
+ $LANDLINEP = 1;
+ $LANDLINE = 1;
+ $LSFKS = 1;
+ }
+ elseif($testStatus == '486')
+ {
+ if ($LANDLINE != 1)
+ {
+ $LANDLINE = -1;
+ }
+ }
+ if ($callFrom == 'LANDLINE')
+ {
+ if ($testStatus == '999')
+ {
+ if ($LANDLINE != 1)
+ {
+ $LANDLINE = -1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = -1;
+ }
+ if ($LANDLINEP != 1)
+ {
+ $LANDLINEP = 2;
+ }
+ }
+ elseif ($testStatus == '500')
+ {
+ $LANDLINEP = 0;
+ $LANDLINE = 0;
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ $LANDLINE = 1;
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ $LANDLINEP = 1;
+ }
+ }
+ elseif ($callTo == 'LANDLINE')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($LANDLINE != 1)
+ {
+ $LANDLINE = 0;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ if ($LANDLINEP != 1)
+ {
+ $LANDLINEP = 0;
+ }
+ }
+ elseif ($testStatus == '501')
+ {
+ $LANDLINEP = 0;
+ $LANDLINE = 0;
+ }
+ elseif($testStatus == '998')
+ {
+ if ($LANDLINE != 1)
+ {
+ $LANDLINE = -1;
+ }
+ if ($LSFKS != 1)
+ {
+ $LSFKS = 0;
+ }
+ if ($LANDLINEP != 1)
+ {
+ $LANDLINEP = 2;
+ }
+ }
+ }
+ }
+ if($callFrom == 'UNISIP' || $callTo == 'UNISIP')
+ {
+
+ if($testStatus == '200' || $testStatus == '402')
+ {
+ $UNISIPP = 1;
+ $UNISIP = 1;
+ }
+ elseif($testStatus == '486')
+ {
+ $UNISIPP = 1;
+ if ($UNISIP != 1)
+ {
+ $UNISIP = -1;
+ }
+ }
+ if ($callFrom == 'UNISIP')
+ {
+ if ($testStatus == '999' || $testStatus == '801')
+ {
+ if ($UNISIP != 1)
+ {
+ $UNISIP = -1;
+ }
+ if ($UNISIPP != 1)
+ {
+ $UNISIPP = 2;
+ }
+ }
+ elseif ($testStatus == '500')
+ {
+ $UNISIPP = 0;
+ $UNISIP = 0;
+ }
+ elseif($testStatus == '998' || $testStatus == '802')
+ {
+ $UNISIP = 1;
+ $UNISIPP = 1;
+ }
+ }
+ if ($callTo == 'UNISIP')
+ {
+ if ($testStatus == '998' || $testStatus == '802')
+ {
+ if ($UNISIP != 1)
+ {
+ $UNISIP = -1;
+ }
+ if ($UNISIPP != 1)
+ {
+ $UNISIPP = 0;
+ }
+
+ }
+ elseif ($testStatus == '501')
+ {
+ $UNISIPP = 0;
+ $UNISIP = 0;
+ }
+ elseif($testStatus == '999' || $testStatus == '801')
+ {
+ if ($UNISIP != 1)
+ {
+ $UNISIP = 0;
+ }
+ if ($UNISIPP != 1)
+ {
+ $UNISIPP = 0;
+ }
+ }
+ }
+ }
+ //END OF TEST CASE EXAMPLE
+ echo '<tr>
+ <th scope = "row" id = "r100">'. $dataForTable[1] . '</th>
+ <th scope = "row" id = "r100">'. $dataForTable[2] . '</th>
+ <td> ' . $dataForTable[4] . ' </td>
+ <td>' . $dataForTable[3] . '</td>
+ </tr>';
+ //echo $received . '<br>';
+ echo str_repeat("\n",7024);
+ flush();
+ usleep(100);
+ fwrite($fp, "CONTINUE"); //tell the software to proceed with the test and confirm receiving data
+ }
+ }
+ }
+
+ fclose($fp);//close the soccket and the connection
+
+ }
+
+ }
+ elseif($softwareRunning1 == '1')
+ {
+ echo 'Testing software was not started(didn\'t obtain the lock)! Check it!';
+ }
+ else
+ {
+ echo 'Testing software didn\'t obtain the lock';
+ }
+ }
+ elseif($softwareRunning == '0') //0 means the software is still running in the background
+ {
+ echo 'Testing software is still running! Maybe you should kill it (if not started manually!)';
+ }
+ else
+ {
+ echo 'We have an unknown error! Refresh te web page!';
+ }
+
+ //$release = ReleaseLock($nameOfLock);
+ //echo $release . "<br>";
+ }
+ else
+ {
+ echo 'No single test was selected! Please go back and select at least one test';
+ }
+ }
+ elseif($lockMe == '0') //0 means if the attempt timed out (for example, because another client has previously locked the name)
+ {
+ echo 'Someone was faster than you';
+ }
+ else
+ {
+ // # if an error occurred (such as running out of memory or the thread was killed with
+ echo 'We have an error here';
+ }
+}
+elseif ($locking == '0') //0 means somebody is already on the web site
+{
+ echo 'Somebody is using the web site already!' . "<br>";
+}
+else
+{
+ echo 'We have some serious error here';
+}
+?>
+</div>
+</body>
+</html>
+
diff --git a/Website/tricode/networkResult.php b/Website/networkResult.php
index 512fe86..962d607 100644
--- a/Website/tricode/networkResult.php
+++ b/Website/networkResult.php
@@ -249,11 +249,12 @@
// Set the grid size
$mySurface->setGrid(4,0);
- $mySurface->writeXLabels(array("Angle"=>45,"Labels"=>array("SIP","Landline","Uni. Telephone","nanoBTS 1","nanoBTS 2")));
+ $mySurface->writeXLabels(array("Angle"=>45,"Labels"=>array("SIP","Landline","Uni. Telephone","BTS Cont.1","BTS Cont.2")));
$mySurface->writeYLabels(array("Labels"=>array("Ping")));
$Palette = array(1=>array("R"=>0,"G"=>255,"B"=>0, "Alpha"=>40),
- 0=>array("R"=>255,"G"=>0,"B"=>1, "Alpha"=>40));
+ 0=>array("R"=>255,"G"=>0,"B"=>1, "Alpha"=>40),
+ 2=>array("R"=>255,"G"=>227,"B"=>85));
$mySurface->addPoint(0,0,$SIPP);
$mySurface->addPoint(1,0,$LANDLINEP);
@@ -297,7 +298,8 @@
/* Write some text */
$myPicture->setFontProperties(array("FontName"=>"fonts/verdana.ttf","FontSize"=>7));
$TextSettings = array("BoxRounded"=>TRUE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>9);
- $myPicture->drawText(460,425,"Task #:32432 07.09.2011 21:19:00",$TextSettings);
+ $taskInfo ='Task #: ' . $TASKID . ' ' . date("d.m.Y H:m:s");
+ $myPicture->drawText(460,425,$taskInfo,$TextSettings);
//###########################################################
diff --git a/Website/tricode/post.php b/Website/post.php
index b01f646..b01f646 100644
--- a/Website/tricode/post.php
+++ b/Website/post.php
diff --git a/Website/report.pdf b/Website/report.pdf
new file mode 100644
index 0000000..8fa060b
--- /dev/null
+++ b/Website/report.pdf
Binary files differ
diff --git a/Website/tricode/script.sh b/Website/script.sh
index 00c0279..00c0279 100755
--- a/Website/tricode/script.sh
+++ b/Website/script.sh
diff --git a/Website/tricode/startSoftware.py b/Website/startSoftware.py
index 191f66e..191f66e 100644
--- a/Website/tricode/startSoftware.py
+++ b/Website/startSoftware.py
diff --git a/Website/tricode/startTest.php b/Website/startTest.php
index abfa812..abfa812 100644
--- a/Website/tricode/startTest.php
+++ b/Website/startTest.php
diff --git a/Website/tricode/startTest2.php b/Website/startTest2.php
index eef8a5f..eef8a5f 100644
--- a/Website/tricode/startTest2.php
+++ b/Website/startTest2.php
diff --git a/Website/tricode/testCase.php b/Website/testCase.php
index c9e12ee..b00189d 100644
--- a/Website/tricode/testCase.php
+++ b/Website/testCase.php
@@ -5,10 +5,13 @@
$colorWork = array("R"=>150,"G"=>215,"B"=>121,"BorderR"=>0,"BorderG"=>0,"BorderB"=>0);
+$TASKID = $_GET['TASKID'];
+
$GSMRZ1 = $_GET['RZ1'];
$GSMRZ2 = $_GET['RZ2'];
$GSMRZ3 = $_GET['RZ3'];
+
$SIP = $_GET['S'];
$UNISIP = $_GET['US'];
$LANDLINE = $_GET['LL'];
@@ -44,7 +47,7 @@ $GSMEXTCOL = 'icons/box_dunno.png';
$GSMINTCOL = "icons/server_dunno.png";
$LSFKSCOL = "icons/server_dunno.png";
-$SIPCOL = 'icons/sip_dunno';
+$SIPCOL = 'icons/sip_dunno.png';
$UNISIPCOL = 'icons/uni-network_dunno.png';
$LANDLINECOL = 'icons/telephone_dunno.png';
@@ -196,12 +199,60 @@ elseif($GSMEO < 0)
-//NETWORK OPERABILITY
-$GSMINTPercent = rand(1,100);
-$GSMEXTPercent = rand(1,100);
-$SIPPercent = rand(1,100);
-$UNISIPPercent = rand(1,100);
-$LANDLINEPercent = rand(1,100);
+//NETWORK OPERABILITY CALCULATION
+$GSMINTOCalc = 0;
+$GSMEXTOCalc = 0;
+
+//internal GSM calcuation
+if($GSMRZ1>0)
+{
+ $GSMINTOCalc += 1;
+}
+if($GSMRZ2>0)
+{
+ $GSMINTOCalc += 1;
+}
+if($GSMRZ3>0)
+{
+ $GSMINTOCalc += 1;
+}
+
+//external GSM calculation
+if($GSMET>0)
+{
+ $GSMEXTOCalc += 1;
+}
+if($GSMEO>0)
+{
+ $GSMEXTOCalc += 1;
+}
+if($GSMEE>0)
+{
+ $GSMEXTOCalc += 1;
+}
+if($GSMEV>0)
+{
+ $GSMEXTOCalc += 1;
+}
+
+if($SIP<0)
+{
+ $SIP=0;
+}
+
+if($LANDLINE<0)
+{
+ $LANDLINE=0;
+}
+if($UNISIP<0)
+{
+ $UNISIP=0;
+}
+$GSMINTPercent = round(($GSMINTOCalc/3),2)*100;
+$GSMEXTPercent = round(($GSMEXTOCalc/4),2)*100;
+$SIPPercent = $SIP*100;
+$UNISIPPercent = $UNISIP*100;
+$LANDLINEPercent = $LANDLINE*100;
//print_r($GSMINTCOL);
// add here to set the color for each node after the test ;)
diff --git a/Website/tricode/mutexTry.php b/Website/tricode/mutexTry.php
deleted file mode 100755
index b927842..0000000
--- a/Website/tricode/mutexTry.php
+++ /dev/null
@@ -1,310 +0,0 @@
-<html>
-<head>
-<script src='delayedLoading.js' type="text/javascript"></script>
-<!--ADD HERE ALL THE NEEDED META DATA -->
-<title>Network test live results!</title>
-<link rel="stylesheet" href="css/tableCSS.css" type="text/css" media="screen">
-</head>
-<body background = "Images/BackGround.jpg" onscroll="scrollEvent();" onload="loaderInit();">
-<div>
-<?php
-
-//Connection stuff
-//DB
-$dbhost = 'localhost';
-$dbuser = 'root';
-$dbpass = 'randompasswordSQL';
-
-//Socket
-$port = 34500;
-$ip = 'localhost';
-
-$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
-
-$dbname = 'gsmselftesting';
-mysql_select_db($dbname);
-//End of connection stuff
-include 'mutexFunctions.php'; //mutex functions, isfree, lock and release
-include 'insertData.php'; //insert task functions
-
-$nameOfLock = 'Webpage';
-$timeToKeepTheMutex = 360;
-
-$locking = isLocked($nameOfLock);//Check if the webpage is already open
-
-if ($locking == '1') //1 means nobody is on the website
-{
- $lockMe = Lock($nameOfLock,$timeToKeepTheMutex); //Set a mutex for the webpage
- if ($lockMe == '1') //1 means a successful lock
- {
-
- include 'post.php'; // read posted data and add them to the database
-// echo 'WE had errors: '. $errorAdding;
- //stuff to do here
- //check if the software is running!
- $softwareLock = 'SoftwareStarted';
-
- //$taskAmount= 1
- if($taskAmount != 0)
- {
- $softwareRunning = isLocked($softwareLock);
- if($softwareRunning == '1') //1 means software is not started yet, start it
- {
- $startApp = fsockopen($ip, 34600, $errno, $error, 5);
- if (!$startApp)
- {
- printf('THE SOFTWARE THAT SHOULD RUN IN BACKGROUND IS NOT RUNNING!');
- }
- else
- {
- socket_set_timeout( $startApp, 50); //one should set the number of the longest test, so we can define the timeout
- fwrite($startApp, "START APP");
- usleep(2500);
- fclose($startApp);
- }
-
- //exec("/usr/bin/python /var/www/tricode/gsmselftest2.py > /dev/null 2>&1 &"); //start the software in background and don't wait for any output
- sleep(6); //sleep half second till the software starts
- //the software should be running already and set the lock, now we test it and then connect to it!
-
- $softwareRunning1 = isLocked($softwareLock);
- if($softwareRunning1 == '0') //Software running and waiting for connection!
- {
- //try to open the socket and connect to the software
- $fp = fsockopen($ip, $port, $errno, $error, 5);
-
- if (!$fp)
- {
- echo 'Could not open the socket or connect to the testing software! Check ports on both sides!';
-
- }
- else
- {
- socket_set_timeout($fp,50); //one should set the number of the longest test, so we can define the timeout function (it is the number after "$fp,")
-
- fwrite($fp, "START TEST");
-
- //fwrite($fp, "SMART TEST"); //send command to start the tests
- if(!feof($fp))
- {
- while(!feof($fp))
- {
- $received = fgets($fp, 128); //receive data!
-
- if ($received == "CONFIRM\n") //we got the confirmation from the testing software
- {
- //test finished successfully
-
- $GSMRZ1 = 0;
- $GSMRZ2 = 0;
- $GSMRZ3 = 0;
-
- $SIP = 0;
- $UNISIP = 0;
- $LANDLINE = 0;
- $LSFKS = 0;
-
- $GSMEE = 0;
- $GSMEV = 0;
- $GSMET = 0;
- $GSMEO = 0;
-
- $SIPP = 0;
- $LANDLINEP = 0;
- $UNISIPP = 0;
- $NANOBTS1P = 0;
- $NANOBTS2P = 0;
- /////////// end of test!
- echo '<div id="main">
- <table summary = "Results">
- <thead>
- <tr>
- <th scope = "col"> From: </th>
- <th scope = "col" > To: </th>
- <th scope = "col"> Message: </th>
- <th scope = "col"> Status: </th>
- </tr>
- </thead>
- <!-- start of the table rows-->
- <tbody>';
- echo str_repeat("\n",7024);
- flush();
- }
- elseif ($received == "TEST DONE\n")
- {
-
-
- echo '</tbody></table>';
- echo '</div>';
- echo '<div id="sidebar">';
- echo "<a class='pChart' href='networkResult.php?S=$SIP&RZ1=$GSMRZ1&RZ2=$GSMRZ2&RZ3=$GSMRZ3&US=$UNISIP&LL=$LANDLINE&LS=$LSFKS&EE=$GSMEE&EV=$GSMEV&ET=$GSMET&EO=$GSMEO&SP=$SIPP&SGP=$LANDLINEP&USP=$UNISIPP&NBP1=$NANOBTS1P&NBP2=$NANOBTS2P' data-pchart-alt='Picture3'>Picture 3</a></div>";
- echo '<div id="footer"><font size ="2" face="Century Gothic" color="white"> Number of tasks: '.$taskAmount.'<br> Number of tasks tried to add to the DB but had an error: '. $errorAdding .'<br> TEST SUCCESSFULLY FINISHED!</font></div>';
- echo str_repeat("\n",7024);
- flush();
- usleep(100);
- fwrite($fp, 'DISCONNECT'); //tell the testing software it may close
- break;
- }
- else
- {
- //parse the received data!
- $received = str_replace("\n",'',$received);
- $dataForTable = explode("|", $received);
- $callFrom = strtoupper($dataForTable[1]);
- $callTo = strtoupper($dataForTable[2]);
- $testStatus = strtoupper($dataForTable[3]);
- //ADD HERE THE TEST CASES BUT MAKE IT INSIDE OF A FILE (e.q. include 'testing.php'); HERE I PUT IT ONLY FOR EXAMPLE PURPOSES!
-
- if($callFrom == 'SIP' || $callTo == 'SIP')
- {
- if($testStatus == '200')
- {
- $SIP = 1;
- $SIPP = 1;
- $LSFKS = 1;
-
- }
- }
- if($callFrom == 'GSMRZ1' || $callTo == 'GSMRZ1')
- {
- if($testStatus == '200')
- {
- $GSMRZ1 = 1;
- }
- }
- if($callFrom == 'GSMRZ2' || $callTo == 'GSMRZ2')
- {
- if($testStatus == '200')
- {
- $GSMRZ2 = 1;
- $NANOBTS1P = 1;
- }
- }
- if($callFrom == 'GSMRZ3' || $callTo == 'GSMRZ3')
- {
- if($testStatus == '200')
- {
- $GSMRZ3 = 1;
- $NANOBTS2P = 1;
- }
- }
- if($callFrom == 'GSMEXT.O2' || $callTo == 'GSMEXT.O2')
- {
- if($testStatus == '200')
- {
- $GSMEO = 1;
- $LSFKS = 1;
- }
- }
- if($callFrom == 'GSMEXT.VODA' || $callTo == 'GSMEXT.VODA')
- {
- if($testStatus == '200')
- {
- $GSMEV = 1;
- $LSFKS = 1;
- }
- }
- if($callFrom == 'GSMEXT.EPLUS' || $callTo == 'GSMEXT.EPLUS')
- {
- if($testStatus == '200')
- {
- $GSMEE = 1;
- $LSFKS = 1;
- }
- }
- if($callFrom == 'GSMEXT.TM' || $callTo == 'GSMEXT.TM')
- {
- if($testStatus == '200')
- {
- $GSMET = 1;
- $LSFKS = 1;
- }
- }
- if($callFrom == 'LANDLINE' || $callTo == 'LANDLINE')
- {
- if($testStatus == '200')
- {
- $LANDLINEP = 1;
- $LANDLINE = 1;
- $LSFKS = 1;
- }
- }
- if($callFrom == 'UNISIP' || $callTo == 'UNISIP')
- {
- if($testStatus == '200')
- {
- $UNISIPP = 1;
- $UNISIP = 1;
-
- }
- }
- //END OF TEST CASE EXAMPLE
- echo '<tr>
- <th scope = "row" id = "r100">'. $dataForTable[1] . '</th>
- <th scope = "row" id = "r100">'. $dataForTable[2] . '</th>
- <td> ' . $dataForTable[4] . ' </td>
- <td>' . $dataForTable[3] . '</td>
- </tr>';
- //echo $received . '<br>';
- echo str_repeat("\n",7024);
- flush();
- usleep(100);
- fwrite($fp, "CONTINUE"); //tell the software to proceed with the test and confirm receiving data
- }
- }
- }
-
- fclose($fp);//close the soccket and the connection
-
- }
-
- }
- elseif($softwareRunning1 == '1')
- {
- echo 'Testing software was not started(didn\'t obtain the lock)! Check it!';
- }
- else
- {
- echo 'Testing software didn\'t obtain the lock';
- }
- }
- elseif($softwareRunning == '0') //0 means the software is still running in the background
- {
- echo 'Testing software is still running! Maybe you should kill it (if not started manually!)';
- }
- else
- {
- echo 'We have an unknown error! Refresh te web page!';
- }
-
- //$release = ReleaseLock($nameOfLock);
- //echo $release . "<br>";
- }
- else
- {
- echo 'No single test was selected! Please go back and select at least one test';
- }
- }
- elseif($lockMe == '0') //0 means if the attempt timed out (for example, because another client has previously locked the name)
- {
- echo 'Someone was faster than you';
- }
- else
- {
- // # if an error occurred (such as running out of memory or the thread was killed with
- echo 'We have an error here';
- }
-}
-elseif ($locking == '0') //0 means somebody is already on the web site
-{
- echo 'Somebody is using the web site already!' . "<br>";
-}
-else
-{
- echo 'We have some serious error here';
-}
-?>
-</div>
-</body>
-</html>
-
diff --git a/Website/tricode/trueTableClass.pyc b/Website/trueTableClass.pyc
index 50fc8df..50fc8df 100644
--- a/Website/tricode/trueTableClass.pyc
+++ b/Website/trueTableClass.pyc
Binary files differ
diff --git a/Website/tricode/wait.gif b/Website/wait.gif
index 1c72ebb..1c72ebb 100644
--- a/Website/tricode/wait.gif
+++ b/Website/wait.gif
Binary files differ