summaryrefslogtreecommitdiff
path: root/getstatus.php.bak
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-18 17:29:28 +0100
committerTheTroll <trolldev@gmail.com>2010-03-18 17:29:28 +0100
commit7a9c5315ff4dd8ac6e9331c7fbfcabd94d661dd9 (patch)
treef89efa39f83595bbfaf72dad9e581a1fa3447a58 /getstatus.php.bak
parent31a11bace3b5c407f89f59805b80469abe8a581c (diff)
downloadistreamdev-7a9c5315ff4dd8ac6e9331c7fbfcabd94d661dd9.tar.gz
istreamdev-7a9c5315ff4dd8ac6e9331c7fbfcabd94d661dd9.tar.bz2
cleanup
Diffstat (limited to 'getstatus.php.bak')
-rwxr-xr-xgetstatus.php.bak30
1 files changed, 0 insertions, 30 deletions
diff --git a/getstatus.php.bak b/getstatus.php.bak
deleted file mode 100755
index 368991b..0000000
--- a/getstatus.php.bak
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-header('Content-type: application/json');
-$oldtree = null;
-$time = time();
-$i = 0;
-while((time() - $time) < 29)
-{
- $tree = file_get_contents("status.txt");
-
- if ($tree !== $oldtree )
- {
- $i+=1;
- print $tree;
- ob_flush();
- flush();
- }
- $data = json_decode($tree);
- if ($data->status == "ready")
- {
- break;
- } else if ($data->status == "error")
- {
- break;
- }
- $oldtree = $tree;
- usleep(1000);
-
-}
-
-?>