From 2b850a5d8d9c3d0a76e05542636657647351d4b1 Mon Sep 17 00:00:00 2001 From: Triatmoko Date: Tue, 15 Nov 2011 01:37:35 +0100 Subject: Cleaning the unused commenting from the first auhtor! --- Website/mutexSmartTest.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'Website/mutexSmartTest.php') diff --git a/Website/mutexSmartTest.php b/Website/mutexSmartTest.php index cfb8916..5ce264a 100644 --- a/Website/mutexSmartTest.php +++ b/Website/mutexSmartTest.php @@ -32,10 +32,6 @@ 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 { - // 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; $numberofTask =0; @@ -57,10 +53,9 @@ if ($locking == '1') //1 means nobody is on the website 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! - + sleep(6); //sleep 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! { @@ -148,7 +143,6 @@ if ($locking == '1') //1 means nobody is on the website $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') { @@ -895,7 +889,6 @@ if ($locking == '1') //1 means nobody is on the website ' . $dataForTable[4] . ' ' . $dataForTable[3] . ' '; - //echo $received . '
'; echo str_repeat("\n",7024); flush(); usleep(100); @@ -927,8 +920,6 @@ if ($locking == '1') //1 means nobody is on the website echo 'We have an unknown error! Refresh te web page!'; } - //$release = ReleaseLock($nameOfLock); - //echo $release . "
"; } else { -- cgit v1.2.3-55-g7522