summaryrefslogtreecommitdiff
path: root/getstatus.php.bak
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-18 17:32:32 +0100
committerAlib <aliboba@free.fr>2010-03-18 17:32:32 +0100
commit443258f637bf1a73e1867bf320170fc8142ad75a (patch)
tree9091e4080e6ffa1da5e5c85163d2a42dc51a0cae /getstatus.php.bak
parent4fabb891045ef34381c300e0a73cd44b926a761f (diff)
parent7a9c5315ff4dd8ac6e9331c7fbfcabd94d661dd9 (diff)
downloadistreamdev-443258f637bf1a73e1867bf320170fc8142ad75a.tar.gz
istreamdev-443258f637bf1a73e1867bf320170fc8142ad75a.tar.bz2
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
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);
-
-}
-
-?>